![]() |
VR-Forces 5.0.3 Developer's Guide
|
forces to include that influence the particles movement /ingroup vrvFx

Public Member Functions | |
| DtFxForce () | |
| DtFxForce (const DtFxForce &rhs) | |
| DtFxForce & | operator= (const DtFxForce &) |
| virtual | ~DtFxForce () |
| virtual bdiCfgEntry * | create_cfg_entry () const |
| virtual int | read_cfg_entries (bdiCfgEntry *cfg_entry) |
| virtual void | setParticleManager (DtFxParticleSystemManager *manager) |
| virtual void | setPosition (double x, double y, double z) |
| virtual void | setPosition (const bdiFarPosition &pos) |
| const bdiFarPosition & | position () const |
| virtual void | setSourceSystem (DtFxParticleSystem *system) |
| virtual void | setSourceForce (DtFxForce *force) |
| virtual DtFxForce * | sourceForce () const |
| virtual void | setRadius (float radius) |
| virtual float | radius () const |
| virtual void | setForceType (ForceType forceType) |
| virtual ForceType | forceType () const |
| virtual void | setFalloffType (FalloffType falloffType) |
| virtual FalloffType | falloffType () const |
| virtual void | setForceStrength (float str) |
| virtual float | forceStrength () const |
| virtual void | setForceDirection (float x, float y, float z) |
| virtual const bdiVec3f & | forceDirection () const |
| virtual void | setGlobalForce (bool global) |
| virtual bool | globalForce () const |
| virtual void | render_into_vbo (const bdiFarPosition &eyePoint, const bdiFarPosition &globalPos, const bdiMat4f &geocentricMat, const bdiMat4f &geocentricMatInv, bdiVec3fArray &verts, bdiVec4fArray &colors) const |
| virtual void | render_into_vbo (const bdiFarPosition &eyePoint, bdiVec3fArray &verts, bdiVec4fArray &colors) const |
| virtual float | calcBoundingRadius () const |
| virtual void | updateGlobalPosition (const bdiFarPosition &position, const bdiMat4f &geocentricMat, const bdiMat4f &geocentricMatInv) |
| const bdiString & | forceScript () const |
| virtual void | updateForceStrength () |
| void | applyForceGeocentric (const DtFxParticleSystem *system, float quantum, const bdiFarPosition ¤tForcePosition, const bdiMat4f &geocentricMat, const bdiMat4f &geocentricMatInv, const bdiVec3f &upVec, DtFxParticle *pParticle, float particle_mass) const |
| void | applyForceFlatEarth (const DtFxParticleSystem *system, float quantum, const bdiFarPosition ¤tForcePosition, const bdiVec3f &upVec, DtFxParticle *pParticle, float particle_mass) const |
| const bdiMat4f & | geocentricMat () const |
| const bdiMat4f & | geocentricMatInv () const |
Public Member Functions inherited from makVrv::DtFxForceInterface | |
| virtual | ~DtFxForceInterface () |
| virtual void | setForceType (ForceType falloff_type)=0 |
| virtual void | setFalloffType (FalloffType falloff_type)=0 |
Protected Attributes | |
| bool | m_global_force |
| bdiFarPosition | m_position |
| bdiFarPosition | m_last_geoc_position |
| float | m_force |
| float | m_radius |
| bdiVec3f | m_direction |
| ForceType | m_force_type |
| FalloffType | m_falloff_type |
| DtFxParticleSystem * | m_source_system |
| DtFxForce * | m_source_force |
| DtFxParticleSystemManager * | m_particle_manager |
| bdiMat4f | myGeocentricMat |
| bdiMat4f | myGeocentricMatInv |
| bdiString | myForceScript |
| DtFxScriptData | myForceScriptData |
Static Protected Attributes | |
| static osgEarth::Util::SimplexNoise | theNoise |
Friends | |
| class | bdiQPropTreeItemAdditionalForce |
Additional Inherited Members | |
Public Types inherited from makVrv::DtFxForceInterface | |
| enum | ForceType { Repulsor2D, Repulsor3D, Attractor2D, Attractor3D, Spinner2D, LiftVortex, WindVolume, CurlNoise } |
| enum | FalloffType { None, Linear, DistanceSquared } |
| makVrv::DtFxForce::DtFxForce | ( | ) |
CTOR.
| makVrv::DtFxForce::DtFxForce | ( | const DtFxForce & | rhs | ) |
copy CTOR
|
inlinevirtual |
DTOR.
|
virtual |
serialize to diguy config entry
|
virtual |
load from diguy config entry
|
inlinevirtual |
sets the manager
sets the position of the object
Implements makVrv::DtFxForceInterface.
|
inlinevirtual |
|
inline |
gets the position
|
inlinevirtual |
sets the system that created this force
|
inlinevirtual |
sets the desc force that this cloned from
|
inlinevirtual |
|
inlinevirtual |
sets the volume of the force, only used for None falloff type, other ones will be derived base on falloff.
Implements makVrv::DtFxForceInterface.
|
inlinevirtual |
|
inlinevirtual |
sets the type of force
|
inlinevirtual |
|
inlinevirtual |
sets the falloff type
|
inlinevirtual |
|
inlinevirtual |
sets the force strength
Implements makVrv::DtFxForceInterface.
|
inlinevirtual |
|
inlinevirtual |
currently only used for wind
Implements makVrv::DtFxForceInterface.
|
inlinevirtual |
|
inlinevirtual |
is this a global force
|
inlinevirtual |
|
virtual |
local object render helper
|
virtual |
global object render helper
|
virtual |
used by culling system
|
virtual |
updates position of child force
|
inline |
gets the force script
|
virtual |
updates the force strength only for scripted ones
| void makVrv::DtFxForce::applyForceGeocentric | ( | const DtFxParticleSystem * | system, |
| float | quantum, | ||
| const bdiFarPosition & | currentForcePosition, | ||
| const bdiMat4f & | geocentricMat, | ||
| const bdiMat4f & | geocentricMatInv, | ||
| const bdiVec3f & | upVec, | ||
| DtFxParticle * | pParticle, | ||
| float | particle_mass | ||
| ) | const |
| void makVrv::DtFxForce::applyForceFlatEarth | ( | const DtFxParticleSystem * | system, |
| float | quantum, | ||
| const bdiFarPosition & | currentForcePosition, | ||
| const bdiVec3f & | upVec, | ||
| DtFxParticle * | pParticle, | ||
| float | particle_mass | ||
| ) | const |
|
inline |
|
inline |
|
friend |
allows UI to edit all the internals
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |