HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_AIFNumericArray Class Referenceabstract

Generic Attribute Interface class to access an attribute as a array. More...

#include <GA_AIFNumericArray.h>

Public Member Functions

 GA_AIFNumericArray ()
 
virtual ~GA_AIFNumericArray ()
 
virtual exint arraySize (const GA_Attribute *atr, GA_Offset off) const =0
 Return the size of the array for the GA_Offset. More...
 
virtual int getTupleSize (const GA_Attribute *attrib) const =0
 
virtual bool setTupleSize (GA_Attribute *attrib, int size) const =0
 
virtual GA_Storage getStorage (const GA_Attribute *attrib) const =0
 
virtual bool setStorage (GA_Attribute *attrib, GA_Storage storage) const =0
 
virtual bool clear (GA_Attribute *attrib) const =0
 
virtual exint findMaximumArrayLength (const GA_Attribute *attrib) const =0
 
virtual bool get (const GA_Attribute *attrib, GA_Offset ai, UT_Array< fpreal32 > &data) const =0
 
virtual bool get (const GA_Attribute *attrib, GA_Offset ai, UT_Array< fpreal64 > &data) const =0
 
virtual bool get (const GA_Attribute *attrib, GA_Offset ai, UT_Array< int32 > &data) const =0
 
virtual bool get (const GA_Attribute *attrib, GA_Offset ai, UT_Array< int64 > &data) const =0
 
virtual bool append (const GA_Attribute *attrib, GA_Offset ai, UT_PackedArrayOfArrays< fpreal32 > &data) const =0
 
virtual bool append (const GA_Attribute *attrib, GA_Offset ai, UT_PackedArrayOfArrays< fpreal64 > &data) const =0
 
virtual bool append (const GA_Attribute *attrib, GA_Offset ai, UT_PackedArrayOfArrays< int32 > &data) const =0
 
virtual bool append (const GA_Attribute *attrib, GA_Offset ai, UT_PackedArrayOfArrays< int64 > &data) const =0
 
 GETBLOCKFROMINDEX (int32, int32)
 
 GETBLOCKFROMINDEX (int32, int64)
 
 GETBLOCKFROMINDEX (int32, fpreal32)
 
 GETBLOCKFROMINDEX (int32, fpreal64)
 
 GETBLOCKFROMINDEX (int64, int32)
 
 GETBLOCKFROMINDEX (int64, int64)
 
 GETBLOCKFROMINDEX (int64, fpreal32)
 
 GETBLOCKFROMINDEX (int64, fpreal64)
 
 GETBLOCKFROMINDEX (int32)
 
 GETBLOCKFROMINDEX (int64)
 
 GETBLOCKFROMINDEX (fpreal32)
 
 GETBLOCKFROMINDEX (fpreal64)
 
virtual bool isNan (const GA_Attribute *attrib, GA_Offset ai) const =0
 
virtual bool isNan (const GA_Attribute *attrib, const GA_Range &it) const =0
 
virtual bool set (GA_Attribute *attrib, GA_Offset ai, const UT_Array< fpreal32 > &data) const =0
 
virtual bool set (GA_Attribute *attrib, GA_Offset ai, const UT_Array< fpreal64 > &data) const =0
 
virtual bool set (GA_Attribute *attrib, GA_Offset ai, const UT_Array< int32 > &data) const =0
 
virtual bool set (GA_Attribute *attrib, GA_Offset ai, const UT_Array< int64 > &data) const =0
 

Detailed Description

Generic Attribute Interface class to access an attribute as a array.

This class provides the interface to access attribute data. Each attribute type may provide this interface if it makes sense.

Examples:
SOP/SOP_ArrayAttrib.C.

Definition at line 29 of file GA_AIFNumericArray.h.

Constructor & Destructor Documentation

GA_AIFNumericArray::GA_AIFNumericArray ( )
virtual GA_AIFNumericArray::~GA_AIFNumericArray ( )
virtual

Member Function Documentation

virtual bool GA_AIFNumericArray::append ( const GA_Attribute attrib,
GA_Offset  ai,
UT_PackedArrayOfArrays< fpreal32 > &  data 
) const
pure virtual

Appends a value from a single offset into a packed array.

virtual bool GA_AIFNumericArray::append ( const GA_Attribute attrib,
GA_Offset  ai,
UT_PackedArrayOfArrays< fpreal64 > &  data 
) const
pure virtual

