HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_GEOElementArray Class Reference

A GT Data Array to extract values from a point/primitive attribute. More...

#include <GT_GEOElementArray.h>

+ Inheritance diagram for GT_GEOElementArray:

Public Types

enum  GT_GEOAttributeOwner {
  GT_GEOATTRIB_INVALID = -1, GT_GEOATTRIB_VERTEX = GA_ATTRIB_VERTEX, GT_GEOATTRIB_POINT = GA_ATTRIB_POINT, GT_GEOATTRIB_PRIMITIVE = GA_ATTRIB_PRIMITIVE,
  GT_GEOATTRIB_GLOBAL = GA_ATTRIB_GLOBAL, GT_GEOATTRIB_DETAIL = GA_ATTRIB_DETAIL, GT_GEOATTRIB_VERTEX_POINT, GT_GEOATTRIB_VERTEX_PRIMITIVE,
  GT_GEOATTRIB_VERTEX_DETAIL, GT_GEOATTRIB_PRIMITIVE_DETAIL
}
 

Public Member Functions

 GT_GEOElementArray (const GU_ConstDetailHandle &gdp, const GA_Attribute *attrib, const GT_GEOOffsetList &offsets, GA_AttributeOwner offset_owner)
 
 GT_GEOElementArray (const GT_GEOElementArray &src_array, const GT_GEOOffsetList &offsets, GA_AttributeOwner offset_owner)
 
 ~GT_GEOElementArray () override
 
const char * className () const override
 
const uint8get (GT_Offset i, uint8 *store, int sz) const override
 
const int8get (GT_Offset i, int8 *store, int sz) const override
 
const int16get (GT_Offset i, int16 *store, int sz) const override
 
const int32get (GT_Offset i, int32 *store, int sz) const override
 
const int64get (GT_Offset i, int64 *store, int sz) const override
 
const fpreal16get (GT_Offset i, fpreal16 *store, int z) const override
 
const fpreal64get (GT_Offset i, fpreal64 *store, int z) const override
 
const fpreal32get (GT_Offset idx, fpreal32 *store, int z) const override
 
bool computeMinMax (fpreal64 *min, fpreal64 *max) const override
 Enlarge a bounding box with values. More...
 
GT_Storage getStorage () const override
 
GT_Size entries () const override
 
GT_Size itemSize (GT_Offset offset) const override
 
GT_Size getTotalArrayEntries () const override
 
GT_Size getTupleSize () const override
 
GT_Type getTypeInfo () const override
 
int64 getMemoryUsage () const override
 
bool isValid () const override
 
bool hasArrayEntries () const override
 
void updateGeoDetail (const GU_ConstDetailHandle &dtl, const char *name, GT_Owner attrib_scope, const int expected_size) override
 
fpreal16 getF16 (GT_Offset offset, int idx) const override
 
fpreal32 getF32 (GT_Offset offset, int idx) const override
 
fpreal64 getF64 (GT_Offset offset, int idx) const override
 
uint8 getU8 (GT_Offset offset, int idx) const override
 
int32 getI32 (GT_Offset offset, int idx) const override
 
int64 getI64 (GT_Offset offset, int idx) const override
 
GT_String getS (GT_Offset offset, int idx) const override
 
bool getSA (UT_StringArray &a, GT_Offset offset) const override
 
GT_Dict getDict (GT_Offset offset, int idx=0) const override
 
bool getDictA (UT_Array< UT_OptionsHolder > &a, GT_Offset offset) const override
 
GT_Size getStringIndexCount () const override
 
GT_Offset getStringIndex (GT_Offset offset, int idx=0) const override
 
void getIndexedStrings (UT_StringArray &, UT_IntArray &) const override
 
void fillStringArray (UT_StringArray &data, UT_ValArray< int > &sizes, GT_Offset start, GT_Size length) const override
 
GT_Size getDictIndexCount () const override
 
GT_Offset getDictIndex (GT_Offset offset, int idx=0) const override
 
void getIndexedDicts (UT_Array< UT_OptionsHolder > &, UT_IntArray &) const override
 
void fillDictionaryArray (UT_Array< UT_OptionsHolder > &data, UT_ValArray< int > &sizes, GT_Offset start, GT_Size length) const override
 
bool getFA16 (UT_ValArray< fpreal16 > &a, GT_Offset offset) const override
 
