![]() |
VR-Forces 4.10 Class Documentation
|
A drop with a physical simulation of movement, merging, evaporation, etc. More...

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 DtDropParticle * | parent () const |
| virtual float | mass () const |
| set/get the mass More... | |
| virtual void | setMass (float m) |
| virtual const Vector2_32 & | velocity () 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 |
| DtDropParticle * | myParent |
| 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... | |
| DtRaindropParticle & | operator= (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 int > | thePrecomputedDropletNormals [PRECOMPUTED_DIM][PRECOMPUTED_DIM] |
| static bool | myDropletInitialized |
A drop with a physical simulation of movement, merging, evaporation, etc.
| makVrv::DtRaindropParticle::DtRaindropParticle | ( | float | px, |
| float | py, | ||
| float | pMass, | ||
| double | time, | ||
| DtGridCell | grid[][GRID_DIMENSION] | ||
| ) |
default CTOR.
|
private |
private default constructor. not allowed.
|
private |
prevent copy-construction
|
virtual |
default DTOR.
|
private |
prevent assignment
|
virtual |
Update the particle.
Implements makVrv::DtDropParticle.
|
virtual |
Combine drops covered by this drop.
|
virtual |
Update the drop's direction and acceleration.
|
protected |