HDK
|
Read-only handle for string attribute data. More...
#include <GA_Handle.h>
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 859 of file GA_Handle.h.
|
inline |
Definition at line 862 of file GA_Handle.h.
|
inline |
Definition at line 866 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 879 of file GA_Handle.h.
|
inline |
Clear the handle.
Definition at line 902 of file GA_Handle.h.
|
inline |
Get the string at the given offset.
Definition at line 911 of file GA_Handle.h.
|
inline |
Access to attribute.
Definition at line 889 of file GA_Handle.h.
|
inline |
Definition at line 893 of file GA_Handle.h.
|
inline |
Get the string index at the given offset.
Definition at line 919 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 891 of file GA_Handle.h.
|
inline |
Validity checks
Definition at line 907 of file GA_Handle.h.
|
inline |
Validity checks
Definition at line 906 of file GA_Handle.h.
|
inline |
Definition at line 926 of file GA_Handle.h.
|
inline |
Definition at line 872 of file GA_Handle.h.
|
protected |
Definition at line 946 of file GA_Handle.h.