HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Turbulence Class Referenceabstract

#include <GU_Turbulence.h>

Public Member Functions

 GU_Turbulence ()
 
virtual ~GU_Turbulence ()
 
void cook (float now, float time_step=1./30.)
 
void reset ()
 
void setGdp (GU_Detail *g)
 
void setSource (GU_Detail *gdp)
 
void setCollision (GU_Detail *gdp)
 
void setStartTime (float t)
 
void setPreroll (float t)
 
void setLimits (const UT_Vector3 &neg, const UT_Vector3 &pos)
 
void setGain (float n, float t)
 
void setModifySource (int onOff)
 
int getModifySource () const
 
void setPointReuse (int val)
 
int getPointReuse () const
 
void setBirthAll (int onOff)
 
int getBirthAll () const
 
void setRevertFixed (int onOff)
 
int getRevertFixed () const
 
void setEuler (int onOff)
 
void setIntegration (GU_INTEGRATION_TYPE t)
 
int getEuler () const
 
GU_INTEGRATION_TYPE getIntegration () const
 
void setDestroyMode (int onOff)
 
int getDestroyMode () const
 
void setAccurateMove (int onOff)
 
int getAccurateMove () const
 
void setJitterBirth (int onOff)
 
int getJitterBirth () const
 
void setSingleAttractor (int onOff)
 
int getSingleAttractor () const
 
void setAddId (int onOff)
 
int getAddId () const
 
void setSplitOff ()
 
void setSplitContact ()
 
void setSplitDeath ()
 
int getSplitting () const
 
void setDieOnContact ()
 
void setBounceOnContact ()
 
void setStickOnContact ()
 
int getContact ()
 
void setFixedPoints (const GA_PointGroup *group)
 
void setInputGroup (const GA_PointGroup *group)
 
void setAttractor (GU_Detail *gdp)
 
void initAttractor ()
 
void cleanupAttractor ()
 
void getAttractorForce (GA_Offset ptoff, UT_Vector3 &force)
 
virtual void initAttractor (GU_Detail *)
 
void zeroSystem ()
 
GEO_PrimParticlegetParticles ()
 
const GA_PointGroupgetFixedPoints ()
 

Protected Member Functions

virtual int changeTime (float t)
 
virtual float getBirthRate (float t)
 
virtual float getLifetime (float t, int split)
 
virtual int getNumSplit (float t)
 
virtual void setBirthAttributes (GA_Offset ptoff, GA_Offset srcptoff, bool split)=0
 
virtual float getMass (float t, GA_Offset ptoff)=0
 
virtual void getForce (float t, GA_Offset ptoff, UT_Vector3 &force)=0
 
virtual void updateSource (float t)
 
virtual void updateCollision (float t)
 
virtual void updateAttractor (float t)
 
virtual void initDetail (GU_Detail *gdp)
 
virtual void initSource (GU_Detail *src)
 
virtual void resetSource (GU_Detail *src)
 
virtual void initCollision (GU_Detail *coll)
 
GEO_PrimParticlegetSystem ()
 
GU_DetailgetMySource ()
 
GU_DetailgetMyGdp ()
 

Protected Attributes

GA_RWHandleV3 myVelocityHandle
 
GA_RWHandleV2 myLifeHandle
 
GA_RWHandleI myIDHandle
 
GA_RWHandleI myPStateHandle
 
UT_Vector3 negLimit
 
UT_Vector3 posLimit
 
float gainNml
 
float gainTan
 
UT_BitArray deadPoints
 
UT_BitArray stuckPoints
 
const GA_PointGroupfixedPoints
 

Detailed Description

Definition at line 82 of file GU_Turbulence.h.

Constructor & Destructor Documentation

GU_Turbulence::GU_Turbulence ( )
virtual GU_Turbulence::~GU_Turbulence ( )
virtual

Member Function Documentation

virtual int GU_Turbulence::changeTime ( float  t)
protectedvirtual
void GU_Turbulence::cleanupAttractor ( )
inline

Definition at line 191 of file GU_Turbulence.h.

void GU_Turbulence::cook ( float  now,
float  time_step = 1./30. 
)
int GU_Turbulence::getAccurateMove ( ) const
inline

Definition at line 151 of file GU_Turbulence.h.

int GU_Turbulence::getAddId ( ) const
inline

Definition at line 168 of file GU_Turbulence.h.

void GU_Turbulence::getAttractorForce ( GA_Offset  ptoff,
UT_Vector3 force 
)
inline

Definition at line 197 of file GU_Turbulence.h.

int GU_Turbulence::getBirthAll ( ) const
inline

Definition at line 116 of file GU_Turbulence.h.

virtual float GU_Turbulence::getBirthRate ( float  t)
protectedvirtual
int GU_Turbulence::getContact ( )
inline

Definition at line 178 of file GU_Turbulence.h.

int GU_Turbulence::getDestroyMode ( ) const
inline

Definition at line 141 of file GU_Turbulence.h.

int GU_Turbulence::getEuler ( ) const
inline

Definition at line 131 of file GU_Turbulence.h.

const GA_PointGroup* GU_Turbulence::getFixedPoints ( )
inline

Definition at line 209 of file GU_Turbulence.h.

virtual void GU_Turbulence::getForce ( float  t,
GA_Offset  ptoff,
UT_Vector3 force 
)
protectedpure virtual
GU_INTEGRATION_TYPE GU_Turbulence::getIntegration ( ) const
inline

Definition at line 132 of file GU_Turbulence.h.

int GU_Turbulence::getJitterBirth ( ) const
inline

Definition at line 157 of file GU_Turbulence.h.

virtual float GU_Turbulence::getLifetime ( float  t,
int  split 
)
protectedvirtual
virtual float GU_Turbulence::getMass ( float  t,
GA_Offset  ptoff 
)
protectedpure virtual
int GU_Turbulence::getModifySource ( ) const
inline

Definition at line 112 of file GU_Turbulence.h.

GU_Detail* GU_Turbulence::getMyGdp ( )
inlineprotected

Definition at line 278 of file GU_Turbulence.h.

GU_Detail* GU_Turbulence::getMySource ( )
inlineprotected

Definition at line 277 of file GU_Turbulence.h.

virtual int GU_Turbulence::getNumSplit ( float  t)
protectedvirtual
GEO_PrimParticle* GU_Turbulence::getParticles ( )
inline

Definition at line 207 of file GU_Turbulence.h.

int GU_Turbulence::getPointReuse ( ) const
inline

Definition at line 114 of file GU_Turbulence.h.

int GU_Turbulence::getRevertFixed ( ) const
inline

Definition at line 118 of file GU_Turbulence.h.

int GU_Turbulence::getSingleAttractor ( ) const
inline

Definition at line 164 of file GU_Turbulence.h.

int GU_Turbulence::getSplitting ( ) const
inline

Definition at line 173 of file GU_Turbulence.h.

GEO_PrimParticle* GU_Turbulence::getSystem ( )
protected
void GU_Turbulence::initAttractor ( )
inline

Definition at line 188 of file GU_Turbulence.h.

virtual void GU_Turbulence::initAttractor ( GU_Detail )
inlinevirtual

Definition at line 202 of file GU_Turbulence.h.

virtual void GU_Turbulence::initCollision ( GU_Detail coll)
protectedvirtual
virtual void GU_Turbulence::initDetail ( GU_Detail gdp)
protectedvirtual
virtual void GU_Turbulence::initSource ( GU_Detail src)
protectedvirtual
void GU_Turbulence::reset ( )
virtual void GU_Turbulence::resetSource ( GU_Detail src)
protectedvirtual
void GU_Turbulence::setAccurateMove ( int  onOff)
inline

Definition at line 150 of file GU_Turbulence.h.

void GU_Turbulence::setAddId ( int  onOff)
inline

Definition at line 167 of file GU_Turbulence.h.

void GU_Turbulence::setAttractor ( GU_Detail gdp)
inline

Definition at line 183 of file GU_Turbulence.h.

void GU_Turbulence::setBirthAll ( int  onOff)
inline

Definition at line 115 of file GU_Turbulence.h.

virtual void GU_Turbulence::setBirthAttributes ( GA_Offset  ptoff,
GA_Offset  srcptoff,
bool  split 
)
protectedpure virtual
void GU_Turbulence::setBounceOnContact ( )
inline

Definition at line 176 of file GU_Turbulence.h.

void GU_Turbulence::setCollision ( GU_Detail gdp)
inline

Definition at line 102 of file GU_Turbulence.h.

void GU_Turbulence::setDestroyMode ( int  onOff)
inline

Definition at line 140 of file GU_Turbulence.h.

void GU_Turbulence::setDieOnContact ( )
inline

Definition at line 175 of file GU_Turbulence.h.

void GU_Turbulence::setEuler ( int  onOff)
inline

Definition at line 123 of file GU_Turbulence.h.

void GU_Turbulence::setFixedPoints ( const GA_PointGroup group)
void GU_Turbulence::setGain ( float  n,
float  t 
)
inline

Definition at line 109 of file GU_Turbulence.h.

void GU_Turbulence::setGdp ( GU_Detail g)
inline

Definition at line 96 of file GU_Turbulence.h.

void GU_Turbulence::setInputGroup ( const GA_PointGroup group)
void GU_Turbulence::setIntegration ( GU_INTEGRATION_TYPE  t)
inline

Definition at line 127 of file GU_Turbulence.h.

void GU_Turbulence::setJitterBirth ( int  onOff)
inline

Definition at line 156 of file GU_Turbulence.h.

void GU_Turbulence::setLimits ( const UT_Vector3 neg,
const UT_Vector3 pos 
)
void GU_Turbulence::setModifySource ( int  onOff)
inline

Definition at line 111 of file GU_Turbulence.h.

void GU_Turbulence::setPointReuse ( int  val)
inline

Definition at line 113 of file GU_Turbulence.h.

void GU_Turbulence::setPreroll ( float  t)
inline

Definition at line 107 of file GU_Turbulence.h.

void GU_Turbulence::setRevertFixed ( int  onOff)
inline

Definition at line 117 of file GU_Turbulence.h.

void GU_Turbulence::setSingleAttractor ( int  onOff)
inline

Definition at line 162 of file GU_Turbulence.h.

void GU_Turbulence::setSource ( GU_Detail gdp)
inline

Definition at line 99 of file GU_Turbulence.h.

void GU_Turbulence::setSplitContact ( )
inline

Definition at line 171 of file GU_Turbulence.h.

void GU_Turbulence::setSplitDeath ( )
inline

Definition at line 172 of file GU_Turbulence.h.

void GU_Turbulence::setSplitOff ( )
inline

Definition at line 170 of file GU_Turbulence.h.

void GU_Turbulence::setStartTime ( float  t)
inline

Definition at line 106 of file GU_Turbulence.h.

void GU_Turbulence::setStickOnContact ( )
inline

Definition at line 177 of file GU_Turbulence.h.

virtual void GU_Turbulence::updateAttractor ( float  t)
protectedvirtual
virtual void GU_Turbulence::updateCollision ( float  t)
protectedvirtual
virtual void GU_Turbulence::updateSource ( float  t)
protectedvirtual
void GU_Turbulence::zeroSystem ( )
inline

Definition at line 206 of file GU_Turbulence.h.

Member Data Documentation

UT_BitArray GU_Turbulence::deadPoints
protected

Definition at line 293 of file GU_Turbulence.h.

const GA_PointGroup* GU_Turbulence::fixedPoints
protected

Definition at line 295 of file GU_Turbulence.h.

float GU_Turbulence::gainNml
protected

Definition at line 291 of file GU_Turbulence.h.

float GU_Turbulence::gainTan
protected

Definition at line 291 of file GU_Turbulence.h.

GA_RWHandleI GU_Turbulence::myIDHandle
protected

Definition at line 285 of file GU_Turbulence.h.

GA_RWHandleV2 GU_Turbulence::myLifeHandle
protected

Definition at line 284 of file GU_Turbulence.h.

GA_RWHandleI GU_Turbulence::myPStateHandle
protected

Definition at line 286 of file GU_Turbulence.h.

GA_RWHandleV3 GU_Turbulence::myVelocityHandle
protected

Definition at line 283 of file GU_Turbulence.h.

UT_Vector3 GU_Turbulence::negLimit
protected

Definition at line 289 of file GU_Turbulence.h.

UT_Vector3 GU_Turbulence::posLimit
protected

Definition at line 290 of file GU_Turbulence.h.

UT_BitArray GU_Turbulence::stuckPoints
protected

Definition at line 294 of file GU_Turbulence.h.


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