HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
POP_GBElement.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: POP_GBElement.h ( GA Library, C++)
7  *
8  * COMMENTS:
9  * Class to maintain old GB/GD/GEO/GU/ interfaces to elements. For
10  * points and vertices, instances are mere interface stubs wrapping
11  * an index map and an offset. GA_Primitive, however, derives from
12  * GA_GBElement to permit maximum legacy compatibility.
13  *
14  * This class provides methods from GB_Element, GB_AttributeElem, as
15  * well as utility methods to aid in implementing the interfaces of
16  * GB_Vertex (and its subclasses) and [GD|GEO]_Point.
17  */
18 
19 #pragma once
20 
21 #ifndef __POP_GBElement__
22 #define __POP_GBElement__
23 
24 #include "POP_API.h"
25 
26 #include <GA/GA_GBElement.h>
27 
28 /// Simple wrapper to create a handle to access detail attributes in the same
29 /// fashion as other GB elements. The GA_GBDetailElement acts as a "handle" to
30 /// the underlying detail, but allows for access using methods like: @code
31 /// GA_GBDetailElement det(gdp);
32 /// UT_Vector3 clr = det.getValue<UT_Vector3>(GA_ROAttributeRef &h);
33 /// @endcode;
35 {
36 public:
37  SYS_DEPRECATED_HDK(13.0)
39  : GA_GBElement(gdp.getIndexMap(GA_ATTRIB_GLOBAL), GA_Offset(0)) {}
40  SYS_DEPRECATED_HDK(13.0)
42  : GA_GBElement(src) {}
43  SYS_DEPRECATED_HDK(13.0)
45 };
46 
47 
48 #endif
#define POP_API
Definition: POP_API.h:10
GA_Size GA_Offset
Definition: GA_Types.h:617
#define SYS_DEPRECATED_HDK(__V__)
Container class for all geometry.
Definition: GA_Detail.h:96
#define const
Definition: zconf.h:214
GLenum src
Definition: glcorearb.h:1792