|
| | GA_DataArrayTuple (GA_Storage storage) |
| |
| | GA_DataArrayTuple (const GA_DataArrayTuple &src) |
| |
| | ~GA_DataArrayTuple () |
| |
| int64 | getMemoryUsage (bool inclusive) const |
| | Report memory usage. More...
|
| |
| void | countMemory (UT_MemoryCounter &counter, bool inclusive) const |
| |
| GA_DataArrayTuple & | operator= (const GA_DataArrayTuple &src) |
| |
| void | setStorage (GA_Storage storage, const GA_Range ©_iterator, const GA_Defaults &defs, bool allow_packing=false) |
| |
| void | setTupleSize (int tuple_size, GA_Offset array_size, const GA_Defaults &defs, ga_Packing packing=PACK_NONE) |
| | Setting the tuple size requires the array_size and the defaults. More...
|
| |
| void | setArraySize (GA_Offset size) |
| | This method grows each array of the tuple. More...
|
| |
| GA_Offset | getArraySize () const |
| | This method queries the (common) size of the arrays. More...
|
| |
| void | tryCompressAllPages (GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET) |
| |
| void | hardenAllPages (GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET) |
| |
| void | mergeGrowArrayAndCopy (const GA_MergeMap &map, GA_AttributeOwner owner, const GA_DataArrayTuple &src) |
| |
| GA_Storage | getStorage () const |
| |
| int | getTupleSize () const |
| |
| ga_Packing | getPacking () const |
| |
| GA_DataArray * | getData (int tuple_index) |
| |
| const GA_DataArray * | getData (int tuple_index) const |
| |
| bool | jsonSave (UT_JSONWriter &w, const GA_Range &it, const GA_SaveOptions *options) const |
| |
| bool | jsonLoad (UT_JSONParser &w, const GA_LoadMap &map, GA_AttributeOwner owner) |
| | Load from a JSON stream. More...
|
| |
| bool | jsonSave (UT_JSONWriter &w, const GA_Range &range, const GA_SaveOptions *options, const UT_IntArray *map, int defvalue=-1) const |
| |
| void | comparePages (UT_BitArray &pages, const GA_DataArrayTuple &other) const |
| |
|
| void | defragment (const GA_Defragment &defrag) |
| |
|
| const GA_DataArray *const * | getDataPtr () const |
| |
| GA_DataArray *const * | getDataPtr () |
| |
A tuple of scalar arrays.
This class maintains a tuple of arrays. For example storing a position is kept as three distinct arrays (one for x, y and z). The storage for all arrays is uniform.
See also: JSON Schema: GA_DataArrayTuple
- See Also
- GA_DataArray
Definition at line 49 of file GA_DataArrayTuple.h.
Save data to JSON schema.
JSON Schema: GA_DataArrayTuple
The data values are stored as an array of structs. That is, if the DataArrayTuple is a 2-vector (tuple size 2) containing 4 elements, the value array will be an array of 4 2-vectors (i.e. [ [0,0], [1,1], [2,2], [3,3] ]). For single valued (tuple size == 1), a single array of values is saved out. The keyword for this is "arrays" vs. "tuples".
{
"name" : "GA_DataArrayTuple",
"description : "A tuple of scalar
arrays",
"properties" :
{
"minimum" : 1,
},
},
"tuples": {
"description" :
"Saved as an array of structs (not
a struct of
arrays).
"
"items" : {
"description" :
"Each item is
a number array
for each tuple
",
"items" : "number",
}
}
"description" :
}
}
}
- See Also
- JSON_FileFormat