bool getFA32 (UT_ValArray< fpreal32 > &a, GT_Offset offset) const override
 
bool getFA64 (UT_ValArray< fpreal64 > &a, GT_Offset offset) const override
 
bool getUA8 (UT_ValArray< uint8 > &a, GT_Offset offset) const override
 
bool getIA8 (UT_ValArray< int8 > &a, GT_Offset offset) const override
 
bool getIA16 (UT_ValArray< int16 > &a, GT_Offset offset) const override
 
bool getIA32 (UT_ValArray< int32 > &a, GT_Offset offset) const override
 
bool getIA64 (UT_ValArray< int64 > &a, GT_Offset offset) const override
 
void doImport (GT_Offset idx, uint8 *data, GT_Size size) const override
 
void doImport (GT_Offset idx, int8 *data, GT_Size size) const override
 
void doImport (GT_Offset idx, int16 *data, GT_Size size) const override
 
void doImport (GT_Offset idx, int32 *data, GT_Size size) const override
 
void doImport (GT_Offset idx, int64 *data, GT_Size size) const override
 
void doImport (GT_Offset idx, fpreal16 *data, GT_Size size) const override
 
void doImport (GT_Offset idx, fpreal32 *data, GT_Size size) const override
 
void doImport (GT_Offset idx, fpreal64 *data, GT_Size size) const override
 
void doImportArray (GT_Offset idx, UT_ValArray< fpreal16 > &data) const override
 
void doImportArray (GT_Offset idx, UT_ValArray< fpreal32 > &data) const override
 
void doImportArray (GT_Offset idx, UT_ValArray< fpreal64 > &data) const override
 
void doImportArray (GT_Offset idx, UT_ValArray< uint8 > &data) const override
 
void doImportArray (GT_Offset idx, UT_ValArray< int8 > &data) const override
 
void doImportArray (GT_Offset idx, UT_ValArray< int16 > &data) const override
 
void doImportArray (GT_Offset idx, UT_ValArray< int32 > &data) const override
 
void doImportArray (GT_Offset idx, UT_ValArray< int64 > &data) const override
 
void doFillArray (uint8 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const override
 
void doFillArray (int8 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const override
 
void doFillArray (int16 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const override
 
void doFillArray (int32 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const override
 
void doFillArray (int64 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const override
 
void doFillArray (fpreal16 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const override
 
void doFillArray (fpreal32 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const override
 
void doFillArray (fpreal64 *data, GT_Offset start, GT_Size length, int tuple_size, int stride) const override
 
void doFillVec3BBox (fpreal32 *data, GT_Offset start, GT_Size length, UT_BoundingBoxF &bbox, int tsize, int stride) override
 
void doFillVec3BBox (fpreal64 *data, GT_Offset start, GT_Size length, UT_BoundingBoxD &bbox, int tsize, int stride) override
 
void doFillQuantizedArray (uint8 *data, GT_Offset start, GT_Size length, int tuple_size, int stride, fpreal black, fpreal white) const override
 
void doExtendedQuantizedFill (uint8 *data, GT_Offset start, GT_Size length, int tuple_size, int nrepeats, int stride, fpreal black, fpreal white) const override
 
void doFillArrayAttr (UT_Array< uint8 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const override
 
void doFillArrayAttr (UT_Array< int8 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const override
 
void doFillArrayAttr (UT_Array< int16 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const override
 
void doFillArrayAttr (UT_Array< int32 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const override
 
void doFillArrayAttr (UT_Array< int64 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const override
 
void doFillArrayAttr (UT_Array< fpreal16 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const override
 
void doFillArrayAttr (UT_Array< fpreal32 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const override
 
void doFillArrayAttr (UT_Array< fpreal64 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const override
 
- Public Member Functions inherited from GT_DataArray
 GT_DataArray ()
 
 GT_DataArray (const GT_DataArray &src)
 
virtual ~GT_DataArray ()
 
virtual GT_DataArrayHandle harden () const
 Create a "hardened" version of the array. More...
 
virtual bool getPointerAliasing (const void *data) const
 Return "true" if there's pointer aliasing. More...
 
virtual const voidgetBackingData () const
 
virtual int64 getDataId () const
 
template<typename T >
const TgetArray (GT_DataArrayHandle &buffer) const
 Template-friendly version of getU8Array() and related methods. More...
 
virtual void getStrings (UT_StringArray &strings) const
 
void fillStrings (UT_StringArray &result, int tuple_idx=0) const
 
virtual void getDictionaries (UT_Array< UT_OptionsHolder > &dicts) const
 
virtual void extendedFillArray (uint8 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1, fpreal black=0, fpreal white=1) const
 
virtual bool isEqual (const GT_DataArray &src) const
 Compare whether two data arrays are equal. More...
 
bool getMinMax (fpreal64 *min, fpreal64 *max) const
 Enlarge a bounding box with values of this 3-tuple array. More...
 
bool enlargeBounds (UT_BoundingBox &b) const
 
GT_Storage checkIndexing (GT_IndexingMode mode) const
 Test to see whether the data array requires int32 or int64 indexing. More...
 
void dumpValues (const char *msg=NULL) const
 For debugging, print values to stdout. More...
 
bool save (UT_JSONWriter &w, bool flat=true) const
 
void copyDataId (const GT_DataArray &src)
 
void setDataId (int64 id)
 
template<typename T >
T getValue (GT_Offset index) const
 Public accessor for POD types. More...
 
template<typename T >
T lerpValue (GT_Offset i0, GT_Offset i1, fpreal t) const
 
template<typename T >
T bilerpValue (GT_Offset u0v0, GT_Offset u1v0, GT_Offset u0v1, GT_Offset u1v1, fpreal u, fpreal v)
 
virtual int8 getI8 (GT_Offset offset, int idx=0) const
 
virtual int16 getI16 (GT_Offset offset, int idx=0) const
 
virtual const uint8getU8Array (GT_DataArrayHandle &buffer) const
 
virtual const int8getI8Array (GT_DataArrayHandle &buffer) const
 
virtual const int16getI16Array (GT_DataArrayHandle &buffer) const
 
virtual const int32getI32Array (GT_DataArrayHandle &buffer) const
 
virtual const int64getI64Array (GT_DataArrayHandle &buffer) const
 
virtual const fpreal16getF16Array (GT_DataArrayHandle &buffer) const
 
virtual const fpreal32getF32Array (GT_DataArrayHandle &buffer) const
 
virtual const fpreal64getF64Array (GT_DataArrayHandle &buffer) const
 
const fprealgetRealArray (GT_DataArrayHandle &buffer) const
 
void import (GT_Offset idx, int8 *data, GT_Size size=0) const
 
void import (GT_Offset idx, int16 *data, GT_Size size=0) const
 
void import (GT_Offset idx, int32 *data, GT_Size size=0) const
 
void import (GT_Offset idx, int64 *data, GT_Size size=0) const
 
void import (GT_Offset idx, fpreal16 *data, GT_Size size=0) const
 
void import (GT_Offset idx, fpreal32 *data, GT_Size size=0) const
 
void import (GT_Offset idx, fpreal64 *data, GT_Size size=0) const
 
void import (GT_Offset idx, UT_ValArray< fpreal16 > &data) const
 
void import (GT_Offset idx, UT_ValArray< fpreal32 > &data) const
 
void import (GT_Offset idx, UT_ValArray< fpreal64 > &data) const
 
void import (GT_Offset idx, UT_ValArray< uint8 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int8 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int16 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int32 > &data) const
 
void import (GT_Offset idx, UT_ValArray< int64 > &data) const
 
void import (GT_Offset idx, UT_StringArray &data) const
 
void import (GT_Offset idx, UT_Array< UT_OptionsHolder > &data) const
 
void import (GT_Offset idx, uint8 *data, GT_Size size=0, fpreal black=0, fpreal white=1) const
 
void fillArray (int8 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (int16 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (int32 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (int64 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (fpreal16 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (fpreal32 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (fpreal64 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1) const
 
void fillArray (uint8 *data, GT_Offset start, GT_Size length, int tsize, int stride=-1, fpreal black=0, fpreal white=1) const
 
void fillVec3BBox (fpreal32 *dest, GT_Offset start, GT_Size length, UT_BoundingBoxF &bbox, int tsize, int stride=-1)
 
void fillVec3BBox (fpreal64 *dest, GT_Offset start, GT_Size length, UT_BoundingBoxD &bbox, int tsize, int stride=-1)
 
void fillArray (UT_Array< uint8 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< int8 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< int16 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< int32 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< int64 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< fpreal16 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< fpreal32 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
void fillArray (UT_Array< fpreal64 > &data, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 
virtual void extendedFill (uint8 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (int8 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (int16 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (int32 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (int64 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (fpreal16 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (fpreal32 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void extendedFill (fpreal64 *data, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride=-1) const
 
virtual void getRange (exint &lo, exint &hi, int tuple_idx=0) const
 
virtual void getRange (fpreal &lo, fpreal &hi, int tidx=0) const
 
SYS_HashType hash () const
 
virtual SYS_HashType hashRange (exint begin, exint end) const
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< GT_DataArray >
SYS_FORCE_INLINE UT_IntrusiveRefCounter () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

Protected Member Functions

 GT_GEOElementArray (const GU_ConstDetailHandle &gdp, const GT_GEOOffsetList &offsets, GA_AttributeOwner offset_owner)
 GT_GEOAutoNormalArray has no attribute yet when calling constructor. More...
 
void initAttribute (const GA_Attribute *attrib)
 
void makeInvalid ()
 
template<typename T >
T getValue_t (GT_Offset offset, int idx) const
 
template<typename T >
const TgetTuple_t (GT_Offset offset, T *store, int size) const
 
template<typename T >
bool getArrayValue_t (UT_ValArray< T > &val, GT_Offset offset) const
 
GT_Type mapTypeInfo (GA_TypeInfo type, int tsize) const
 
- Protected Member Functions inherited from GT_DataArray
SYS_STATIC_FORCE_INLINE GT_Size fixImportTupleSize (GT_Size size, GT_Size tuple_size)
 
template<typename T_POD >
void t_extendedFill (T_POD *dest, GT_Offset start, GT_Size length, int tsize, int nrepeats, int stride) const
 Templated method to fill an array. More...
 
template<typename T_POD >
void t_extendedFillArray (UT_Array< T_POD > &dest, UT_Array< int > &sizes, GT_Offset start, GT_Size length) const
 Templated method to fill an array attribute. More...
 
virtual void doImportQuantized (GT_Offset idx, uint8 *data, GT_Size size, fpreal black, fpreal white) const
 
- Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_DataArray >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Protected Attributes

GU_ConstDetailHandle myGdh
 
const GU_DetailmyGdp
 
GT_GEOOffsetList myOffsets
 
const GA_AttributemyAttribute
 
const GA_AIFTuplemyTuple
 
const GA_AIFStringTuplemySTuple
 
const GA_AIFSharedStringTuplemySSTuple
 
const GA_AIFNumericArraymyNumericArray
 
const GA_AIFSharedStringArraymySSArray
 
const GA_AIFSharedDictTuplemySDictTuple
 
const GA_AIFSharedDictArraymySDictArray
 
GA_AttributeOwner myOffsetOwner
 
GA_AttributeOwner myAttributeOwner
 
GA_ROHandleF myF
 
GA_ROHandleD myF64
 
GA_ROHandleI myI
 
GA_ROHandleID myI64
 
GA_ROHandleV3 myV3
 
GA_ROHandleV3D myV364
 
GA_ROHandleFA myFA
 
GA_ROHandleDA myFA64
 
GA_ROHandleIA myIA
 
GA_ROHandleIDA myIA64
 
GT_Storage myStorage
 
int myTupleSize
 

Additional Inherited Members

- Static Public Member Functions inherited from GT_DataArray
static bool isBigInteger (GT_Size size)
 Quick & dirty test to see if a size is bigger than a 32 bit int. More...
 
static voidoperator new (size_t size)
 
static voidoperator new (size_t size, void *p)
 
static void operator delete (void *p, size_t size)
 

Detailed Description

A GT Data Array to extract values from a point/primitive attribute.

Definition at line 27 of file GT_GEOElementArray.h.

Member Enumeration Documentation

Enumerator
GT_GEOATTRIB_INVALID 
GT_GEOATTRIB_VERTEX 
GT_GEOATTRIB_POINT 
GT_GEOATTRIB_PRIMITIVE 
GT_GEOATTRIB_GLOBAL 
GT_GEOATTRIB_DETAIL 
GT_GEOATTRIB_VERTEX_POINT 
GT_GEOATTRIB_VERTEX_PRIMITIVE 
GT_GEOATTRIB_VERTEX_DETAIL 
GT_GEOATTRIB_PRIMITIVE_DETAIL 

Definition at line 30 of file GT_GEOElementArray.h.

Constructor & Destructor Documentation

GT_GEOElementArray::GT_GEOElementArray ( const GU_ConstDetailHandle gdp,
const GA_Attribute attrib,
const GT_GEOOffsetList offsets,
GA_AttributeOwner  offset_owner 
)

The index_mode is used to lookup values. This does not necessarily have to match the attribute owner, but it must be one of the following.

  • index_mode := point, attribute := point
  • index_mode := vertex, attribute := point
  • index_mode := vertex, attribute := primitive
  • index_mode := vertex, attribute := vertex
  • index_mode := primitive, attribute := primitive
  • index_mode := detail, attribute := detail
GT_GEOElementArray::GT_GEOElementArray ( const GT_GEOElementArray src_array,
const GT_GEOOffsetList offsets,
GA_AttributeOwner  offset_owner 
)
GT_GEOElementArray::~GT_GEOElementArray ( )
override
GT_GEOElementArray::GT_GEOElementArray ( const GU_ConstDetailHandle gdp,
const GT_GEOOffsetList offsets,
GA_AttributeOwner  offset_owner 
)
protected

GT_GEOAutoNormalArray has no attribute yet when calling constructor.

Member Function Documentation

const char* GT_GEOElementArray::className ( ) const
inlineoverridevirtual

Implements GT_DataArray.

Definition at line 68 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::computeMinMax ( fpreal64 min,
fpreal64 max 
) const
overridevirtual

Enlarge a bounding box with values.

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doExtendedQuantizedFill ( uint8 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  nrepeats,
int  stride,
fpreal  black,
fpreal  white 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArray ( uint8 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArray ( int8 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArray ( int16 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArray ( int32 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArray ( int64 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArray ( fpreal16 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArray ( fpreal32 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArray ( fpreal64 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArrayAttr ( UT_Array< uint8 > &  data,
UT_Array< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArrayAttr ( UT_Array< int8 > &  data,
UT_Array< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArrayAttr ( UT_Array< int16 > &  data,
UT_Array< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArrayAttr ( UT_Array< int32 > &  data,
UT_Array< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArrayAttr ( UT_Array< int64 > &  data,
UT_Array< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArrayAttr ( UT_Array< fpreal16 > &  data,
UT_Array< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArrayAttr ( UT_Array< fpreal32 > &  data,
UT_Array< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillArrayAttr ( UT_Array< fpreal64 > &  data,
UT_Array< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillQuantizedArray ( uint8 data,
GT_Offset  start,
GT_Size  length,
int  tuple_size,
int  stride,
fpreal  black,
fpreal  white 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillVec3BBox ( fpreal32 data,
GT_Offset  start,
GT_Size  length,
UT_BoundingBoxF bbox,
int  tsize,
int  stride 
)
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doFillVec3BBox ( fpreal64 data,
GT_Offset  start,
GT_Size  length,
UT_BoundingBoxD bbox,
int  tsize,
int  stride 
)
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImport ( GT_Offset  idx,
uint8 data,
GT_Size  size 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImport ( GT_Offset  idx,
int8 data,
GT_Size  size 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImport ( GT_Offset  idx,
int16 data,
GT_Size  size 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImport ( GT_Offset  idx,
int32 data,
GT_Size  size 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImport ( GT_Offset  idx,
int64 data,
GT_Size  size 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImport ( GT_Offset  idx,
fpreal16 data,
GT_Size  size 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImport ( GT_Offset  idx,
fpreal32 data,
GT_Size  size 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImport ( GT_Offset  idx,
fpreal64 data,
GT_Size  size 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImportArray ( GT_Offset  idx,
UT_ValArray< fpreal16 > &  data 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImportArray ( GT_Offset  idx,
UT_ValArray< fpreal32 > &  data 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImportArray ( GT_Offset  idx,
UT_ValArray< fpreal64 > &  data 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImportArray ( GT_Offset  idx,
UT_ValArray< uint8 > &  data 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImportArray ( GT_Offset  idx,
UT_ValArray< int8 > &  data 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImportArray ( GT_Offset  idx,
UT_ValArray< int16 > &  data 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImportArray ( GT_Offset  idx,
UT_ValArray< int32 > &  data 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

void GT_GEOElementArray::doImportArray ( GT_Offset  idx,
UT_ValArray< int64 > &  data 
) const
overridevirtual

Optimized filling methods

Reimplemented from GT_DataArray.

GT_Size GT_GEOElementArray::entries ( ) const
inlineoverridevirtual

Query methods defined on GT_DataArray

Implements GT_DataArray.

Definition at line 75 of file GT_GEOElementArray.h.

void GT_GEOElementArray::fillDictionaryArray ( UT_Array< UT_OptionsHolder > &  data,
UT_ValArray< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

void GT_GEOElementArray::fillStringArray ( UT_StringArray data,
UT_ValArray< int > &  sizes,
GT_Offset  start,
GT_Size  length 
) const
overridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

const uint8* GT_GEOElementArray::get ( GT_Offset  i,
uint8 store,
int  sz 
) const
inlineoverridevirtual

Copy the data out of the array as a tuple of size entries The data may be copied, or the array may return a pointer to raw data. That is, the sub-class may not copy the data into the storage.

Reimplemented from GT_DataArray.

Definition at line 236 of file GT_GEOElementArray.h.

const int8* GT_GEOElementArray::get ( GT_Offset  i,
int8 store,
int  sz 
) const
inlineoverridevirtual

Copy the data out of the array as a tuple of size entries The data may be copied, or the array may return a pointer to raw data. That is, the sub-class may not copy the data into the storage.

Reimplemented from GT_DataArray.

Definition at line 238 of file GT_GEOElementArray.h.

const int16* GT_GEOElementArray::get ( GT_Offset  i,
int16 store,
int  sz 
) const
inlineoverridevirtual

Copy the data out of the array as a tuple of size entries The data may be copied, or the array may return a pointer to raw data. That is, the sub-class may not copy the data into the storage.

Reimplemented from GT_DataArray.

Definition at line 240 of file GT_GEOElementArray.h.

const int32* GT_GEOElementArray::get ( GT_Offset  i,
int32 store,
int  sz 
) const
inlineoverridevirtual

Copy the data out of the array as a tuple of size entries The data may be copied, or the array may return a pointer to raw data. That is, the sub-class may not copy the data into the storage.

Reimplemented from GT_DataArray.

Definition at line 242 of file GT_GEOElementArray.h.

const int64* GT_GEOElementArray::get ( GT_Offset  i,
int64 store,
int  sz 
) const
inlineoverridevirtual

Copy the data out of the array as a tuple of size entries The data may be copied, or the array may return a pointer to raw data. That is, the sub-class may not copy the data into the storage.

Reimplemented from GT_DataArray.

Definition at line 244 of file GT_GEOElementArray.h.

const fpreal16* GT_GEOElementArray::get ( GT_Offset  i,
fpreal16 store,
int  z 
) const
inlineoverridevirtual

Copy the data out of the array as a tuple of size entries The data may be copied, or the array may return a pointer to raw data. That is, the sub-class may not copy the data into the storage.

Reimplemented from GT_DataArray.

Definition at line 246 of file GT_GEOElementArray.h.

const fpreal64* GT_GEOElementArray::get ( GT_Offset  i,
fpreal64 store,
int  z 
) const
inlineoverridevirtual

Copy the data out of the array as a tuple of size entries The data may be copied, or the array may return a pointer to raw data. That is, the sub-class may not copy the data into the storage.

Reimplemented from GT_DataArray.

Definition at line 248 of file GT_GEOElementArray.h.

const fpreal32* GT_GEOElementArray::get ( GT_Offset  i,
fpreal32 store,
int  z 
) const
inlineoverridevirtual

Copy the data out of the array as a tuple of size entries The data may be copied, or the array may return a pointer to raw data. That is, the sub-class may not copy the data into the storage.

Reimplemented from GT_DataArray.

Definition at line 250 of file GT_GEOElementArray.h.

template<typename T >
bool GT_GEOElementArray::getArrayValue_t ( UT_ValArray< T > &  val,
GT_Offset  offset 
) const
inlineprotected

Definition at line 397 of file GT_GEOElementArray.h.

GT_Dict GT_GEOElementArray::getDict ( GT_Offset  offset,
int  idx = 0 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 174 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getDictA ( UT_Array< UT_OptionsHolder > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 183 of file GT_GEOElementArray.h.

GT_Offset GT_GEOElementArray::getDictIndex ( GT_Offset  offset,
int  idx = 0 
) const
overridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

GT_Size GT_GEOElementArray::getDictIndexCount ( ) const
overridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

fpreal16 GT_GEOElementArray::getF16 ( GT_Offset  offset,
int  idx 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 142 of file GT_GEOElementArray.h.

fpreal32 GT_GEOElementArray::getF32 ( GT_Offset  offset,
int  idx 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

Definition at line 144 of file GT_GEOElementArray.h.

fpreal64 GT_GEOElementArray::getF64 ( GT_Offset  offset,
int  idx 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 146 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getFA16 ( UT_ValArray< fpreal16 > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 210 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getFA32 ( UT_ValArray< fpreal32 > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 213 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getFA64 ( UT_ValArray< fpreal64 > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 216 of file GT_GEOElementArray.h.

int32 GT_GEOElementArray::getI32 ( GT_Offset  offset,
int  idx 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

Definition at line 150 of file GT_GEOElementArray.h.

int64 GT_GEOElementArray::getI64 ( GT_Offset  offset,
int  idx 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 152 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getIA16 ( UT_ValArray< int16 > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 225 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getIA32 ( UT_ValArray< int32 > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 228 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getIA64 ( UT_ValArray< int64 > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 231 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getIA8 ( UT_ValArray< int8 > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 222 of file GT_GEOElementArray.h.

void GT_GEOElementArray::getIndexedDicts ( UT_Array< UT_OptionsHolder > &  ,
UT_IntArray  
) const
overridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

void GT_GEOElementArray::getIndexedStrings ( UT_StringArray ,
UT_IntArray  
) const
overridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

int64 GT_GEOElementArray::getMemoryUsage ( ) const
inlineoverridevirtual

Query methods defined on GT_DataArray

Implements GT_DataArray.

Reimplemented in GT_GEOAutoNormalArray.

Definition at line 122 of file GT_GEOElementArray.h.

GT_String GT_GEOElementArray::getS ( GT_Offset  offset,
int  idx 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

Definition at line 154 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getSA ( UT_StringArray a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 163 of file GT_GEOElementArray.h.

GT_Storage GT_GEOElementArray::getStorage ( ) const
inlineoverridevirtual

Query methods defined on GT_DataArray

Implements GT_DataArray.

Definition at line 73 of file GT_GEOElementArray.h.

GT_Offset GT_GEOElementArray::getStringIndex ( GT_Offset  offset,
int  idx = 0 
) const
overridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

GT_Size GT_GEOElementArray::getStringIndexCount ( ) const
overridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

GT_Size GT_GEOElementArray::getTotalArrayEntries ( ) const
overridevirtual

Query methods defined on GT_DataArray

Reimplemented from GT_DataArray.

template<typename T >
const T* GT_GEOElementArray::getTuple_t ( GT_Offset  offset,
T store,
int  size 
) const
inlineprotected

Definition at line 388 of file GT_GEOElementArray.h.

GT_Size GT_GEOElementArray::getTupleSize ( ) const
inlineoverridevirtual

Query methods defined on GT_DataArray

Implements GT_DataArray.

Definition at line 97 of file GT_GEOElementArray.h.

GT_Type GT_GEOElementArray::getTypeInfo ( ) const
inlineoverridevirtual

Query methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 101 of file GT_GEOElementArray.h.

uint8 GT_GEOElementArray::getU8 ( GT_Offset  offset,
int  idx 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Implements GT_DataArray.

Definition at line 148 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::getUA8 ( UT_ValArray< uint8 > &  a,
GT_Offset  offset 
) const
inlineoverridevirtual

Access methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 219 of file GT_GEOElementArray.h.

template<typename T >
T GT_GEOElementArray::getValue_t ( GT_Offset  offset,
int  idx 
) const
inlineprotected

Definition at line 377 of file GT_GEOElementArray.h.

bool GT_GEOElementArray::hasArrayEntries ( ) const
inlineoverridevirtual

Query methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 125 of file GT_GEOElementArray.h.

void GT_GEOElementArray::initAttribute ( const GA_Attribute attrib)
protected
bool GT_GEOElementArray::isValid ( ) const
inlineoverridevirtual

Query methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Definition at line 124 of file GT_GEOElementArray.h.

GT_Size GT_GEOElementArray::itemSize ( GT_Offset  offset) const
overridevirtual

Query methods defined on GT_DataArray

Reimplemented from GT_DataArray.

void GT_GEOElementArray::makeInvalid ( )
protected
GT_Type GT_GEOElementArray::mapTypeInfo ( GA_TypeInfo  type,
int  tsize 
) const
protected
void GT_GEOElementArray::updateGeoDetail ( const GU_ConstDetailHandle dtl,
const char *  name,
GT_Owner  attrib_scope,
const int  expected_size 
)
overridevirtual

Query methods defined on GT_DataArray

Reimplemented from GT_DataArray.

Reimplemented in GT_GEOAutoNormalArray.

Member Data Documentation

const GA_Attribute* GT_GEOElementArray::myAttribute
protected

Definition at line 413 of file GT_GEOElementArray.h.

GA_AttributeOwner GT_GEOElementArray::myAttributeOwner
protected

Definition at line 422 of file GT_GEOElementArray.h.

GA_ROHandleF GT_GEOElementArray::myF
protected

Definition at line 423 of file GT_GEOElementArray.h.

GA_ROHandleD GT_GEOElementArray::myF64
protected

Definition at line 424 of file GT_GEOElementArray.h.

GA_ROHandleFA GT_GEOElementArray::myFA
protected

Definition at line 429 of file GT_GEOElementArray.h.

GA_ROHandleDA GT_GEOElementArray::myFA64
protected

Definition at line 430 of file GT_GEOElementArray.h.

GU_ConstDetailHandle GT_GEOElementArray::myGdh
protected

Definition at line 410 of file GT_GEOElementArray.h.

const GU_Detail* GT_GEOElementArray::myGdp
protected

Definition at line 411 of file GT_GEOElementArray.h.

GA_ROHandleI GT_GEOElementArray::myI
protected

Definition at line 425 of file GT_GEOElementArray.h.

GA_ROHandleID GT_GEOElementArray::myI64
protected

Definition at line 426 of file GT_GEOElementArray.h.

GA_ROHandleIA GT_GEOElementArray::myIA
protected

Definition at line 431 of file GT_GEOElementArray.h.

GA_ROHandleIDA GT_GEOElementArray::myIA64
protected

Definition at line 432 of file GT_GEOElementArray.h.

const GA_AIFNumericArray* GT_GEOElementArray::myNumericArray
protected

Definition at line 417 of file GT_GEOElementArray.h.

GA_AttributeOwner GT_GEOElementArray::myOffsetOwner
protected

Definition at line 421 of file GT_GEOElementArray.h.

GT_GEOOffsetList GT_GEOElementArray::myOffsets
protected

Definition at line 412 of file GT_GEOElementArray.h.

const GA_AIFSharedDictArray* GT_GEOElementArray::mySDictArray
protected

Definition at line 420 of file GT_GEOElementArray.h.

const GA_AIFSharedDictTuple* GT_GEOElementArray::mySDictTuple
protected

Definition at line 419 of file GT_GEOElementArray.h.

const GA_AIFSharedStringArray* GT_GEOElementArray::mySSArray
protected

Definition at line 418 of file GT_GEOElementArray.h.

const GA_AIFSharedStringTuple* GT_GEOElementArray::mySSTuple
protected

Definition at line 416 of file GT_GEOElementArray.h.

GT_Storage GT_GEOElementArray::myStorage
protected

Definition at line 433 of file GT_GEOElementArray.h.

const GA_AIFStringTuple* GT_GEOElementArray::mySTuple
protected

Definition at line 415 of file GT_GEOElementArray.h.

const GA_AIFTuple* GT_GEOElementArray::myTuple
protected

Definition at line 414 of file GT_GEOElementArray.h.

int GT_GEOElementArray::myTupleSize
protected

Definition at line 434 of file GT_GEOElementArray.h.

GA_ROHandleV3 GT_GEOElementArray::myV3
protected

Definition at line 427 of file GT_GEOElementArray.h.

GA_ROHandleV3D GT_GEOElementArray::myV364
protected

Definition at line 428 of file GT_GEOElementArray.h.


The documentation for this class was generated from the following file: