|
| GA_DataArray (GA_Storage storage, GA_Offset size, int64 value) |
|
| GA_DataArray (GA_Storage storage, GA_Offset size, fpreal value) |
|
| GA_DataArray (GA_Storage storage, GA_Offset size, int slice, UT_Vector3D value) |
|
| GA_DataArray (const GA_DataArray &src) |
|
| ~GA_DataArray () |
|
GA_DataArray & | operator= (const GA_DataArray &src) |
|
int64 | getMemoryUsage (bool inclusive) const |
| Report memory usage. More...
|
|
void | countMemory (UT_MemoryCounter &counter, bool inclusive) const |
|
void | setArraySize (GA_Offset size) |
|
GA_Offset | getArraySize () const |
| Query the size of the array. More...
|
|
GA_Storage | getStorage () const |
| Query the storage used for the array data. More...
|
|
void | clear () |
|
void | clearOffset (GA_Offset off, GA_Offset num) |
| Clears a specific value to the default. More...
|
|
void | makeConstant (int32 val) |
| Makes the array constant. More...
|
|
void | makeConstant (int64 val) |
|
void | makeConstant (fpreal32 val) |
|
void | makeConstant (fpreal64 val) |
|
void | makeVector3Constant (const int32 *val) |
|
void | makeVector3Constant (const int64 *val) |
|
void | makeVector3Constant (const fpreal32 *val) |
|
void | makeVector3Constant (const fpreal64 *val) |
|
void | shareData (GA_DataArray *src) |
|
void | mergeGrowArrayAndCopy (const GA_MergeMap &map, GA_AttributeOwner owner, const GA_DataArray &src) |
|
void | get (GA_Offset start, GA_Offset end, int32 *v, int step=1) const |
|
void | get (GA_Offset start, GA_Offset end, int64 *v, int step=1) const |
|
void | get (GA_Offset start, GA_Offset end, fpreal32 *v, int step=1) const |
|
void | get (GA_Offset start, GA_Offset end, fpreal64 *v, int step=1) const |
|
void | set (GA_Offset di, int32 val) |
| Set the value at a particular index. More...
|
|
void | set (GA_Offset di, int64 val) |
|
void | set (GA_Offset di, fpreal32 val) |
|
void | set (GA_Offset di, fpreal64 val) |
|
void | set (const GA_Range &di, int32 val) |
|
void | set (const GA_Range &di, int64 val) |
|
void | set (const GA_Range &di, fpreal32 val) |
|
void | set (const GA_Range &di, fpreal64 val) |
|
void | setVector3 (const GA_Range &di, const int32 *val) |
|
void | setVector3 (const GA_Range &di, const int64 *val) |
|
void | setVector3 (const GA_Range &di, const fpreal32 *val) |
|
void | setVector3 (const GA_Range &di, const fpreal64 *val) |
|
void | set (GA_Offset di, const GA_DataArray &src, GA_Offset si) |
|
void | set (const GA_Range &di, const GA_DataArray &src, GA_Offset si) |
|
void | set (const GA_Range &di, const GA_DataArray &src) |
|
void | set (const GA_Range &di, const GA_DataArray &src, const GA_Range &si) |
|
void | set (GA_Offset start, GA_Offset end, const int32 *v, int step=1) |
| Set a range of values in the array. More...
|
|
void | set (GA_Offset start, GA_Offset end, const int64 *v, int step=1) |
|
void | set (GA_Offset start, GA_Offset end, const fpreal32 *v, int step=1) |
|
void | set (GA_Offset start, GA_Offset end, const fpreal64 *v, int step=1) |
|
void | reset (GA_Offset di) |
| Reset the value at a particular index to its default. More...
|
|
void | reset (const GA_Range &di) |
|
void | xlate (const GA_Range &di, const UT_IntArray &map, int64 invalid=-1) |
|
bool | jsonSave (UT_JSONWriter &w, const GA_Range &it) const |
|
bool | jsonLoad (UT_JSONParser &p, const GA_LoadMap &map, GA_AttributeOwner owner) |
| Load from a JSON stream. More...
|
|
bool | jsonSave (UT_JSONWriter &w, const GA_Range &range, const UT_IntArray *map, int defvalue=-1) const |
|
bool | isSameType (const GA_DataArray &b) const |
|
GA_Size | marshallConstantFlagsForOutputPagesFast (const UT_ValArray< GA_PageNum > &internal_page_map, UT_BitArray &constant_flags) const |
|
GA_Size | marshallConstantFlagsForOutputPagesSlow (const UT_Array< ga_SubPageBlock > &internal_page_map, UT_BitArray &constant_flags) const |
|
void | comparePages (UT_BitArray &pages, const GA_DataArray &other) const |
|
void | tryCompressAllPages (GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET) |
|
void | tryCompressSinglePage (GA_Offset pageoffset) |
|
void | hardenAllPages (GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET) |
|
void | remapAndCount (GA_Offset start_offset, GA_Offset end_offset, const UT_IntArray &old2new, UT_IntArray &count) |
|
|
int32 | getI32 (GA_Offset idx) const |
|
int64 | getI64 (GA_Offset idx) const |
|
fpreal16 | getF16 (GA_Offset idx) const |
|
fpreal32 | getF32 (GA_Offset idx) const |
|
fpreal64 | getF64 (GA_Offset idx) const |
|
fpreal | getF (GA_Offset idx) const |
|
void | get (GA_Offset idx, int32 &v) const |
|
void | get (GA_Offset idx, int64 &v) const |
|
void | get (GA_Offset idx, fpreal32 &v) const |
|
void | get (GA_Offset idx, fpreal64 &v) const |
|
|
void | swapRange (GA_Offset a, GA_Offset b, GA_Size n) |
|
void | moveRange (GA_Offset src, GA_Offset dst, GA_Size n) |
|
void | defragment (const GA_Defragment &defrag) |
|
|
bool | isNan (GA_Offset ai) const |
|
bool | isNan (const GA_Range &di) const |
|
|
static void | setTuple (GA_DataArray *const *dest, const GA_Range &di, const GA_DataArray *const *src, int tuple_size) |
| Set the value for a tuple of data array from a source tuple. More...
|
|
static void | setTuple (GA_DataArray *const *dest, const GA_Range &di, const GA_DataArray *const *src, const GA_Range &si, int tuple_size) |
|
static void | setTuple (GA_DataArray *const *dest, const GA_DataArray *const *src, const GA_Range &si, const GA_MergeOffsetMap &map, int tuple_size) |
|
|
template<typename DESTTYPE , typename MYTYPE > |
static DESTTYPE | directGetterScalar (const GA_DataArray *const *data, GA_Offset off, int comp) |
|
template<typename SRCTYPE , typename MYTYPE > |
static void | directSetterScalar (GA_DataArray *const *data, GA_Offset off, int comp, SRCTYPE val) |
|
template<typename SRCTYPE , typename MYTYPE > |
static void | directAdderScalar (GA_DataArray *const *data, GA_Offset off, int comp, SRCTYPE val) |
|
template<typename DESTTYPE , typename MYTYPE > |
static void | directGetterVector (DESTTYPE &value, const GA_DataArray *const *data, GA_Offset off) |
|
template<typename SRCTYPE , typename MYTYPE > |
static void | directSetterVector (GA_DataArray *const *data, GA_Offset off, const SRCTYPE &val) |
|
template<typename SRCTYPE , typename MYTYPE > |
static void | directAdderVector (GA_DataArray *const *data, GA_Offset off, const SRCTYPE &val) |
|
template<typename DESTTYPE , typename MYTYPE > |
static DESTTYPE | directVector3GetterScalar (const GA_DataArray *const *d, GA_Offset off, int comp) |
|
template<typename SRCTYPE , typename MYTYPE > |
static void | directVector3SetterScalar (GA_DataArray *const *data, GA_Offset off, int comp, SRCTYPE val) |
|
template<typename SRCTYPE , typename MYTYPE > |
static void | directVector3AdderScalar (GA_DataArray *const *data, GA_Offset off, int comp, SRCTYPE val) |
|
template<typename DESTTYPE , typename MYTYPE > |
static void | directVector3GetterVector (DESTTYPE &value, const GA_DataArray *const *data, GA_Offset off) |
|
template<typename SRCTYPE , typename MYTYPE > |
static void | directVector3SetterVector (GA_DataArray *const *data, GA_Offset off, const SRCTYPE &val) |
|
template<typename SRCTYPE , typename MYTYPE > |
static void | directVector3AdderVector (GA_DataArray *const *data, GA_Offset off, const SRCTYPE &val) |
|
template<typename T , typename BASETYPE , typename MYTYPE , bool READONLY> |
static T * | directPageGetterVary (GA_DataArray *const *data, T *marshall, GA_Offset off, int comp, bool &isconstant) |
|
template<typename T , typename BASETYPE , int TUPLE_SIZE, typename MYTYPE , bool READONLY> |
static T * | directVector3PageGetterVary (GA_DataArray *const *data, T *marshall, GA_Offset off, int comp, bool &isconstant) |
|
template<typename T , typename BASETYPE , typename MYTYPE > |
static T * | directPageGetter (GA_DataArray *const *data, T *marshall, GA_Offset off, int comp, bool &isconstant) |
|
template<typename T , typename BASETYPE , typename MYTYPE > |
static T * | directVector3PageGetter (GA_DataArray *const *data, T *marshall, GA_Offset off, int comp, bool &isconstant) |
|
template<typename T , typename BASETYPE , typename MYTYPE > |
static T * | directPageGetterRO (const GA_DataArray *const *data, T *marshall, GA_Offset off, int comp, bool &isconstant) |
|
template<typename T , typename BASETYPE , typename MYTYPE > |
static T * | directVector3PageGetterRO (const GA_DataArray *const *data, T *marshall, GA_Offset off, int comp, bool &isconstant) |
|
template<typename T , typename BASETYPE , int TUPLE_SIZE, typename MYTYPE > |
static void | directVector3PageSetterVary (GA_DataArray *const *data, const T *srcdata, GA_Offset off, int comp) |
|
template<typename T , typename BASETYPE , typename MYTYPE > |
static void | directPageSetter (GA_DataArray *const *data, const T *srcdata, GA_Offset off, int comp) |
|
template<typename T , typename BASETYPE , typename MYTYPE > |
static void | directVector3PageSetter (GA_DataArray *const *data, const T *srcdata, GA_Offset off, int comp) |
|
An array of numbers with various storage types.
GA_DataArray provides a way of storing arrays of scalar values. The array can have various storage types from 8-bit integer to 64-bit reals.
There are basic operations on the array.
See also: JSON Schema: GA_DataArray
Definition at line 49 of file GA_DataArray.h.