VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | 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 osg::Vec2f & velocity () const
 get the velocity More...
 
virtual void affectedCells (std::vector< osg::Vec2s > &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 void renderToNormalMap (osg::Image *image)
 Draw the droplet into the normal map for postprocessing. More...
 
virtual bool mergeable () const
 can this be merged with another particle? More...
 
virtual unsigned int precomputedDropletTexel (float x, float y)
 

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 precomputeDroplet ()
 Precompute a normal map for a drop. More...
 
- Protected Attributes inherited from makVrv::DtDropParticle
float myX
 
float myY
 
float myRadius
 
float myMass
 
float myV0
 
double myT0
 
float myAcceleration
 
DtDropParticlemyParent
 
osg::Vec2f myDirection
 
osg::Vec2f myVelocity
 
int myLastGridX
 
int myLastGridY
 
bool myMergeable
 
- Static Protected Attributes inherited from makVrv::DtDropParticle
static unsigned int myPrecomputedDroplet [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.


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)