HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 232 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 235 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 244 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 288 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 294 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 251 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 299 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 242 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 287 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 304 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 269 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 264 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 278 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 276 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 291 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 284 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 238 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 262 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 260 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 290 of file GA_GenericHandle.h.

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

Definition at line 282 of file GA_GenericHandle.h.


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