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

#include <GA_ElementWrangler.h>

+ Inheritance diagram for GA_PointWrangler:

Public Types

enum  IncludeP { EXCLUDE_P, INCLUDE_P }
 

Public Member Functions

 GA_PointWrangler (GA_Detail &dest, IncludeP p)
 
 GA_PointWrangler (GA_Detail &dest, const GA_Detail &src, IncludeP p)
 
 GA_PointWrangler (GA_Detail &dest, const GA_AttributeFilter &filter)
 
 GA_PointWrangler (GA_Detail &dest, const GA_Detail &src, const GA_AttributeFilter &filter)
 
 ~GA_PointWrangler ()
 
bool includesP () const
 
void copyAttributeValues (GA_Offset dest, GA_Offset src, IncludeP copy_p)
 
void scaleAttributeValues (GA_Offset dest, fpreal scale, IncludeP scale_p)
 
void addAttributeValues (GA_Offset dest, GA_Offset src, fpreal scale, IncludeP add_p)
 
void lerpAttributeValues (GA_Offset dest, GA_Offset src0, GA_Offset src1, fpreal bias, IncludeP lerp_p)
 
- Public Member Functions inherited from GA_ElementWrangler
void copyAttributeValues (GA_Offset dest, GA_Offset src)
 
void copyAttributeValues (const GA_Range &dest, GA_Offset src)
 
void scaleAttributeValues (GA_Offset dest, fpreal scale)
 
void addAttributeValues (GA_Offset dest, GA_Offset src, fpreal scale=1)
 
void lerpAttributeValues (GA_Offset dest, GA_Offset src0, GA_Offset src1, fpreal bias)
 
bool isValid (GA_Detail &dest) const
 
bool isValid (GA_Detail &dest, const GA_Detail &src) const
 
int getNumAttributes () const
 
void bumpAllDestDataIds ()
 

Additional Inherited Members

- Protected Member Functions inherited from GA_ElementWrangler
 GA_ElementWrangler (GA_AttributeOwner owner, GA_Detail &dest, const GA_Attribute *exclude=0)
 
 GA_ElementWrangler (GA_AttributeOwner owner, GA_Detail &dest, const GA_Detail &src, const GA_Attribute *exclude=0)
 
 GA_ElementWrangler (GA_AttributeOwner owner, GA_Detail &dest, const GA_AttributeFilter &filter)
 
 GA_ElementWrangler (GA_AttributeOwner owner, GA_Detail &dest, const GA_Detail &src, const GA_AttributeFilter &filter)
 
 ~GA_ElementWrangler ()
 Protected destructor as we don't support polymorphic destruction. More...
 
GA_AttributeRefMapgetMap ()
 

Detailed Description

By default, operations on "P" are performed as with any other attribute. However, it's possible to turn on the homogeneous flag which will ensure that operations are done using homogeneous coordinates.

Examples:
SOP/SOP_BrushHairLen.C.

Definition at line 100 of file GA_ElementWrangler.h.

Member Enumeration Documentation

Enumerator
EXCLUDE_P 
INCLUDE_P 

Definition at line 103 of file GA_ElementWrangler.h.

Constructor & Destructor Documentation

GA_PointWrangler::GA_PointWrangler ( GA_Detail dest,
IncludeP  p 
)

The GA_PointWrangler::IncludeP argument passed to the constructor determines whether the base class operations include "P".

GA_PointWrangler::GA_PointWrangler ( GA_Detail dest,
const GA_Detail src,
IncludeP  p 
)
GA_PointWrangler::GA_PointWrangler ( GA_Detail dest,
const GA_AttributeFilter filter 
)
GA_PointWrangler::GA_PointWrangler ( GA_Detail dest,
const GA_Detail src,
const GA_AttributeFilter filter 
)
GA_PointWrangler::~GA_PointWrangler ( )
inline

Definition at line 114 of file GA_ElementWrangler.h.

Member Function Documentation

void GA_PointWrangler::addAttributeValues ( GA_Offset  dest,
GA_Offset  src,
fpreal  scale,
IncludeP  add_p 
)
inline

Definition at line 151 of file GA_ElementWrangler.h.

void GA_PointWrangler::copyAttributeValues ( GA_Offset  dest,
GA_Offset  src,
IncludeP  copy_p 
)
inline

Definition at line 126 of file GA_ElementWrangler.h.

bool GA_PointWrangler::includesP ( ) const
inline

Definition at line 119 of file GA_ElementWrangler.h.

void GA_PointWrangler::lerpAttributeValues ( GA_Offset  dest,
GA_Offset  src0,
GA_Offset  src1,
fpreal  bias,
IncludeP  lerp_p 
)
inline

Definition at line 164 of file GA_ElementWrangler.h.

void GA_PointWrangler::scaleAttributeValues ( GA_Offset  dest,
fpreal  scale,
IncludeP  scale_p 
)
inline

Definition at line 139 of file GA_ElementWrangler.h.


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