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

#include <GA_GenericHandle.h>

Public Member Functions

 GA_GenericMath (const GA_ROGenericHandle< T, T_OWNER > &h)
 
bool setElement (T &val)
 
void copy (GA_Offset source_index) const
 
void add (GA_WeightedSum &sum, GA_Offset source_index, fpreal w) const
 
void addH (GA_WeightedSum &sum, GA_Offset source_index, fpreal w) 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
 
bool isEqual (const T &val) const
 
bool isAlmostEqual (const T &val) const
 
void zero () const
 
void multiply (fpreal scale) const
 
void copyDest (T val) const
 
void addDest (T val) const
 
void subDest (T val) const
 
void lerpDest (T s0, T s1, fpreal t) const
 
void addDest (GA_WeightedSum &sum, T val, fpreal w) const
 
void addHDest (GA_WeightedSum &sum, T val, fpreal w) const
 
void dehomogenizeData (T *data, int size)
 

Detailed Description

template<typename T, GA_AttributeOwner T_OWNER>
class GA_GenericMath< T, T_OWNER >

Template math for operating on generic handles

This template is specialized to work on float, UT_Vector3, UT_Vector4, and other POD data types.

The offsets passed in to methods must match the T_OWNER template parameter.

Definition at line 242 of file GA_GenericHandle.h.

Constructor & Destructor Documentation

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

Definition at line 245 of file GA_GenericHandle.h.

Member Function Documentation

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::add ( GA_WeightedSum sum,
GA_Offset  source_index,
fpreal  w 
) const
inline

Definition at line 254 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::addDest ( T  val) const
inline

Definition at line 298 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::addDest ( GA_WeightedSum sum,
T  val,
fpreal  w 
) const
inline

Definition at line 304 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::addH ( GA_WeightedSum sum,
GA_Offset  source_index,
fpreal  w 
) const
inline

Definition at line 261 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::addHDest ( GA_WeightedSum sum,
T  val,
fpreal  w 
) const
inline

Definition at line 309 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::copy ( GA_Offset  source_index) const
inline

Definition at line 252 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::copyDest ( T  val) const
inline

Definition at line 297 of file GA_GenericHandle.h.

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

Definition at line 314 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::finishHSum ( const GA_WeightedSum sum,
fpreal  normalization = 1 
) const
inline

Definition at line 279 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::finishSum ( const GA_WeightedSum sum,
fpreal  normalization = 1 
) const
inline

Definition at line 274 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
bool GA_GenericMath< T, T_OWNER >::isAlmostEqual ( const T val) const
inline

Definition at line 288 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
bool GA_GenericMath< T, T_OWNER >::isEqual ( const T val) const
inline

Definition at line 286 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::lerpDest ( T  s0,
T  s1,
fpreal  t 
) const
inline

Definition at line 301 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::multiply ( fpreal  scale) const
inline

Definition at line 294 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
bool GA_GenericMath< T, T_OWNER >::setElement ( T val)
inline

Definition at line 248 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::startHSum ( const GA_WeightedSum sum) const
inline

Definition at line 272 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::startSum ( const GA_WeightedSum sum) const
inline

Definition at line 270 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::subDest ( T  val) const
inline

Definition at line 300 of file GA_GenericHandle.h.

template<typename T, GA_AttributeOwner T_OWNER>
void GA_GenericMath< T, T_OWNER >::zero ( ) const
inline

Definition at line 292 of file GA_GenericHandle.h.


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