11 #ifndef __GA_AIFNumericArrayTuple__
12 #define __GA_AIFNumericArrayTuple__
37 virtual int getTupleSize(
const GA_Attribute *attrib)
const = 0;
99 #define GETBLOCKFROMINDEX(ITYPE, DTYPE) \
100 virtual bool getBlockFromIndices(const GA_Attribute *attrib, \
101 GA_Index start, GA_Size nelem, \
102 UT_Array<ITYPE> &index, \
103 UT_Array<DTYPE> &data) const = 0;
120 #undef GETBLOCKFROMINDEX
125 #define GETBLOCKFROMINDEX(DTYPE) \
126 bool getPackedArrayFromIndices(const GA_Attribute *attrib, \
127 GA_Index start, GA_Size nelem, \
128 UT_PackedArrayOfArrays<DTYPE> &array) const \
129 { return getBlockFromIndices(attrib, start, nelem, array.rawOffsets(), array.rawData()); }
138 #undef GETBLOCKFROMINDEX
Definition of a geometry attribute.
Generic Attribute Interface class to access an attribute as a array.
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.
getOption("OpenEXR.storage") storage