GB_AttributeElem Class Reference

#include <GB_AttributeElem.h>

Inheritance diagram for GB_AttributeElem:

GEO_Point GEO_Primitive GEO_Vertex GEO_Hull GEO_PrimParticle GEO_PrimPasteDAG GEO_PrimTriBezier GEO_PrimVolume GEO_Quadric GEO_TriMesh GEO_ParticleVertex

List of all members.

Public Member Functions

void copyAttribData (const GB_AttributeElem *src, int sz)
void copyAttribData (const GB_AttributeElem *src, const GB_AttributeDict &src_dict, const GB_AttributeDict &dest_dict)
template<typename T >
T * castAttribData (int n)
template<typename T >
const T * castAttribData (int n) const
void SYS_DEPRECATED * getAttribData (int n) const
const GB_AttributeDatagetAttrib () const
GB_AttributeDatagetAttrib ()


Detailed Description

Definition at line 30 of file GB_AttributeElem.h.


Member Function Documentation

template<typename T >
const T* GB_AttributeElem::castAttribData ( int  n  )  const [inline]

Definition at line 54 of file GB_AttributeElem.h.

template<typename T >
T* GB_AttributeElem::castAttribData ( int  n  )  [inline]

Operations to work on an individual attribute. The handle is passed in and a pointer to the data is returned.

Examples:
POP/POP_LocalForce.C, POP/POP_SpotLight.C, SIM/SIM_ForceOrbit.C, SIM/SIM_SolverHair.C, SOP/SOP_BrushHairLen.C, SOP/SOP_CopRaster.C, SOP/SOP_CustomBrush.C, and SOP/SOP_SParticle.C.

Definition at line 51 of file GB_AttributeElem.h.

void GB_AttributeElem::copyAttribData ( const GB_AttributeElem src,
const GB_AttributeDict src_dict,
const GB_AttributeDict dest_dict 
)

void GB_AttributeElem::copyAttribData ( const GB_AttributeElem src,
int  sz 
) [inline]

Definition at line 33 of file GB_AttributeElem.h.

GB_AttributeData& GB_AttributeElem::getAttrib (  )  [inline]

Definition at line 72 of file GB_AttributeElem.h.

const GB_AttributeData& GB_AttributeElem::getAttrib (  )  const [inline]

Definition at line 71 of file GB_AttributeElem.h.

void SYS_DEPRECATED* GB_AttributeElem::getAttribData ( int  n  )  const [inline]

Operations defined on the entire set of attributes Some of these operations only apply to floating point data (e.g. scaleData()). These methods take two GB_Details, the srcgeo is used to find the attributes available on the source geometry. The *mygeo* parameter is used to define my attributes. getAttribData has been deprecated in favor of the template castAttribData function which preserves const-ness and eliminates the need for C-style casting of the return value.

Definition at line 66 of file GB_AttributeElem.h.


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

Generated on Thu May 24 00:09:36 2012 for HDK by  doxygen 1.5.9