![]() |
VR-Forces 5.0.2 Developer's Guide
|
Local class for a single drop particle on the screen.

Public Member Functions | |
| DtDropParticle (float px, float py, float pMass, double time, DtGridCell grid[][GRID_DIMENSION]) | |
| virtual | ~DtDropParticle () |
| virtual void | setParent (DtDropParticle *drop) |
| virtual DtDropParticle * | parent () const |
| virtual float | mass () const |
| virtual void | setMass (float m) |
| virtual const Vector2_32 & | velocity () const |
| virtual void | affectedCells (std::vector< DtVector2< short > > &cells) const |
| virtual void | computeRadius (double waterOnScreenSize) |
| virtual void | update (double time, double elapsedTime, DtGridCell grid[][GRID_DIMENSION], bool &destroyFlag)=0 |
| virtual void | gridPosition (int &gx, int &gy) const |
| virtual bool | mergeable () const |
| virtual float | x () const |
| virtual float | y () const |
| virtual float | radius () const |
| virtual int | type () const |
| virtual float | intensity (void) const |
Static Public Member Functions | |
| static void | precomputeDropletNormalsIfNeeded () |
| static const void * | precomputedDropletNormalsDataPointer (void) |
Protected Attributes | |
| 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 |
Static Protected Attributes | |
| static DtVector4< unsigned int > | thePrecomputedDropletNormals [PRECOMPUTED_DIM][PRECOMPUTED_DIM] |
| static bool | myDropletInitialized |
Private Member Functions | |
| DtDropParticle ()=delete | |
| DtDropParticle (const DtDropParticle &)=delete | |
| DtDropParticle & | operator= (const DtDropParticle &)=delete |
| makVrv::DtDropParticle::DtDropParticle | ( | float | px, |
| float | py, | ||
| float | pMass, | ||
| double | time, | ||
| DtGridCell | grid[][GRID_DIMENSION] | ||
| ) |
constructor
|
virtual |
destructor
|
privatedelete |
private default constructor. not allowed.
|
privatedelete |
prevent copy-construction
|
privatedelete |
prevent assignment
|
virtual |
If this drop was left behind from wetting from another drop, keep track of the parent drop.
|
virtual |
|
virtual |
set/get the mass
|
virtual |
|
virtual |
get the velocity
|
virtual |
Gets all screen grid cells covered by this drop.
|
virtual |
compute radius
|
pure virtual |
Update the particle.
Implemented in makVrv::DtSplashParticle, and makVrv::DtRaindropParticle.
get the grid position
|
virtual |
can this be merged with another particle?
|
virtual |
get x
|
virtual |
get y
|
virtual |
get radius
|
virtual |
type (0)
Reimplemented in makVrv::DtSplashParticle.
|
virtual |
intensity (1)
Reimplemented in makVrv::DtSplashParticle.
|
static |
Precompute a normal map for a drop.
|
static |
accesss the grid of precomputed normals as a void* pointer (so that they can be copied into a gpu buffer for example)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |