11 #ifndef __GA_AIFNumericArrayTuple__
12 #define __GA_AIFNumericArrayTuple__
38 virtual int getTupleSize(
const GA_Attribute *attrib)
const = 0;
100 #define GETBLOCKFROMINDEX(ITYPE, DTYPE) \
101 virtual bool getBlockFromIndices(const GA_Attribute *attrib, \
102 GA_Index start, GA_Size nelem, \
103 UT_Array<ITYPE> &index, \
104 UT_Array<DTYPE> &data) const = 0;
121 #undef GETBLOCKFROMINDEX
126 #define GETBLOCKFROMINDEX(DTYPE) \
127 bool getPackedArrayFromIndices(const GA_Attribute *attrib, \
128 GA_Index start, GA_Size nelem, \
129 UT_PackedArrayOfArrays<DTYPE> &array) const \
130 { return getBlockFromIndices(attrib, start, nelem, array.rawOffsets(), array.rawData()); }
139 #undef GETBLOCKFROMINDEX
Definition of a geometry attribute.
Generic Attribute Interface class to access an attribute as a array.
getFileOption("OpenEXR:storage") storage
A range of elements in an index-map.
#define GETBLOCKFROMINDEX(ITYPE, DTYPE)
bool isNan(const float x)
Return true if x is a NaN (Not-A-Number) value.