17 #ifndef __GA_ATINumericArray
18 #define __GA_ATINumericArray
47 static void registerType();
51 {
return theAttributeType->getTypeName(); }
58 return attrib && &attrib->
getType() == theAttributeType;
63 if (attrib && &attrib->
getType() == theAttributeType)
64 return static_cast<GA_ATINumericArray *>(attrib);
70 if (attrib && &attrib->
getType() == theAttributeType)
71 return static_cast<const GA_ATINumericArray *>(attrib);
100 {
return myAIFCopyData; }
104 {
return myAIFMerge; }
114 {
return myAIFCompare; }
116 {
return myAIFNumericArray; }
151 int getDataTupleSize()
const;
194 bool setDataTupleSize(
int size);
209 const GA_Range &si,
int ulps)
const;
214 void mergeDestroyDestination(
const GA_MergeMap &map,
247 friend class ga_ArrayDataMerge;
248 friend class ga_ArrayDataJSON;
249 friend class ga_ArrayDataCopyData;
250 friend class ga_ArrayDataCompare;
251 friend class ga_ArrayNumericArray;
A class to manage an ordered array which has fixed offset handles.
Definition of a geometry attribute.
Generic Attribute Interface class to access an attribute as a array.
Generic Attribute Interface class to get/set data as index pairs.
const GA_AIFCompare * getAIFCompare() const override
Return the attribute's comparison interface or NULL.
Used to pass options and map offset values during saving.
getFileOption("OpenEXR:storage") storage
Attribute Interface class to perform numeric operations on attributes.
static SYS_FORCE_INLINE const GA_ATINumericArray * cast(const GA_Attribute *attrib)
const GA_AIFIndexPair * getAIFIndexPair() const override
Return the attribute's index pair interface or NULL.
The merge map keeps track of information when merging details.
const GA_AIFEdit * getAIFEdit() const override
Return the attribute's edit interface or NULL.
const GA_AIFMath * getAIFMath() const override
Return the attribute's math interface or NULL.
virtual void reconstructElementBlock(GA_Offset offset, GA_Offset nelements)=0
static SYS_FORCE_INLINE const UT_StringHolder & getTypeName()
JSON reader class which handles parsing of JSON or bJSON files.
virtual bool setArraySize(GA_Offset size)=0
Class which writes ASCII or binary JSON streams.
SYS_FORCE_INLINE TO_T UTverify_cast(FROM_T from)
virtual void countMemory(UT_MemoryCounter &counter, bool inclusive) const =0
virtual int64 getMemoryUsage(bool inclusive) const =0
virtual bool matchesStorage(const GA_Attribute *that) const
bool matchesStorage(const GA_Attribute *that) const override
virtual void tryCompressAllPages(GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET)=0
SYS_FORCE_INLINE const GA_AttributeType & getType() const
An array of array of numbers with various storage types.
#define GA_INVALID_OFFSET
A range of elements in an index-map.
static SYS_FORCE_INLINE GA_ATINumericArray * cast(GA_Attribute *attrib)
static SYS_FORCE_INLINE const GA_AttributeType & getType()
GA_Storage getStorage() const
Query the storage used for the array data.
GA_Size getTupleSize() const
Queries the size of each tuple stored in the arrays.
virtual void replace(const GA_Attribute &src)=0
Attribute Interface for merging attribute data between details.
const GA_AIFTuple * getAIFTuple() const override
Return the attribute's tuple interface or NULL.
const GA_AIFMerge * getAIFMerge() const override
Return the attribute's merge interface or NULL.
const GA_AIFJSON * getAIFJSON() const override
Attribute Interface class to perform comparisons on attributes.
Defragmentation of IndexMaps.
GLuint const GLchar * name
const GA_AIFCopyData * getAIFCopyData() const override
Return the attribute's copy interface or NULL.
const GA_AIFNumericArray * getAIFNumericArray() const override
Return the attribute's arraydata interface or NULL.
static SYS_FORCE_INLINE bool isType(const GA_Attribute *attrib)
Concurrent writes to separate pages supported.
Attribute Interface class to copy attribute data.
GLubyte GLubyte GLubyte GLubyte w
const GA_AIFInterp * getAIFInterp() const override
Return the attribute's interpolation interface or NULL.
Attribute Interface for file I/O.
AIF to record changes to attribute values.
virtual void hardenAllPages(GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET)=0
Generic Attribute Interface class to access an attribute as a tuple.
virtual void defragment(const GA_Defragment &defrag)=0
WriteConcurrence getSupportedWriteConcurrence() const override