HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GA_GenericMath< GA_Offset, T_OWNER > Class Template Reference

Specialization of GA_GenericMath for GA_Offset. More...

#include <GA_GenericHandle.h>

+ Inheritance diagram for GA_GenericMath< GA_Offset, T_OWNER >:

Public Types

typedef
GA_AttributeRefMapDestHandle
< T_OWNER > 
Base
 

Public Member Functions

 GA_GenericMath (const GA_ROGenericHandle< GA_Offset, T_OWNER > &h)
 
void dehomogenizeData (GA_Offset *data, int size)
 
- Public Member Functions inherited from GA_AttributeRefMapDestHandle< T_OWNER >
 GA_AttributeRefMapDestHandle (const GA_AttributeRefMap &map)
 Minimal constructor. More...
 
 GA_AttributeRefMapDestHandle (const GA_AttributeRefMapDestHandle &src)
 Copy constructor. More...
 
 ~GA_AttributeRefMapDestHandle ()
 Destructor. More...
 
int entries () const
 Return the number of attributes in the list. More...
 
int entriesWithSourceP () const
 
void homogenize () const
 Homogenize any rational attributes of the current element. More...
 
void dehomogenize () const
 Dehomogenize any rational attributes of the current element. More...
 
void copy (GA_Offset offset) const
 
void add (GA_Offset source_index, fpreal scale=1) const
 
void add (GA_WeightedSum &sum, GA_Offset source_index, fpreal w) const
 
void sub (GA_Offset source_index) const
 
void mul (GA_Offset source_index) const
 
void lerp (GA_Offset s0, GA_Offset s1, fpreal t) const
 
void lerpH (GA_Offset s0, GA_Offset s1, fpreal t) const
 
void addH (GA_WeightedSum &sum, GA_Offset source_index, fpreal w) const
 
void barycentric (GA_Offset p0, GA_Offset p1, GA_Offset p2, fpreal u, fpreal v) const
 
void bilinear (GA_Offset u0v0, GA_Offset u1v0, GA_Offset u0v1, GA_Offset u1v1, fpreal u, fpreal v) const
 
void zero () const
 Zero an attribute. This is equivalent to a weighted sum of 0 elements. More...
 
void multiply (fpreal scale) const
 Multiply operation: More...
 
void dump (const char *msg,...) const
 Debug statement to dump all the attributes to stdout. More...
 
bool setElement (GA_Offset offset)
 
void copyExplicitPosition (const UT_Vector2 &p) const
 
void copyExplicitPosition (const UT_Vector2D &p) const
 
void copyExplicitPosition (const UT_Vector3 &p) const
 
void copyExplicitPosition (const UT_Vector3D &p) const
 
void copyExplicitPosition (const UT_Vector4 &p) const
 
void copyExplicitPosition (const UT_Vector4D &p) const
 
void startSum (const GA_WeightedSum &sum) const
 
void startHSum (const GA_WeightedSum &sum) const
 
void finishSum (const GA_WeightedSum &sum, fpreal normalization=1) const
 
void finishHSum (const GA_WeightedSum &sum, fpreal normalization=1) const
 
void transform (const UT_Matrix4 &m, const UT_Matrix4 &im) const
 
void transform (const UT_DMatrix4 &m, const UT_DMatrix4 &im) const
 
bool isEqual (GA_Offset cmp) const
 
bool isAlmostEqual (GA_Offset cmp) const
 
void copyDest (GA_Offset offset) const
 
void addDest (GA_Offset offset) const
 
void addDest (GA_WeightedSum &sum, GA_Offset offset, fpreal w) const
 
void subDest (GA_Offset offset) const
 
void lerpDest (GA_Offset s0, GA_Offset s1, fpreal t) const
 
void addHDest (GA_WeightedSum &sum, GA_Offset offset, fpreal w) const
 

Detailed Description

template<GA_AttributeOwner T_OWNER>
class GA_GenericMath< GA_Offset, T_OWNER >

Specialization of GA_GenericMath for GA_Offset.

Definition at line 455 of file GA_GenericHandle.h.

Member Typedef Documentation

template<GA_AttributeOwner T_OWNER>
typedef GA_AttributeRefMapDestHandle<T_OWNER> GA_GenericMath< GA_Offset, T_OWNER >::Base

Definition at line 459 of file GA_GenericHandle.h.

Constructor & Destructor Documentation

template<GA_AttributeOwner T_OWNER>
GA_GenericMath< GA_Offset, T_OWNER >::GA_GenericMath ( const GA_ROGenericHandle< GA_Offset, T_OWNER > &  h)
inline

Definition at line 461 of file GA_GenericHandle.h.

Member Function Documentation

template<GA_AttributeOwner T_OWNER>
void GA_GenericMath< GA_Offset, T_OWNER >::dehomogenizeData ( GA_Offset data,
int  size 
)
inline

Definition at line 464 of file GA_GenericHandle.h.


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