VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtRaindropParticle Class Reference

A drop with a physical simulation of movement, merging, evaporation, etc. More...

Inheritance diagram for makVrv::DtRaindropParticle:
Inheritance graph
[legend]

Public Member Functions

 DtRaindropParticle (float px, float py, float pMass, double time, DtGridCell grid[][GRID_DIMENSION])
 default CTOR. More...
 
virtual ~DtRaindropParticle ()
 default DTOR. More...
 
virtual void update (double time, double elapsedTime, DtGridCell grid[][GRID_DIMENSION], bool &destroyFlag)
 Update the particle. More...
 
virtual void merge (double time, DtGridCell grid[][GRID_DIMENSION])
 Combine drops covered by this drop. More...
 
virtual void computeVelocity (double time, int gridX, int gridY, DtGridCell grid[][GRID_DIMENSION])
 Update the drop's direction and acceleration. More...
 
- Public Member Functions inherited from makVrv::DtDropParticle
 DtDropParticle (float px, float py, float pMass, double time, DtGridCell grid[][GRID_DIMENSION])
 constructor More...
 
virtual ~DtDropParticle ()
 destructor More...
 
virtual void setParent (DtDropParticle *drop)
 If this drop was left behind from wetting from another drop, keep track of the parent drop. More...
 
virtual DtDropParticleparent () const
 
virtual float mass () const
 set/get the mass More...
 
virtual void setMass (float m)
 
virtual const Vector2_32velocity () const
 get the velocity More...
 
virtual void affectedCells (std::vector< DtVector2< short > > &cells) const
 Gets all screen grid cells covered by this drop. More...
 
virtual void computeRadius (double waterOnScreenSize)
 compute radius More...
 
virtual void gridPosition (int &gx, int &gy) const
 get the grid position More...
 
virtual bool mergeable () const
 can this be merged with another particle? More...
 
virtual float x () const
 get x More...
 
virtual float y () const
 get y More...
 
virtual float radius () const
 get radius More...
 
virtual int type () const
 type (0) More...
 
virtual float intensity (void) const
 intensity (1) More...
 

Protected Attributes

std::vector< DtVector2< short > > myCollisionsScratchPad
 
- Protected Attributes inherited from makVrv::DtDropParticle
float myX
 
float myY
 
float myRadius
 
float myMass
 
float myV0
 
double myT0
 
float myAcceleration
 
DtDropParticlemyParent
 
Vector2_32 myDirection
 
Vector2_32 myVelocity
 
int myLastGridX
 
int myLastGridY
 
bool myMergeable
 

Private Member Functions

 DtRaindropParticle ()
 private default constructor. not allowed. More...
 
 DtRaindropParticle (const DtRaindropParticle &)
 prevent copy-construction More...
 
DtRaindropParticleoperator= (const DtRaindropParticle &)
 prevent assignment More...
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtDropParticle
static void precomputeDropletNormalsIfNeeded ()
 Precompute a normal map for a drop. More...
 
static const void * precomputedDropletNormalsDataPointer (void)
 accesss the grid of precomputed normals as a void* pointer (so that they can be copied into a gpu buffer for example) More...
 
- Static Protected Attributes inherited from makVrv::DtDropParticle
static DtVector4< unsigned intthePrecomputedDropletNormals [PRECOMPUTED_DIM][PRECOMPUTED_DIM]
 
static bool myDropletInitialized
 

Detailed Description

A drop with a physical simulation of movement, merging, evaporation, etc.

Constructor & Destructor Documentation

makVrv::DtRaindropParticle::DtRaindropParticle ( float  px,
float  py,
float  pMass,
double  time,
DtGridCell  grid[][GRID_DIMENSION] 
)

default CTOR.

makVrv::DtRaindropParticle::DtRaindropParticle ( )
private

private default constructor. not allowed.

makVrv::DtRaindropParticle::DtRaindropParticle ( const DtRaindropParticle )
private

prevent copy-construction

virtual makVrv::DtRaindropParticle::~DtRaindropParticle ( )
virtual

default DTOR.

Member Function Documentation

DtRaindropParticle& makVrv::DtRaindropParticle::operator= ( const DtRaindropParticle )
private

prevent assignment

virtual void makVrv::DtRaindropParticle::update ( double  time,
double  elapsedTime,
DtGridCell  grid[][GRID_DIMENSION],
bool destroyFlag 
)
virtual

Update the particle.

Implements makVrv::DtDropParticle.

virtual void makVrv::DtRaindropParticle::merge ( double  time,
DtGridCell  grid[][GRID_DIMENSION] 
)
virtual

Combine drops covered by this drop.

virtual void makVrv::DtRaindropParticle::computeVelocity ( double  time,
int  gridX,
int  gridY,
DtGridCell  grid[][GRID_DIMENSION] 
)
virtual

Update the drop's direction and acceleration.

Member Data Documentation

std::vector< DtVector2<short> > makVrv::DtRaindropParticle::myCollisionsScratchPad
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)