|
HDK
|
Read-only handle for string attribute data. More...
#include <GA_Handle.h>
Inheritance diagram for GA_ROHandleTHolder< HOLDER, INDEXTYPE, ATI >:Public Member Functions | |
| GA_ROHandleTHolder () | |
| GA_ROHandleTHolder (const GA_Attribute *attrib) | |
| GA_ROHandleTHolder (const GA_Detail *gdp, GA_AttributeOwner owner, const UT_StringRef &name, int minsize=1) | |
| void | operator= (const GA_Attribute *attrib) |
| void | bind (const GA_Detail *gdp, GA_AttributeOwner owner, const UT_StringRef &name, int minsize=1) |
| void | bind (const GA_Attribute *attrib, int minsize=1) |
| Bind the handle to the given attribute. More... | |
| const GA_Attribute * | getAttribute () const |
| Access to attribute. More... | |
| int | getTupleSize () const |
| Tuple size of the attribute. More... | |
| GA_DataId | getDataId () const |
| void | clear () |
| Clear the handle. More... | |
| SYS_FORCE_INLINE const HOLDER & | get (GA_Offset off, int comp=0) const |
| Get the string at the given offset. More... | |
| SYS_FORCE_INLINE INDEXTYPE | getIndex (GA_Offset off, int comp=0) const |
| Get the string index at the given offset. More... | |
| const ATI * | operator-> () const |
| void | getIndexBlock (GA_Offset startoff, GA_Size nelements, INDEXTYPE *dest, int deststride=1, int component=0) const |
| void | getIndexBlockFromIndices (GA_Index startidx, GA_Size nelements, INDEXTYPE *dest, int deststride=1, int component=0) const |
| SYS_FORCE_INLINE bool | isValid () const |
| SYS_FORCE_INLINE bool | isInvalid () const |
Protected Attributes | |
| const ATI * | myAttrib |
Read-only handle for string attribute data.
Definition at line 880 of file GA_Handle.h.
|
inline |
Definition at line 883 of file GA_Handle.h.
|
inline |
Definition at line 887 of file GA_Handle.h.
| GA_ROHandleTHolder< HOLDER, INDEXTYPE, ATI >::GA_ROHandleTHolder | ( | const GA_Detail * | gdp, |
| GA_AttributeOwner | owner, | ||
| const UT_StringRef & | name, | ||
| int | minsize = 1 |
||
| ) |
| void GA_ROHandleTHolder< HOLDER, INDEXTYPE, ATI >::bind | ( | const GA_Detail * | gdp, |
| GA_AttributeOwner | owner, | ||
| const UT_StringRef & | name, | ||
| int | minsize = 1 |
||
| ) |
|
inline |
Bind the handle to the given attribute.
Definition at line 900 of file GA_Handle.h.
|
inline |
Clear the handle.
Definition at line 923 of file GA_Handle.h.
|
inline |
Get the string at the given offset.
Definition at line 932 of file GA_Handle.h.
|
inline |
Access to attribute.
Definition at line 910 of file GA_Handle.h.
|
inline |
Definition at line 914 of file GA_Handle.h.
|
inline |
Get the string index at the given offset.
Definition at line 940 of file GA_Handle.h.
| void GA_ROHandleTHolder< HOLDER, INDEXTYPE, ATI >::getIndexBlock | ( | GA_Offset | startoff, |
| GA_Size | nelements, | ||
| INDEXTYPE * | dest, | ||
| int | deststride = 1, |
||
| int | component = 0 |
||
| ) | const |
Copies attribute string indices from a contiguous block of offsets into the dest array. NOTE: The block of offsets is assumed to have no holes, else data could be read from offsets that don't have corresponding elements.
| void GA_ROHandleTHolder< HOLDER, INDEXTYPE, ATI >::getIndexBlockFromIndices | ( | GA_Index | startidx, |
| GA_Size | nelements, | ||
| INDEXTYPE * | dest, | ||
| int | deststride = 1, |
||
| int | component = 0 |
||
| ) | const |
Copies attribute string indices from a contiguous block of indices into the dest array. This allows there to be holes in the geometry. The dest array will be densely filled as per the index mapping.
|
inline |
Tuple size of the attribute.
Definition at line 912 of file GA_Handle.h.
|
inline |
Validity checks
Definition at line 928 of file GA_Handle.h.
|
inline |
Validity checks
Definition at line 927 of file GA_Handle.h.
|
inline |
Definition at line 947 of file GA_Handle.h.
|
inline |
Definition at line 893 of file GA_Handle.h.
|
protected |
Definition at line 967 of file GA_Handle.h.