Appends a value from a single offset into a packed array.

virtual bool GA_AIFNumericArray::append ( const GA_Attribute attrib,
GA_Offset  ai,
UT_PackedArrayOfArrays< int32 > &  data 
) const
pure virtual

Appends a value from a single offset into a packed array.

virtual bool GA_AIFNumericArray::append ( const GA_Attribute attrib,
GA_Offset  ai,
UT_PackedArrayOfArrays< int64 > &  data 
) const
pure virtual

Appends a value from a single offset into a packed array.

virtual exint GA_AIFNumericArray::arraySize ( const GA_Attribute atr,
GA_Offset  off 
) const
pure virtual

Return the size of the array for the GA_Offset.

virtual bool GA_AIFNumericArray::clear ( GA_Attribute attrib) const
pure virtual

Erase all arrays

virtual exint GA_AIFNumericArray::findMaximumArrayLength ( const GA_Attribute attrib) const
pure virtual

Return the length of longest array

virtual bool GA_AIFNumericArray::get ( const GA_Attribute attrib,
GA_Offset  ai,
UT_Array< fpreal32 > &  data 
) const
pure virtual

Get a single value from a single offset in an attribute array.

Examples:
SOP/SOP_ArrayAttrib.C.
virtual bool GA_AIFNumericArray::get ( const GA_Attribute attrib,
GA_Offset  ai,
UT_Array< fpreal64 > &  data 
) const
pure virtual

Get a single value from a single offset in an attribute array.

virtual bool GA_AIFNumericArray::get ( const GA_Attribute attrib,
GA_Offset  ai,
UT_Array< int32 > &  data 
) const
pure virtual

Get a single value from a single offset in an attribute array.

virtual bool GA_AIFNumericArray::get ( const GA_Attribute attrib,
GA_Offset  ai,
UT_Array< int64 > &  data 
) const
pure virtual

Get a single value from a single offset in an attribute array.

GA_AIFNumericArray::GETBLOCKFROMINDEX ( int32  ,
int32   
)
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int32  ,
int64   
)
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int32  ,
fpreal32   
)
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int32  ,
fpreal64   
)
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int64  ,
int32   
)
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int64  ,
int64   
)
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int64  ,
fpreal32   
)
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int64  ,
fpreal64   
)
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int32  )
GA_AIFNumericArray::GETBLOCKFROMINDEX ( int64  )
GA_AIFNumericArray::GETBLOCKFROMINDEX ( fpreal32  )
GA_AIFNumericArray::GETBLOCKFROMINDEX ( fpreal64  )
virtual GA_Storage GA_AIFNumericArray::getStorage ( const GA_Attribute attrib) const
pure virtual

Query and set some tuple intrisics.

virtual int GA_AIFNumericArray::getTupleSize ( const GA_Attribute attrib) const
pure virtual

Query and set some tuple intrisics.

virtual bool GA_AIFNumericArray::isNan ( const GA_Attribute attrib,
GA_Offset  ai 
) const
pure virtual

Test if any elements are NAN's

virtual bool GA_AIFNumericArray::isNan ( const GA_Attribute attrib,
const GA_Range it 
) const
pure virtual

Test if any elements are NAN's

virtual bool GA_AIFNumericArray::set ( GA_Attribute attrib,
GA_Offset  ai,
const UT_Array< fpreal32 > &  data 
) const
pure virtual

Set a single array of the array.

Examples:
SOP/SOP_ArrayAttrib.C.
virtual bool GA_AIFNumericArray::set ( GA_Attribute attrib,
GA_Offset  ai,
const UT_Array< fpreal64 > &  data 
) const
pure virtual

Set a single array of the array.

virtual bool GA_AIFNumericArray::set ( GA_Attribute attrib,
GA_Offset  ai,
const UT_Array< int32 > &  data 
) const
pure virtual

Set a single array of the array.

virtual bool GA_AIFNumericArray::set ( GA_Attribute attrib,
GA_Offset  ai,
const UT_Array< int64 > &  data 
) const
pure virtual

Set a single array of the array.

virtual bool GA_AIFNumericArray::setStorage ( GA_Attribute attrib,
GA_Storage  storage 
) const
pure virtual

Query and set some tuple intrisics.

virtual bool GA_AIFNumericArray::setTupleSize ( GA_Attribute attrib,
int  size 
) const
pure virtual

Query and set some tuple intrisics.


The documentation for this class was generated from the following file: