GEO_AttributeHandle Class Reference

#include <GEO_AttributeHandle.h>

Inheritance diagram for GEO_AttributeHandle:

GB_AttributeHandle GB_AttributeHandleBase

List of all members.

Public Member Functions

 GEO_AttributeHandle ()
 GEO_AttributeHandle (const GEO_AttributeHandle &gah)
 GEO_AttributeHandle (const GEO_Detail *gdp, GEO_AttributeOwner owner, GB_Attribute *attrib, const GB_AttributeRef &offset, int size_in_bytes, GB_AttribType type)
 GEO_AttributeHandle (const GEO_Detail *gdp)
virtual GB_AttributeHandleclone () const
virtual const char * getName () const
virtual ~GEO_AttributeHandle ()
virtual GEO_AttributeHandleoperator= (const GEO_AttributeHandle &gah)
virtual void invalidate ()
 Invalidates the handle (gets rid of references to elements and details).
virtual bool isAttributeValid () const
virtual bool isSourceAttributeValid () const
void clearElement ()
void clearSourceMap ()
void setSourceMap (GEO_AttributeOwner dict, const GB_AttributeRef &o)
void setSourceMap (const GB_AttributeDict &dict, GEO_AttributeOwner owner)
void setSourceMap (const GEO_AttributeHandle &h)
virtual void setElement (GEO_Vertex *v)
virtual void setElement (GEO_Point *pt)
virtual void setElement (GEO_Primitive *prim)
virtual void setElement (GEO_Detail *gdp)
virtual void setElement (const GEO_Vertex *v)
virtual void setElement (const GEO_Point *pt)
virtual void setElement (const GEO_Primitive *prim)
virtual void setElement (const GEO_Detail *gdp)
virtual void setElement (GEO_Primitive *p, GEO_Vertex *v)
virtual void setElement (const GEO_Primitive *p, const GEO_Vertex *v)
GEO_AttributeOwner getDictionary () const
bool isP () const
GEO_AttributeOwner getSourceDictionary () const
int getFloatCount (bool includePw) const
void multiply (fpreal w)
 Unary arithmetic operations.
void homogenize (fpreal w)
void dehomogenize (fpreal w)
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 divide (const GEO_Primitive *p, const GEO_Vertex *v)
void copyDataFrom (const GEO_Primitive *p, const GEO_Vertex *v)
void copyDataTo (GEO_Primitive *p, GEO_Vertex *v) const
bool equalData (const GEO_Primitive *p, const GEO_Vertex *v, fpreal64 t) const
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 divide (const GEO_Point *elem)
void copyDataFrom (const GEO_Point *elem)
void copyDataTo (GEO_Point *elem) const
bool equalData (const GEO_Point *elem, fpreal64 tol) const
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 divide (const GEO_Vertex *elem)
void copyDataFrom (const GEO_Vertex *elem)
void copyDataTo (GEO_Vertex *elem) const
bool equalData (const GEO_Vertex *elem, fpreal64 tol) const
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 divide (const GEO_Primitive *elem)
void copyDataFrom (const GEO_Primitive *elem)
void copyDataTo (GEO_Primitive *elem) const
bool equalData (const GEO_Primitive *elem, fpreal64 tol) const
void addScale (const GEO_Detail *elem, fpreal w)
void lerp (const GEO_Detail *elem, fpreal w)
void lerp (const GEO_Detail *gdp0, const GEO_Detail *gdp1, fpreal w)
void multiply (const GEO_Detail *elem)
void divide (const GEO_Detail *elem)
void copyDataFrom (const GEO_Detail *elem)
void copyDataTo (GEO_Detail *elem) const
bool equalData (const GEO_Detail *elem, fpreal64 tol) const
void dump (const char *msg="") const

Protected Member Functions

virtual void setRawElement (GB_AttributeElem *elem)
virtual void setRawElement (const GB_AttributeElem *elem)
void addScaleRaw (const GB_AttributeElem *elem, fpreal w, GEO_AttributeOwner owner)
void lerpRaw (const GB_AttributeElem *elem, fpreal w, GEO_AttributeOwner owner)
void lerpRaw (const GB_AttributeElem *p0, const GB_AttributeElem *p1, fpreal w, GEO_AttributeOwner owner)
void multiplyRaw (const GB_AttributeElem *elem, GEO_AttributeOwner owner)
void divideRaw (const GB_AttributeElem *elem, GEO_AttributeOwner owner)
void copyDataFromRaw (const GB_AttributeElem *elem, GEO_AttributeOwner owner)
void copyDataToRaw (GB_AttributeElem *elem, GEO_AttributeOwner owner) const
bool equalDataRaw (const GB_AttributeElem *elem, fpreal64 tol, GEO_AttributeOwner owner) const
GEO_PointgetPoint (GB_AttributeElem *elem)
const GEO_PointgetPoint (const GB_AttributeElem *elem) const
UT_Vector4getPos (GB_AttributeElem *elem)
const UT_Vector4getPos (const GB_AttributeElem *elem) const

Protected Attributes

bool myIsPointP
GB_AttributeRef myOffset
GB_AttributeRef mySourceOffset
GEO_AttributeOwner myDictType
GEO_AttributeOwner mySourceDictType


Detailed Description

Examples:

POP/POP_CircleForce.C, POP/POP_CircleForce.h, SIM/SNOW_Solver.C, SOP/SOP_CPPWave.C, SOP/SOP_PrimVOP.C, SOP/SOP_TimeCompare.C, standalone/geo2voxel.C, and VRAY/VRAY_DemoMountain.C.

Definition at line 33 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 GEO_Detail gdp,
GEO_AttributeOwner  owner,
GB_Attribute attrib,
const GB_AttributeRef offset,
int  size_in_bytes,
GB_AttribType  type 
)

GEO_AttributeHandle::GEO_AttributeHandle ( const GEO_Detail gdp  ) 

virtual GEO_AttributeHandle::~GEO_AttributeHandle (  )  [virtual]


Member Function Documentation

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

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

Definition at line 155 of file GEO_AttributeHandle.h.

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

Definition at line 138 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::addScale ( const GEO_Point elem,
fpreal  w 
) [inline]

Definition at line 121 of file GEO_AttributeHandle.h.

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

void GEO_AttributeHandle::addScaleRaw ( const GB_AttributeElem elem,
fpreal  w,
GEO_AttributeOwner  owner 
) [protected]

void GEO_AttributeHandle::clearElement (  )  [inline]

Definition at line 56 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 65 of file GEO_AttributeHandle.h.

virtual GB_AttributeHandle* GEO_AttributeHandle::clone (  )  const [virtual]

Implements GB_AttributeHandle.

void GEO_AttributeHandle::copyDataFrom ( const GEO_Detail elem  ) 

void GEO_AttributeHandle::copyDataFrom ( const GEO_Primitive elem  )  [inline]

Definition at line 165 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataFrom ( const GEO_Vertex elem  )  [inline]

Definition at line 148 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataFrom ( const GEO_Point elem  )  [inline]

Definition at line 131 of file GEO_AttributeHandle.h.

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

void GEO_AttributeHandle::copyDataFromRaw ( const GB_AttributeElem elem,
GEO_AttributeOwner  owner 
) [protected]

void GEO_AttributeHandle::copyDataTo ( GEO_Detail elem  )  const

void GEO_AttributeHandle::copyDataTo ( GEO_Primitive elem  )  const [inline]

Definition at line 167 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataTo ( GEO_Vertex elem  )  const [inline]

Definition at line 150 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataTo ( GEO_Point elem  )  const [inline]

Definition at line 133 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::copyDataTo ( GEO_Primitive p,
GEO_Vertex v 
) const

void GEO_AttributeHandle::copyDataToRaw ( GB_AttributeElem elem,
GEO_AttributeOwner  owner 
) const [protected]

void GEO_AttributeHandle::dehomogenize ( fpreal  w  )  [inline]

Definition at line 106 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::divide ( const GEO_Detail elem  ) 

void GEO_AttributeHandle::divide ( const GEO_Primitive elem  )  [inline]

Definition at line 163 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::divide ( const GEO_Vertex elem  )  [inline]

Definition at line 146 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::divide ( const GEO_Point elem  )  [inline]

Definition at line 129 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::divide ( const GEO_Primitive p,
const GEO_Vertex v 
)

void GEO_AttributeHandle::divideRaw ( const GB_AttributeElem elem,
GEO_AttributeOwner  owner 
) [protected]

void GEO_AttributeHandle::dump ( const char *  msg = ""  )  const

bool GEO_AttributeHandle::equalData ( const GEO_Detail elem,
fpreal64  tol 
) const

bool GEO_AttributeHandle::equalData ( const GEO_Primitive elem,
fpreal64  tol 
) const [inline]

Definition at line 169 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::equalData ( const GEO_Vertex elem,
fpreal64  tol 
) const [inline]

Definition at line 152 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::equalData ( const GEO_Point elem,
fpreal64  tol 
) const [inline]

Definition at line 135 of file GEO_AttributeHandle.h.

bool GEO_AttributeHandle::equalData ( const GEO_Primitive p,
const GEO_Vertex v,
fpreal64  t 
) const

bool GEO_AttributeHandle::equalDataRaw ( const GB_AttributeElem elem,
fpreal64  tol,
GEO_AttributeOwner  owner 
) const [protected]

GEO_AttributeOwner GEO_AttributeHandle::getDictionary (  )  const [inline]

Definition at line 90 of file GEO_AttributeHandle.h.

int GEO_AttributeHandle::getFloatCount ( bool  includePw  )  const [inline]

Definition at line 95 of file GEO_AttributeHandle.h.

virtual const char* GEO_AttributeHandle::getName (  )  const [virtual]

Reimplemented from GB_AttributeHandle.

const GEO_Point* GEO_AttributeHandle::getPoint ( const GB_AttributeElem elem  )  const [inline, protected]

Definition at line 214 of file GEO_AttributeHandle.h.

GEO_Point* GEO_AttributeHandle::getPoint ( GB_AttributeElem elem  )  [inline, protected]

Definition at line 212 of file GEO_AttributeHandle.h.

const UT_Vector4& GEO_AttributeHandle::getPos ( const GB_AttributeElem elem  )  const [inline, protected]

Definition at line 218 of file GEO_AttributeHandle.h.

UT_Vector4& GEO_AttributeHandle::getPos ( GB_AttributeElem elem  )  [inline, protected]

Definition at line 216 of file GEO_AttributeHandle.h.

GEO_AttributeOwner GEO_AttributeHandle::getSourceDictionary (  )  const [inline]

Definition at line 92 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::homogenize ( fpreal  w  ) 

virtual void GEO_AttributeHandle::invalidate (  )  [virtual]

Invalidates the handle (gets rid of references to elements and details).

Reimplemented from GB_AttributeHandle.

virtual bool GEO_AttributeHandle::isAttributeValid (  )  const [virtual]

Returns true if our attribute handle is bound to a valid attribute and false otherwise.

Implements GB_AttributeHandle.

Examples:
POP/POP_CircleForce.C, SIM/SNOW_Solver.C, SOP/SOP_PrimVOP.C, SOP/SOP_TimeCompare.C, and standalone/geo2voxel.C.

bool GEO_AttributeHandle::isP (  )  const [inline]

Examples:
SOP/SOP_TimeCompare.C.

Definition at line 91 of file GEO_AttributeHandle.h.

virtual bool GEO_AttributeHandle::isSourceAttributeValid (  )  const [virtual]

Implements GB_AttributeHandle.

void GEO_AttributeHandle::lerp ( const GEO_Detail gdp0,
const GEO_Detail gdp1,
fpreal  w 
)

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

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

Definition at line 159 of file GEO_AttributeHandle.h.

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

Definition at line 157 of file GEO_AttributeHandle.h.

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

Definition at line 142 of file GEO_AttributeHandle.h.

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

Definition at line 140 of file GEO_AttributeHandle.h.

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

Definition at line 125 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::lerp ( const GEO_Point elem,
fpreal  w 
) [inline]

Definition at line 123 of file GEO_AttributeHandle.h.

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_Primitive p,
const GEO_Vertex v,
fpreal  w 
)

void GEO_AttributeHandle::lerpRaw ( const GB_AttributeElem p0,
const GB_AttributeElem p1,
fpreal  w,
GEO_AttributeOwner  owner 
) [protected]

void GEO_AttributeHandle::lerpRaw ( const GB_AttributeElem elem,
fpreal  w,
GEO_AttributeOwner  owner 
) [protected]

void GEO_AttributeHandle::multiply ( const GEO_Detail elem  ) 

void GEO_AttributeHandle::multiply ( const GEO_Primitive elem  )  [inline]

Definition at line 161 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiply ( const GEO_Vertex elem  )  [inline]

Definition at line 144 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiply ( const GEO_Point elem  )  [inline]

Definition at line 127 of file GEO_AttributeHandle.h.

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

void GEO_AttributeHandle::multiply ( fpreal  val  )  [inline]

Unary arithmetic operations.

Reimplemented from GB_AttributeHandle.

Definition at line 103 of file GEO_AttributeHandle.h.

void GEO_AttributeHandle::multiplyRaw ( const GB_AttributeElem elem,
GEO_AttributeOwner  owner 
) [protected]

virtual GEO_AttributeHandle& GEO_AttributeHandle::operator= ( const GEO_AttributeHandle gah  )  [virtual]

virtual void GEO_AttributeHandle::setElement ( const GEO_Primitive p,
const GEO_Vertex v 
) [virtual]

virtual void GEO_AttributeHandle::setElement ( GEO_Primitive p,
GEO_Vertex v 
) [virtual]

virtual void GEO_AttributeHandle::setElement ( const GEO_Detail gdp  )  [virtual]

virtual void GEO_AttributeHandle::setElement ( const GEO_Primitive prim  )  [virtual]

virtual void GEO_AttributeHandle::setElement ( const GEO_Point pt  )  [virtual]

virtual void GEO_AttributeHandle::setElement ( const GEO_Vertex v  )  [virtual]

virtual void GEO_AttributeHandle::setElement ( GEO_Detail gdp  )  [virtual]

virtual void GEO_AttributeHandle::setElement ( GEO_Primitive prim  )  [virtual]

virtual void GEO_AttributeHandle::setElement ( GEO_Point pt  )  [virtual]

virtual void GEO_AttributeHandle::setElement ( GEO_Vertex v  )  [virtual]

virtual void GEO_AttributeHandle::setRawElement ( const GB_AttributeElem elem  )  [protected, virtual]

Implements GB_AttributeHandle.

virtual void GEO_AttributeHandle::setRawElement ( GB_AttributeElem element  )  [protected, virtual]

Sets the element on which this attribute handle will operate The const version will set a flag and prevent you from writing data to this element.

Implements GB_AttributeHandle.

void GEO_AttributeHandle::setSourceMap ( const GEO_AttributeHandle h  ) 

void GEO_AttributeHandle::setSourceMap ( const GB_AttributeDict dict,
GEO_AttributeOwner  owner 
)

void GEO_AttributeHandle::setSourceMap ( GEO_AttributeOwner  dict,
const GB_AttributeRef o 
)


Member Data Documentation

Definition at line 223 of file GEO_AttributeHandle.h.

Definition at line 221 of file GEO_AttributeHandle.h.

Definition at line 222 of file GEO_AttributeHandle.h.

Definition at line 224 of file GEO_AttributeHandle.h.

Definition at line 222 of file GEO_AttributeHandle.h.


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

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