HDK
|
Manager to keep track of global handle to name mappings. More...
#include <GA_IntrinsicManager.h>
Classes | |
class | iterator |
class | Registrar |
Static Public Member Functions | |
static GA_GlobalIntrinsic | getGlobalHandle (const UT_StringRef &token) |
Get the global id associated with a given token. More... | |
static GA_GlobalIntrinsic | registerGlobalHandle (const UT_StringHolder &token) |
Register a global token (returns the existing handle if it's found) More... | |
static const UT_StringHolder & | getGlobalName (GA_GlobalIntrinsic handle) |
Find the token associated with the given global handle. More... | |
Friends | |
class | GA_PrimitiveFactory |
class | GA_PrimitiveDefinition |
class | Registrar |
Manager to keep track of global handle to name mappings.
Each GA_PrimitiveFactory maintains a list of intrinsic attributes. These attribute provide a mechanism to query information about primitives without having knowledge of the actual structure of the primitive.
There is a unique handle (or id) for each attribute name. This class maintains the mapping between name and handle.
Definition at line 39 of file GA_IntrinsicManager.h.
Start traversal of intrinsic attributes names.
Definition at line 286 of file GA_IntrinsicManager.h.
void GA_IntrinsicManager::extractNames | ( | UT_StringArray & | names | ) | const |
Extract all attribute names.
|
static |
Get the global id associated with a given token.
|
inline |
Mapping between global and local attributes
Definition at line 62 of file GA_IntrinsicManager.h.
|
static |
Find the token associated with the given global handle.
|
inline |
Return the number of local handles defined in the manager.
Definition at line 52 of file GA_IntrinsicManager.h.
GA_LocalIntrinsic GA_IntrinsicManager::getLocalHandle | ( | const UT_StringRef & | token | ) | const |
Mapping between global and local attributes
GA_LocalIntrinsic GA_IntrinsicManager::getLocalHandle | ( | GA_GlobalIntrinsic | ghandle | ) | const |
Mapping between global and local attributes
|
inline |
Look up an attribute name from the given handle.
Definition at line 71 of file GA_IntrinsicManager.h.
|
inline |
Get the attribute options (passed in during registration)
Definition at line 116 of file GA_IntrinsicManager.h.
|
inline |
Get the attribute options (passed in during registration)
Definition at line 118 of file GA_IntrinsicManager.h.
|
inline |
Get the attribute storage (passed in during registration)
Definition at line 92 of file GA_IntrinsicManager.h.
|
inline |
Get the attribute storage (passed in during registration)
Definition at line 94 of file GA_IntrinsicManager.h.
|
inline |
Get the attribute storage (passed in during registration)
Definition at line 80 of file GA_IntrinsicManager.h.
|
inline |
Get the attribute storage (passed in during registration)
Definition at line 82 of file GA_IntrinsicManager.h.
|
inline |
Get the attribute's user id (passed in during registration)
Definition at line 104 of file GA_IntrinsicManager.h.
|
inline |
Get the attribute's user id (passed in during registration)
Definition at line 106 of file GA_IntrinsicManager.h.
|
static |
Register a global token (returns the existing handle if it's found)
|
friend |
Definition at line 369 of file GA_IntrinsicManager.h.
|
friend |
Definition at line 368 of file GA_IntrinsicManager.h.
Definition at line 370 of file GA_IntrinsicManager.h.