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 | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
makVrv::DtSplashParticle Class Reference
Inheritance diagram for makVrv::DtSplashParticle:
Inheritance graph
[legend]

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 int type () const override
 type (0) More...
 
virtual float intensity (void) const override
 intensity 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...
 

Static Public Member Functions

static void precomputeSplashNormalsIfNeeded ()
 
- 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...
 

Protected Attributes

float myIntensity
 
- 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
 

Static Protected Attributes

static DtVector4< unsigned intthePrecomputedSplashNormals [PRECOMPUTED_DIM][PRECOMPUTED_DIM]
 
static bool theSplashNormalsPrecomputed
 
- Static Protected Attributes inherited from makVrv::DtDropParticle
static DtVector4< unsigned intthePrecomputedDropletNormals [PRECOMPUTED_DIM][PRECOMPUTED_DIM]
 
static bool myDropletInitialized
 

Private Member Functions

 DtSplashParticle ()=delete
 private default constructor. not allowed. More...
 
 DtSplashParticle (const DtSplashParticle &)=delete
 prevent copy-construction More...
 
DtSplashParticleoperator= (const DtSplashParticle &)=delete
 prevent assignment More...
 

Constructor & Destructor Documentation

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

constructor

virtual makVrv::DtSplashParticle::~DtSplashParticle ( )
virtual

destructor

makVrv::DtSplashParticle::DtSplashParticle ( )
privatedelete

private default constructor. not allowed.

makVrv::DtSplashParticle::DtSplashParticle ( const DtSplashParticle )
privatedelete

prevent copy-construction

Member Function Documentation

DtSplashParticle& makVrv::DtSplashParticle::operator= ( const DtSplashParticle )
privatedelete

prevent assignment

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

update

Implements makVrv::DtDropParticle.

virtual int makVrv::DtSplashParticle::type ( ) const
overridevirtual

type (0)

Reimplemented from makVrv::DtDropParticle.

virtual float makVrv::DtSplashParticle::intensity ( void  ) const
overridevirtual

intensity

Reimplemented from makVrv::DtDropParticle.

static void makVrv::DtSplashParticle::precomputeSplashNormalsIfNeeded ( )
static

Member Data Documentation

float makVrv::DtSplashParticle::myIntensity
protected
DtVector4<unsigned int> makVrv::DtSplashParticle::thePrecomputedSplashNormals[PRECOMPUTED_DIM][PRECOMPUTED_DIM]
staticprotected
bool makVrv::DtSplashParticle::theSplashNormalsPrecomputed
staticprotected

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)