![]() |
VR-Forces 4.8 Class Documentation
|

Public Member Functions | |
| DtSplashParticle (float px, float py, float pMass, double time, DtGridCell grid[][GRID_DIMENSION], float pIntensity) | |
| constructor More... | |
| virtual | ~DtSplashParticle () |
| destructor More... | |
| virtual void | update (double time, double elapsedTime, DtGridCell grid[][GRID_DIMENSION], bool &destroyFlag) |
| update More... | |
| virtual void | renderToNormalMap (osg::Image *image) |
| render to normal map More... | |
| virtual unsigned int | precomputedSplashTexel (float x, float y) |
| Precompute the splash. 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 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 bool | mergeable () const |
| can this be merged with another particle? More... | |
| virtual unsigned int | precomputedDropletTexel (float x, float y) |
Static Public Member Functions | |
| static void | precomputeSplash () |
Static Public Member Functions inherited from makVrv::DtDropParticle | |
| static void | precomputeDroplet () |
| Precompute a normal map for a drop. More... | |
Protected Attributes | |
| float | myIntensity |
Protected Attributes inherited from makVrv::DtDropParticle | |
| float | myX |
| float | myY |
| float | myRadius |
| float | myMass |
| float | myV0 |
| double | myT0 |
| float | myAcceleration |
| DtDropParticle * | myParent |
| osg::Vec2f | myDirection |
| osg::Vec2f | myVelocity |
| int | myLastGridX |
| int | myLastGridY |
| bool | myMergeable |
Static Protected Attributes | |
| static unsigned int | myPrecomputedSplash [PRECOMPUTED_DIM][PRECOMPUTED_DIM] |
| static bool | mySplashInitialized |
Static Protected Attributes inherited from makVrv::DtDropParticle | |
| static unsigned int | myPrecomputedDroplet [PRECOMPUTED_DIM][PRECOMPUTED_DIM] |
| static bool | myDropletInitialized |
Private Member Functions | |
| DtSplashParticle () | |
| private default constructor. not allowed. More... | |
| DtSplashParticle (const DtSplashParticle &) | |
| prevent copy-construction More... | |
| DtSplashParticle & | operator= (const DtSplashParticle &) |
| prevent assignment More... | |
| makVrv::DtSplashParticle::DtSplashParticle | ( | float | px, |
| float | py, | ||
| float | pMass, | ||
| double | time, | ||
| DtGridCell | grid[][GRID_DIMENSION], | ||
| float | pIntensity | ||
| ) |
constructor
|
virtual |
destructor
|
private |
private default constructor. not allowed.
|
private |
prevent copy-construction
|
private |
prevent assignment
|
virtual |
update
Implements makVrv::DtDropParticle.
|
virtual |
render to normal map
Reimplemented from makVrv::DtDropParticle.
Precompute the splash.
|
static |
|
staticprotected |
|
staticprotected |
|
protected |