HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GEO_AttributeHandle Class Reference

#include <GEO_AttributeHandle.h>

Public Member Functions

 GEO_AttributeHandle ()
 
 GEO_AttributeHandle (const GEO_AttributeHandle &gah)
 
 GEO_AttributeHandle (const GA_Attribute *attrib)
 
 GEO_AttributeHandle (GA_Attribute *attrib)
 
 GEO_AttributeHandle (const GA_ROAttributeRef &ref)
 
 GEO_AttributeHandle (const GA_RWAttributeRef &ref)
 
GEO_AttributeHandleclone () const
 
const char * getName () const
 
 ~GEO_AttributeHandle ()
 
const GA_AttributegetAttribute () const
 
const GA_AttributegetSourceAttribute () const
 
GEO_AttributeHandleoperator= (const GEO_AttributeHandle &gah)
 
void invalidate ()
 
bool isAttributeValid () const
 
bool isSourceAttributeValid () const
 
void clearElement ()
 
bool upgradeToReadWrite (GA_AttributeSet &set)
 
bool downgradeToReadOnly ()
 
bool isFloatOrVectorAttribute () const
 
bool getDefinedStrings (UT_StringArray &list, bool harden=true) const
 
const char * getDefinedString (int idx) const
 
const char * getSharedString (int index) const
 
void clearSourceMap ()
 
void setSourceMap (GA_AttributeOwner owner, const GA_ROAttributeRef &src)
 
void setSourceMap (const GA_AttributeDict &dict, GA_AttributeOwner owner)
 
void setSourceMap (const GEO_AttributeHandle &h)
 
void setElement (GEO_Vertex *v)
 
void setElement (GEO_Primitive *prim)
 
void setElement (GEO_Detail *gdp)
 
void setElement (const GEO_Vertex *v)
 
void setElement (const GEO_Primitive *prim)
 
void setElement (const GEO_Detail *gdp)
 
void setElement (GEO_Primitive *p, GEO_Vertex *v)
 
void setElement (const GEO_Primitive *p, const GEO_Vertex *v)
 
void setElement (GEO_Primitive *p, const GEO_Vertex &v)
 
void setElement (const GEO_Primitive *p, const GEO_Vertex &v)
 
void setElement (GA_AttributeOwner owner, GA_Offset offset)
 
void setPoint (GA_Offset offset)
 
void setVertex (GA_Offset offset)
 
void setPrimitive (GA_Offset offset)
 
void setGlobal ()
 
GA_AttributeOwner getDictionary () const
 
bool isP () const
 
GA_AttributeOwner getSourceDictionary () const
 
int entries () const
 
int tupleSize () const
 
int getFloatCount (bool includePw) const
 
void setF (fpreal val, int index=0)
 Generic Data Accessors. More...
 
fpreal getF (int index=0) const
 
void setI (int val, int index=0)
 
int getI (int index=0) const
 
void setV2 (const UT_Vector2 &val, int index=0)
 
UT_Vector2 getV2 (int index=0) const
 
void setV3 (const UT_Vector3 &val, int index=0)
 
UT_Vector3 getV3 (int index=0) const
 
void setV4 (const UT_Vector4 &val, int index=0)
 
UT_Vector4 getV4 (int index=0) const
 
void setM2 (const UT_Matrix2 &val, int index=0)
 
UT_Matrix2 getM2 (int index=0) const
 
void setM3 (const UT_Matrix3 &val, int index=0)
 
UT_Matrix3 getM3 (int index=0) const
 
void setM4 (const UT_Matrix4 &val, int index=0)
 
UT_Matrix4 getM4 (int index=0) const
 
void setQ (const UT_Quaternion &val, int index=0)
 
UT_Quaternion getQ (int index=0) const
 
bool importVector (fpreal32 *val, int size) const
 
bool importVector (fpreal64 *val, int size) const
 
bool importVector (int32 *val, int size) const
 
bool importVector (int64 *val, int size) const
 
bool import (fpreal32 &val) const
 
bool import (fpreal64 &val) const
 
bool import (int32 &val) const
 
bool import (int64 &val) const
 
bool import (UT_Vector2 &v)
 
bool import (UT_Vector3 &v)
 
bool import (UT_Vector4 &v)
 
bool import (UT_Matrix2 &v)
 
bool import (UT_Matrix3 &v)
 
bool import (UT_Matrix4 &v)
 
void setP4 (const UT_Vector4 &val, int index=0)
 p4 will return a 4th component of 1 if it does not exist More...
 
UT_Vector4 getP4 (int index=0) const
 
bool setString (const UT_String &str, int index=0)
 
bool getString (UT_String &str, int index=0, bool harden=true) const
 
void multiply (fpreal w)
 
void setValue (fpreal val)
 
void addScale (const GEO_AttributeHandle &gah, fpreal w)
 Performs: this = this + gah * w. More...
 
void multiply (const GEO_AttributeHandle &gah)
 Performs: this = this * gah. More...
 
void lerp (const GEO_AttributeHandle &gah, fpreal w)
 Performs the operation this = this*(1-w) + gah*w. More...
 
void copyDataFrom (const GEO_AttributeHandle &src)
 Copies the data from the src attribute to this attribute. More...
 
void addScale (const GEO_Primitive *p, const GEO_Vertex *v, fpreal s)
 
void lerp (const GEO_Primitive *p, const GEO_Vertex *v, fpreal w)
 
void lerp (const GEO_Primitive *p0, const GEO_Vertex *v0, const GEO_Primitive *p1, const GEO_Vertex *v1, fpreal w)
 
void multiply (const GEO_Primitive *p, const GEO_Vertex *v)
 
void copyDataFrom (const GEO_Primitive *p, const GEO_Vertex *v)
 
void addScale (const GEO_Point *elem, fpreal w)
 
void lerp (const GEO_Point *elem, fpreal w)
 
void lerp (const GEO_Point *p0, const GEO_Point *p1, fpreal w)
 
void multiply (const GEO_Point *elem)
 
void copyDataFrom (const GEO_Point *elem)
 
void addScale (const GEO_Primitive *p, const GEO_Vertex &v, fpreal s)
 
void lerp (const GEO_Primitive *p, const GEO_Vertex &v, fpreal w)
 
void lerp (const GEO_Primitive *p0, const GEO_Vertex &v0, const GEO_Primitive *p1, const GEO_Vertex &v1, fpreal w)
 
void multiply (const GEO_Primitive *p, const GEO_Vertex &v)
 
void copyDataFrom (const GEO_Primitive *p, const GEO_Vertex &v)
 
void addScale (const GEO_Vertex *elem, fpreal w)
 
void lerp (const GEO_Vertex *elem, fpreal w)
 
void lerp (const GEO_Vertex *p0, const GEO_Vertex *p1, fpreal w)
 
void multiply (const GEO_Vertex *elem)
 
void copyDataFrom (const GEO_Vertex *elem)
 
void addScale (const GEO_Vertex &elem, fpreal w)
 
void lerp (const GEO_Vertex &elem, fpreal w)
 
void lerp (const GEO_Vertex &p0, const GEO_Vertex &p1, fpreal w)
 
void multiply (const GEO_Vertex &elem)
 
void copyDataFrom (const GEO_Vertex &elem)
 
void addScale (const GEO_Primitive *elem, fpreal w)
 
void lerp (const GEO_Primitive *elem, fpreal w)
 
void lerp (const GEO_Primitive *p0, const GEO_Primitive *p1, fpreal w)
 
void multiply (const GEO_Primitive *elem)
 
void copyDataFrom (const GEO_Primitive *elem)
 
void addScale (const GEO_Detail *elem, fpreal w)
 
void lerp (const GEO_Detail *elem, fpreal w)
 
void multiply (const GEO_Detail *elem)
 
void copyDataFrom (const GEO_Detail *elem)
 
bool match (const GA_AttributeFilter &filter) const
 
void dump (const char *msg="") const
 
bool isIndexAttribute () const
 
bool isSharedStringAttribute () const
 
void addScaleDest (const GEO_Primitive *p, const GEO_Vertex *v, fpreal s)
 
void addScaleDest (const GEO_Primitive *p, const GEO_Vertex &v, fpreal s)
 
void addScaleDest (const GEO_Point *elem, fpreal w)
 
void addScaleDest (const GEO_Vertex *elem, fpreal w)
 
void addScaleDest (const GEO_Vertex &elem, fpreal w)
 
void addScaleDest (const GEO_Primitive *elem, fpreal w)
 
void addScaleDest (const GEO_Detail *elem, fpreal w)
 
void lerpDest (const GEO_Primitive *p, const GEO_Vertex *v, fpreal w)
 
void lerpDest (const GEO_Primitive *p, const GEO_Vertex &v, fpreal w)
 
void lerpDest (const GEO_Point *elem, fpreal w)
 
void lerpDest (const GEO_Vertex *elem, fpreal w)
 
void lerpDest (const GEO_Vertex &elem, fpreal w)
 
void lerpDest (const GEO_Primitive *elem, fpreal w)
 
void lerpDest (const GEO_Primitive *p0, const GEO_Vertex *v0, const GEO_Primitive *p1, const GEO_Vertex *v1, fpreal w)
 
void lerpDest (const GEO_Primitive *p0, const GEO_Vertex &v0, const GEO_Primitive *p1, const GEO_Vertex &v1, fpreal w)
 
void lerpDest (const GEO_Point *p0, const GEO_Point *p1, fpreal w)
 
void lerpDest (const GEO_Vertex *p0, const GEO_Vertex *p1, fpreal w)
 
void lerpDest (const GEO_Vertex &p0, const GEO_Vertex &p1, fpreal w)
 
void lerpDest (const GEO_Primitive *p0, const GEO_Primitive *p1, fpreal w)
 
void multiplyDest (const GEO_Primitive *p, const GEO_Vertex *v)
 
void multiplyDest (const GEO_Primitive *p, const GEO_Vertex &v)
 
void multiplyDest (const GEO_Point *elem)
 
void multiplyDest (const GEO_Vertex *elem)
 
void multiplyDest (const GEO_Vertex &elem)
 
void multiplyDest (const GEO_Primitive *elem)
 
void multiplyDest (const GEO_Detail *elem)
 
void copyDestData (const GEO_Primitive *p, const GEO_Vertex *v)
 
void copyDestData (const GEO_Primitive *p, const GEO_Vertex &v)
 
void copyDestData (const GEO_Point *elem)
 
void copyDestData (const GEO_Vertex *elem)
 
void copyDestData (const GEO_Vertex &elem)
 
void copyDestData (const GEO_Primitive *elem)
 

Protected Member Functions

bool isValid () const
 
bool isSourceValid () const
 
void setRawElement (GA_Offset offset)
 
void addScale (const GA_GBElement *elem, GA_AttributeOwner owner, fpreal w)
 
void lerp (const GA_GBElement *elem, GA_AttributeOwner owner, fpreal w)
 
void lerpH (const GA_GBElement *elem, GA_AttributeOwner owner, fpreal w)
 
void lerp (const GA_GBElement *e0, const GA_GBElement *e1, GA_AttributeOwner owner, fpreal w)
 
void multiply (const GA_GBElement *elem, GA_AttributeOwner owner)
 
void copyDataFrom (const GA_GBElement *elem, GA_AttributeOwner owner)
 
void addScaleRaw (GA_Offset elem, GA_AttributeOwner owner, fpreal w)
 
void lerpRaw (GA_Offset elem, GA_AttributeOwner owner, fpreal w)
 
void lerpHRaw (GA_Offset elem, GA_AttributeOwner owner, fpreal w)
 
void lerpRaw (GA_Offset e0, GA_Offset e1, GA_AttributeOwner owner, fpreal w)
 
void multiplyRaw (GA_Offset elem, GA_AttributeOwner owner)
 
void copyDataFromRaw (GA_Offset elem, GA_AttributeOwner owner)
 
void addScaleDest (const GA_GBElement *elem, GA_AttributeOwner owner, fpreal w)
 
void lerpDest (const GA_GBElement *elem, GA_AttributeOwner owner, fpreal w)
 
void lerpDest (const GA_GBElement *e0, const GA_GBElement *e1, GA_AttributeOwner owner, fpreal w)
 
void multiplyDest (const GA_GBElement *elem, GA_AttributeOwner owner)
 
void copyDestData (const GA_GBElement *elem, GA_AttributeOwner owner)
 
void addScaleDestRaw (GA_Offset elem, GA_AttributeOwner owner, fpreal w)
 
void lerpDestRaw (GA_Offset elem, GA_AttributeOwner owner, fpreal w)
 
void lerpDestRaw (GA_Offset e0, GA_Offset e1, GA_AttributeOwner owner, fpreal w)
 
void multiplyDestRaw (GA_Offset elem, GA_AttributeOwner owner)
 
void copyDestDataRaw (GA_Offset elem, GA_AttributeOwner owner)
 

Detailed Description

Examples:
standalone/geo2voxel.C.

Definition at line 39 of file GEO_AttributeHandle.h.

Constructor & Destructor Documentation

GEO_AttributeHandle::GEO_AttributeHandle ( )
GEO_AttributeHandle::GEO_AttributeHandle ( const GEO_AttributeHandle gah)
GEO_AttributeHandle::GEO_AttributeHandle ( const GA_Attribute attrib)
GEO_AttributeHandle::GEO_AttributeHandle ( GA_Attribute attrib)
GEO_AttributeHandle::GEO_AttributeHandle ( const GA_ROAttributeRef ref)
GEO_AttributeHandle::GEO_AttributeHandle ( const GA_RWAttributeRef ref)
GEO_AttributeHandle::~GEO_AttributeHandle ( )

Member Function Documentation

void GEO_AttributeHandle::addScale ( const GEO_AttributeHandle gah,
fpreal  w 
)

Performs: this = this + gah * w.

void GEO_AttributeHandle::addScale ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal  s 
)
void GEO_AttributeHandle::addScale ( const GEO_Point elem,
fpreal  w 
)
inline

Definition at line 361 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScale ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal  s 
)
void GEO_AttributeHandle::addScale ( const GEO_Vertex elem,
fpreal  w 
)
inline

Definition at line 390 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScale ( const GEO_Vertex elem,
fpreal  w 
)
inline

Definition at line 406 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScale ( const GEO_Primitive elem,
fpreal  w 
)
inline

Definition at line 422 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScale ( const GEO_Detail elem,
fpreal  w 
)
inline

Definition at line 442 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScale ( const GA_GBElement elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::addScaleDest ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal  s 
)
void GEO_AttributeHandle::addScaleDest ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal  s 
)
void GEO_AttributeHandle::addScaleDest ( const GEO_Point elem,
fpreal  w 
)
inline

Definition at line 485 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScaleDest ( const GEO_Vertex elem,
fpreal  w 
)
inline

Definition at line 488 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScaleDest ( const GEO_Vertex elem,
fpreal  w 
)
inline

Definition at line 491 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScaleDest ( const GEO_Primitive elem,
fpreal  w 
)
inline

Definition at line 494 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScaleDest ( const GEO_Detail elem,
fpreal  w 
)
inline

Definition at line 497 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScaleDest ( const GA_GBElement elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::addScaleDestRaw ( GA_Offset  elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::addScaleRaw ( GA_Offset  elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::clearElement ( )
inline

Definition at line 79 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::clearSourceMap ( )
inline

The myOffset refers to elements which are bound to the handle (i.e through setElementRaw(). When copying data from other details, the attribute data doesn't always come from the same location (or even the same element). The source offset is used to define the offset from the source detail (i.e. the detail not bound to this handle). By default, myOffset == mySourceOffset

Definition at line 126 of file GEO_AttributeHandle.h.

GEO_AttributeHandle* GEO_AttributeHandle::clone ( ) const
void GEO_AttributeHandle::copyDataFrom ( const GEO_AttributeHandle src)

Copies the data from the src attribute to this attribute.

void GEO_AttributeHandle::copyDataFrom ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::copyDataFrom ( const GEO_Point elem)
inline

Definition at line 373 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataFrom ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::copyDataFrom ( const GEO_Vertex elem)
inline

Definition at line 402 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataFrom ( const GEO_Vertex elem)
inline

Definition at line 418 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataFrom ( const GEO_Primitive elem)
inline

Definition at line 438 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataFrom ( const GEO_Detail elem)
inline

Definition at line 461 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataFrom ( const GA_GBElement elem,
GA_AttributeOwner  owner 
)
protected
void GEO_AttributeHandle::copyDataFromRaw ( GA_Offset  elem,
GA_AttributeOwner  owner 
)
protected
void GEO_AttributeHandle::copyDestData ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::copyDestData ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::copyDestData ( const GEO_Point elem)
inline

Definition at line 566 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDestData ( const GEO_Vertex elem)
inline

Definition at line 569 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDestData ( const GEO_Vertex elem)
inline

Definition at line 572 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDestData ( const GEO_Primitive elem)
inline

Definition at line 575 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDestData ( const GA_GBElement elem,
GA_AttributeOwner  owner 
)
protected
void GEO_AttributeHandle::copyDestDataRaw ( GA_Offset  elem,
GA_AttributeOwner  owner 
)
protected
bool GEO_AttributeHandle::downgradeToReadOnly ( )
void GEO_AttributeHandle::dump ( const char *  msg = "") const
int GEO_AttributeHandle::entries ( ) const
inline

Definition at line 208 of file GEO_AttributeHandle.h.

const GA_Attribute* GEO_AttributeHandle::getAttribute ( ) const
const char* GEO_AttributeHandle::getDefinedString ( int  idx) const
inline

Return the string assocated with the given index. This is only valid for shared string attributes.

Definition at line 114 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::getDefinedStrings ( UT_StringArray list,
bool  harden = true 
) const

Returns true if the attribute handle has strings defined. It's possible that the array contains 0 strings.

GA_AttributeOwner GEO_AttributeHandle::getDictionary ( ) const
inline

Definition at line 201 of file GEO_AttributeHandle.h.

fpreal GEO_AttributeHandle::getF ( int  index = 0) const
int GEO_AttributeHandle::getFloatCount ( bool  includePw) const
inline

Definition at line 213 of file GEO_AttributeHandle.h.

int GEO_AttributeHandle::getI ( int  index = 0) const
UT_Matrix2 GEO_AttributeHandle::getM2 ( int  index = 0) const
UT_Matrix3 GEO_AttributeHandle::getM3 ( int  index = 0) const
UT_Matrix4 GEO_AttributeHandle::getM4 ( int  index = 0) const
const char* GEO_AttributeHandle::getName ( ) const
UT_Vector4 GEO_AttributeHandle::getP4 ( int  index = 0) const
UT_Quaternion GEO_AttributeHandle::getQ ( int  index = 0) const
const char* GEO_AttributeHandle::getSharedString ( int  index) const
const GA_Attribute* GEO_AttributeHandle::getSourceAttribute ( ) const
GA_AttributeOwner GEO_AttributeHandle::getSourceDictionary ( ) const
inline

Definition at line 205 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::getString ( UT_String str,
int  index = 0,
bool  harden = true 
) const
UT_Vector2 GEO_AttributeHandle::getV2 ( int  index = 0) const
UT_Vector3 GEO_AttributeHandle::getV3 ( int  index = 0) const
UT_Vector4 GEO_AttributeHandle::getV4 ( int  index = 0) const
bool GEO_AttributeHandle::import ( fpreal32 val) const
inline

Definition at line 276 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( fpreal64 val) const
inline

Definition at line 279 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( int32 val) const
inline

Definition at line 282 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( int64 val) const
inline

Definition at line 285 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( UT_Vector2 v)
inline

Definition at line 288 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( UT_Vector3 v)
inline

Definition at line 291 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( UT_Vector4 v)
inline

Definition at line 294 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( UT_Matrix2 v)
inline

Definition at line 297 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( UT_Matrix3 v)
inline

Definition at line 300 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::import ( UT_Matrix4 v)
inline

Definition at line 303 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::importVector ( fpreal32 val,
int  size 
) const
bool GEO_AttributeHandle::importVector ( fpreal64 val,
int  size 
) const
bool GEO_AttributeHandle::importVector ( int32 val,
int  size 
) const
bool GEO_AttributeHandle::importVector ( int64 val,
int  size 
) const
void GEO_AttributeHandle::invalidate ( )
bool GEO_AttributeHandle::isAttributeValid ( ) const
bool GEO_AttributeHandle::isFloatOrVectorAttribute ( ) const

Returns true if our attribute handle is bound to a valid attribute of a floating point tuple type.

bool GEO_AttributeHandle::isIndexAttribute ( ) const
inline

Test to see whether the attribute is a string attribute. This tests to see whether the attribute has an shared string tuple interface (

See Also
GA_AIFSharedStringTuple). Please use isSharedStringAttribute() rather than isIndexAttribute()

Definition at line 95 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::isP ( ) const
inline

Definition at line 203 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::isSharedStringAttribute ( ) const

Test to see whether the attribute is a string attribute. This tests to see whether the attribute has an shared string tuple interface (

See Also
GA_AIFSharedStringTuple). Please use isSharedStringAttribute() rather than isIndexAttribute()
bool GEO_AttributeHandle::isSourceAttributeValid ( ) const
bool GEO_AttributeHandle::isSourceValid ( ) const
inlineprotected

Definition at line 589 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::isValid ( ) const
inlineprotected

Definition at line 587 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_AttributeHandle gah,
fpreal  w 
)

Performs the operation this = this*(1-w) + gah*w.

void GEO_AttributeHandle::lerp ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal  w 
)
void GEO_AttributeHandle::lerp ( const GEO_Primitive p0,
const GEO_Vertex v0,
const GEO_Primitive p1,
const GEO_Vertex v1,
fpreal  w 
)
void GEO_AttributeHandle::lerp ( const GEO_Point elem,
fpreal  w 
)
inline

Definition at line 364 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Point p0,
const GEO_Point p1,
fpreal  w 
)
inline

Definition at line 367 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal  w 
)
void GEO_AttributeHandle::lerp ( const GEO_Primitive p0,
const GEO_Vertex v0,
const GEO_Primitive p1,
const GEO_Vertex v1,
fpreal  w 
)
void GEO_AttributeHandle::lerp ( const GEO_Vertex elem,
fpreal  w 
)
inline

