GB_AttributeData Class Reference

#include <GB_AttributeData.h>

List of all members.

Classes

struct  CopyImpl
struct  CopyImpl< T, T >

Public Member Functions

 GB_AttributeData ()
 ~GB_AttributeData ()
void SYS_DEPRECATED * getData (int n) const
void SYS_DEPRECATED * getData () const
template<typename T >
T * castAttribData (const GB_AttributeRef &n)
template<typename T >
const T * castAttribData (const GB_AttributeRef &n) const
void changeSize (int s)
void deleteData ()
void SYS_DEPRECATED * operator[] (unsigned n)
void SYS_DEPRECATED * operator[] (unsigned n) const
void sumData (const GB_AttributeData &from, const GB_Attribute *table, fpreal scale)
void sumData (const GB_AttributeData &from, const GB_Attribute *table)
void scaleData (const GB_Attribute *table, fpreal s)
void setData (const GB_AttributeData &from, int s)
void swapData (GB_AttributeData &d)
bool compareData (const GB_AttributeData &cmp, const GB_Attribute *table, fpreal tol=FP32_TOLERANCE) const
void setf (fpreal val, const GB_FloatOffsets &foffsets)
void addf (fpreal val, const GB_FloatOffsets &foffsets)
void subf (fpreal val, const GB_FloatOffsets &foffsets)
void mulf (fpreal val, const GB_FloatOffsets &foffsets)
void divf (fpreal val, const GB_FloatOffsets &foffsets)
void mulv (const UT_Matrix3 &val, const GB_VectorOffsets &foffsets, int keepLength=1)
void setData (const GB_AttributeData &from, const GB_FloatOffsets &foffsets)
void addData (const GB_AttributeData &from, const GB_FloatOffsets &foffsets)
void addScaleData (const GB_AttributeData &from, const GB_FloatOffsets &foffsets, fpreal scale)
void interpolateData (const GB_AttributeData &a, const GB_AttributeData &b, const GB_FloatOffsets &offsets, fpreal t)
int operator== (const GB_AttributeData &d) const
void steal (GB_AttributeData &v)
bool hasData () const
GB_AttributeDataoperator= (const GB_AttributeData &)
Get/Set Accessors For Individual Attributes
These template methods can only be instantiated with the following types: fpreal32, fpreal64, int32, int64, UT_Vector[34], UT_Matrix[34]

Warning:
These methods assume that the data type for the given attribute matches the data requested. It is not safe to call a version not matching that data type. The sole exceptions are fpreal64 and int64, where the underlying data must be of type fpreal32 and int32, respectively.


template<typename T >
const T * getPointer (const GB_AttributeRef &h, T *buffer, int cnt) const
template<typename T >
const T * getPointer (const GB_AttributeRef &h, GB_AttributeBuffer &buffer, int cnt) const
template<typename T >
getValue (const GB_AttributeRef &handle, int index=0) const
template<typename T >
void get (const GB_AttributeRef &handle, T &val, int index=0) const
template<typename T >
void set (const GB_AttributeRef &handle, const T &val, int index=0)
template<typename T >
void get (const GB_AttributeRef &handle, T *val, int count) const
template<typename T >
void set (const GB_AttributeRef &handle, const T *val, int count)


Detailed Description

Definition at line 37 of file GB_AttributeData.h.


Constructor & Destructor Documentation

GB_AttributeData::GB_AttributeData (  ) 

GB_AttributeData::~GB_AttributeData (  ) 


Member Function Documentation

void GB_AttributeData::addData ( const GB_AttributeData from,
const GB_FloatOffsets foffsets 
)

void GB_AttributeData::addf ( fpreal  val,
const GB_FloatOffsets foffsets 
)

void GB_AttributeData::addScaleData ( const GB_AttributeData from,
const GB_FloatOffsets foffsets,
fpreal  scale 
)

template<typename T >
const T* GB_AttributeData::castAttribData ( const GB_AttributeRef n  )  const [inline]

Definition at line 53 of file GB_AttributeData.h.

template<typename T >
T* GB_AttributeData::castAttribData ( const GB_AttributeRef n  )  [inline]

Definition at line 50 of file GB_AttributeData.h.

void GB_AttributeData::changeSize ( int  s  )  [inline]

Definition at line 57 of file GB_AttributeData.h.

bool GB_AttributeData::compareData ( const GB_AttributeData cmp,
const GB_Attribute table,
fpreal  tol = FP32_TOLERANCE 
) const

void GB_AttributeData::deleteData (  )  [inline]

Definition at line 58 of file GB_AttributeData.h.

void GB_AttributeData::divf ( fpreal  val,
const GB_FloatOffsets foffsets 
)

template<typename T >
void GB_AttributeData::get ( const GB_AttributeRef handle,
T *  val,
int  count 
) const [inline]

These template methods can only be instantiated with the following types: fpreal32, fpreal64, int32, int64, UT_Vector[34], UT_Matrix[34]

Warning:
These methods assume that the data type for the given attribute matches the data requested. It is not safe to call a version not matching that data type. The sole exceptions are fpreal64 and int64, where the underlying data must be of type fpreal32 and int32, respectively.

Definition at line 330 of file GB_AttributeData.h.

template<typename T >
void GB_AttributeData::get ( const GB_AttributeRef handle,
T &  val,
int  index = 0 
) const [inline]

These template methods can only be instantiated with the following types: fpreal32, fpreal64, int32, int64, UT_Vector[34], UT_Matrix[34]

Warning:
These methods assume that the data type for the given attribute matches the data requested. It is not safe to call a version not matching that data type. The sole exceptions are fpreal64 and int64, where the underlying data must be of type fpreal32 and int32, respectively.

Definition at line 324 of file GB_AttributeData.h.

void SYS_DEPRECATED* GB_AttributeData::getData (  )  const [inline]

Definition at line 47 of file GB_AttributeData.h.

void SYS_DEPRECATED* GB_AttributeData::getData ( int  n  )  const [inline]

Definition at line 46 of file GB_AttributeData.h.

template<typename T >
const T* GB_AttributeData::getPointer ( const GB_AttributeRef h,
GB_AttributeBuffer buffer,
int  cnt 
) const [inline]

These template methods can only be instantiated with the following types: fpreal32, fpreal64, int32, int64, UT_Vector[34], UT_Matrix[34]

Warning:
These methods assume that the data type for the given attribute matches the data requested. It is not safe to call a version not matching that data type. The sole exceptions are fpreal64 and int64, where the underlying data must be of type fpreal32 and int32, respectively.

Definition at line 315 of file GB_AttributeData.h.

template<typename T >
const T* GB_AttributeData::getPointer ( const GB_AttributeRef h,
T *  buffer,
int  cnt 
) const [inline]

These template methods can only be instantiated with the following types: fpreal32, fpreal64, int32, int64, UT_Vector[34], UT_Matrix[34]

Warning:
These methods assume that the data type for the given attribute matches the data requested. It is not safe to call a version not matching that data type. The sole exceptions are fpreal64 and int64, where the underlying data must be of type fpreal32 and int32, respectively.

Definition at line 311 of file GB_AttributeData.h.

template<typename T >
T GB_AttributeData::getValue ( const GB_AttributeRef handle,
int  index = 0 
) const [inline]

These template methods can only be instantiated with the following types: fpreal32, fpreal64, int32, int64, UT_Vector[34], UT_Matrix[34]

Warning:
These methods assume that the data type for the given attribute matches the data requested. It is not safe to call a version not matching that data type. The sole exceptions are fpreal64 and int64, where the underlying data must be of type fpreal32 and int32, respectively.

Definition at line 320 of file GB_AttributeData.h.

bool GB_AttributeData::hasData (  )  const [inline]

Definition at line 140 of file GB_AttributeData.h.

void GB_AttributeData::interpolateData ( const GB_AttributeData a,
const GB_AttributeData b,
const GB_FloatOffsets offsets,
fpreal  t 
)

void GB_AttributeData::mulf ( fpreal  val,
const GB_FloatOffsets foffsets 
)

void GB_AttributeData::mulv ( const UT_Matrix3 val,
const GB_VectorOffsets foffsets,
int  keepLength = 1 
)

GB_AttributeData& GB_AttributeData::operator= ( const GB_AttributeData  )  [inline]

Definition at line 142 of file GB_AttributeData.h.

int GB_AttributeData::operator== ( const GB_AttributeData d  )  const [inline]

Definition at line 129 of file GB_AttributeData.h.

void SYS_DEPRECATED* GB_AttributeData::operator[] ( unsigned  n  )  const [inline]

Definition at line 61 of file GB_AttributeData.h.

void SYS_DEPRECATED* GB_AttributeData::operator[] ( unsigned  n  )  [inline]

Definition at line 60 of file GB_AttributeData.h.

void GB_AttributeData::scaleData ( const GB_Attribute table,
fpreal  s 
)

Deprecated:

template<typename T >
void GB_AttributeData::set ( const GB_AttributeRef handle,
const T *  val,
int  count 
) [inline]

These template methods can only be instantiated with the following types: fpreal32, fpreal64, int32, int64, UT_Vector[34], UT_Matrix[34]

Warning:
These methods assume that the data type for the given attribute matches the data requested. It is not safe to call a version not matching that data type. The sole exceptions are fpreal64 and int64, where the underlying data must be of type fpreal32 and int32, respectively.

Definition at line 333 of file GB_AttributeData.h.

template<typename T >
void GB_AttributeData::set ( const GB_AttributeRef handle,
const T &  val,
int  index = 0 
) [inline]

These template methods can only be instantiated with the following types: fpreal32, fpreal64, int32, int64, UT_Vector[34], UT_Matrix[34]

Warning:
These methods assume that the data type for the given attribute matches the data requested. It is not safe to call a version not matching that data type. The sole exceptions are fpreal64 and int64, where the underlying data must be of type fpreal32 and int32, respectively.

Definition at line 327 of file GB_AttributeData.h.

void GB_AttributeData::setData ( const GB_AttributeData from,
const GB_FloatOffsets foffsets 
)

void GB_AttributeData::setData ( const GB_AttributeData from,
int  s 
) [inline]

Deprecated:

Definition at line 81 of file GB_AttributeData.h.

void GB_AttributeData::setf ( fpreal  val,
const GB_FloatOffsets foffsets 
)

void GB_AttributeData::steal ( GB_AttributeData v  )  [inline]

Definition at line 134 of file GB_AttributeData.h.

void GB_AttributeData::subf ( fpreal  val,
const GB_FloatOffsets foffsets 
)

void GB_AttributeData::sumData ( const GB_AttributeData from,
const GB_Attribute table 
)

Deprecated:

void GB_AttributeData::sumData ( const GB_AttributeData from,
const GB_Attribute table,
fpreal  scale 
)

Deprecated:

void GB_AttributeData::swapData ( GB_AttributeData d  )  [inline]

Definition at line 86 of file GB_AttributeData.h.


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

Generated on Mon Jan 28 00:28:39 2013 for HDK by  doxygen 1.5.9