HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 buildCache ()
 
void clearCache ()
 
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 ()
 
void hardenAllPages (GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET)
 
GA_AttributeRefMapgetMap ()
 

Additional Inherited Members

- Protected Member Functions inherited from GA_ElementWrangler
 GA_ElementWrangler (GA_AttributeOwner owner, GA_Detail &dest, const GA_Attribute *exclude=nullptr)
 
 GA_ElementWrangler (GA_AttributeOwner owner, GA_Detail &dest, const GA_Detail &src, const GA_Attribute *exclude=nullptr)
 
 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_AttributeRefMap::Cache * cache ()
 

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 122 of file GA_ElementWrangler.h.

Member Enumeration Documentation

Enumerator
EXCLUDE_P 
INCLUDE_P 

Definition at line 125 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 136 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 174 of file GA_ElementWrangler.h.

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

Definition at line 148 of file GA_ElementWrangler.h.

bool GA_PointWrangler::includesP ( ) const
inline

Definition at line 141 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 187 of file GA_ElementWrangler.h.

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

Definition at line 162 of file GA_ElementWrangler.h.


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