Definition at line 393 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Vertex p0,
const GEO_Vertex p1,
fpreal  w 
)
inline

Definition at line 396 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Vertex elem,
fpreal  w 
)
inline

Definition at line 409 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Vertex p0,
const GEO_Vertex p1,
fpreal  w 
)
inline

Definition at line 412 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Primitive elem,
fpreal  w 
)
inline

Definition at line 425 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Primitive p0,
const GEO_Primitive p1,
fpreal  w 
)
inline

Definition at line 428 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Detail elem,
fpreal  w 
)
inline

Definition at line 448 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GA_GBElement elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerp ( const GA_GBElement e0,
const GA_GBElement e1,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerpDest ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal  w 
)
void GEO_AttributeHandle::lerpDest ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal  w 
)
void GEO_AttributeHandle::lerpDest ( const GEO_Point elem,
fpreal  w 
)
inline

Definition at line 506 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerpDest ( const GEO_Vertex elem,
fpreal  w 
)
inline

Definition at line 509 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerpDest ( const GEO_Vertex elem,
fpreal  w 
)
inline

Definition at line 512 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerpDest ( const GEO_Primitive elem,
fpreal  w 
)
inline

Definition at line 515 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerpDest ( const GEO_Primitive p0,
const GEO_Vertex v0,
const GEO_Primitive p1,
const GEO_Vertex v1,
fpreal  w 
)
void GEO_AttributeHandle::lerpDest ( const GEO_Primitive p0,
const GEO_Vertex v0,
const GEO_Primitive p1,
const GEO_Vertex v1,
fpreal  w 
)
void GEO_AttributeHandle::lerpDest ( const GEO_Point p0,
const GEO_Point p1,
fpreal  w 
)
inline

Definition at line 527 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerpDest ( const GEO_Vertex p0,
const GEO_Vertex p1,
fpreal  w 
)
inline

Definition at line 530 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerpDest ( const GEO_Vertex p0,
const GEO_Vertex p1,
fpreal  w 
)
inline

Definition at line 533 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerpDest ( const GEO_Primitive p0,
const GEO_Primitive p1,
fpreal  w 
)
inline

Definition at line 536 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerpDest ( const GA_GBElement elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerpDest ( const GA_GBElement e0,
const GA_GBElement e1,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerpDestRaw ( GA_Offset  elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerpDestRaw ( GA_Offset  e0,
GA_Offset  e1,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerpH ( const GA_GBElement elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerpHRaw ( GA_Offset  elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerpRaw ( GA_Offset  elem,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
void GEO_AttributeHandle::lerpRaw ( GA_Offset  e0,
GA_Offset  e1,
GA_AttributeOwner  owner,
fpreal  w 
)
protected
bool GEO_AttributeHandle::match ( const GA_AttributeFilter filter) const
void GEO_AttributeHandle::multiply ( fpreal  w)
void GEO_AttributeHandle::multiply ( const GEO_AttributeHandle gah)

Performs: this = this * gah.

void GEO_AttributeHandle::multiply ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::multiply ( const GEO_Point elem)
inline

Definition at line 370 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiply ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::multiply ( const GEO_Vertex elem)
inline

Definition at line 399 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiply ( const GEO_Vertex elem)
inline

Definition at line 415 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiply ( const GEO_Primitive elem)
inline

Definition at line 435 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiply ( const GEO_Detail elem)
inline

Definition at line 455 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiply ( const GA_GBElement elem,
GA_AttributeOwner  owner 
)
protected
void GEO_AttributeHandle::multiplyDest ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::multiplyDest ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::multiplyDest ( const GEO_Point elem)
inline

Definition at line 545 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiplyDest ( const GEO_Vertex elem)
inline

Definition at line 548 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiplyDest ( const GEO_Vertex elem)
inline

Definition at line 551 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiplyDest ( const GEO_Primitive elem)
inline

Definition at line 554 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiplyDest ( const GEO_Detail elem)
inline

Definition at line 557 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiplyDest ( const GA_GBElement elem,
GA_AttributeOwner  owner 
)
protected
void GEO_AttributeHandle::multiplyDestRaw ( GA_Offset  elem,
GA_AttributeOwner  owner 
)
protected
void GEO_AttributeHandle::multiplyRaw ( GA_Offset  elem,
GA_AttributeOwner  owner 
)
protected
GEO_AttributeHandle& GEO_AttributeHandle::operator= ( const GEO_AttributeHandle gah)
void GEO_AttributeHandle::setElement ( GEO_Vertex v)
inline

Attribute data is now stored externally to the element, so we can no longer use the constness of the element argument to determine whether we can write to the attribute.

Definition at line 144 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::setElement ( GEO_Primitive prim)
inline

Definition at line 147 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::setElement ( GEO_Detail gdp)
inline

Definition at line 150 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::setElement ( const GEO_Vertex v)
inline

Definition at line 154 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::setElement ( const GEO_Primitive prim)
inline

Definition at line 159 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::setElement ( const GEO_Detail gdp)
inline

Definition at line 168 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::setElement ( GEO_Primitive p,
GEO_Vertex v 
)
inline

Definition at line 177 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::setElement ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::setElement ( GEO_Primitive p,
const GEO_Vertex v 
)
inline

Definition at line 183 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::setElement ( const GEO_Primitive p,
const GEO_Vertex v 
)
void GEO_AttributeHandle::setElement ( GA_AttributeOwner  owner,
GA_Offset  offset 
)
void GEO_AttributeHandle::setF ( fpreal  val,
int  index = 0 
)

Generic Data Accessors.

void GEO_AttributeHandle::setGlobal ( )
void GEO_AttributeHandle::setI ( int  val,
int  index = 0 
)
void GEO_AttributeHandle::setM2 ( const UT_Matrix2 val,
int  index = 0 
)
void GEO_AttributeHandle::setM3 ( const UT_Matrix3 val,
int  index = 0 
)
void GEO_AttributeHandle::setM4 ( const UT_Matrix4 val,
int  index = 0 
)
void GEO_AttributeHandle::setP4 ( const UT_Vector4 val,
int  index = 0 
)

p4 will return a 4th component of 1 if it does not exist

void GEO_AttributeHandle::setPoint ( GA_Offset  offset)
void GEO_AttributeHandle::setPrimitive ( GA_Offset  offset)
void GEO_AttributeHandle::setQ ( const UT_Quaternion val,
int  index = 0 
)
void GEO_AttributeHandle::setRawElement ( GA_Offset  offset)
protected
void GEO_AttributeHandle::setSourceMap ( GA_AttributeOwner  owner,
const GA_ROAttributeRef src 
)
void GEO_AttributeHandle::setSourceMap ( const GA_AttributeDict dict,
GA_AttributeOwner  owner 
)
void GEO_AttributeHandle::setSourceMap ( const GEO_AttributeHandle h)
bool GEO_AttributeHandle::setString ( const UT_String str,
int  index = 0 
)
void GEO_AttributeHandle::setV2 ( const UT_Vector2 val,
int  index = 0 
)
void GEO_AttributeHandle::setV3 ( const UT_Vector3 val,
int  index = 0 
)
void GEO_AttributeHandle::setV4 ( const UT_Vector4 val,
int  index = 0 
)
void GEO_AttributeHandle::setValue ( fpreal  val)
void GEO_AttributeHandle::setVertex ( GA_Offset  offset)
int GEO_AttributeHandle::tupleSize ( ) const
bool GEO_AttributeHandle::upgradeToReadWrite ( GA_AttributeSet set)

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