![]() |
VR-Forces Developer's Guide
|
An effect model instance creates a particle effect from a model definition. Can be either a new DI-Guy based effect or an osg based one.

Public Member Functions | |
| virtual | ~DtFxParticleSystemModelInstance () |
| virtual void | setPosition (double x, double y, double z) |
| virtual void | setPosition (int index, double x, double y, double z) |
| virtual void | setIntensity (float intensity) |
| virtual void | setIsRotorWash (bool isRotorWash) |
| virtual void | setScale (float scale) |
| virtual void | setRotorDiameter (double diameter) |
| virtual void | setRotorWindSpeed (double speed) |
| virtual void | setIgnoreModelScaling (bool ignoreModelScaling) |
| virtual bool | ignoreModelScaling () const |
| virtual void | setDuration (double seconds) |
| virtual void | setWind (const DtVector &windVector, const DtVector &up) |
| virtual void | setMaxParticlesToEmit (int max) |
| virtual bool | realize (const DtModelDefinition &definition) |
| virtual osg::Node * | getOrLoadFromDefinition (const DtModelDefinition &definition) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual void | stop () |
| virtual void | start () |
| virtual void | pause () |
| virtual void | resume () |
| virtual void | setVisible (bool isVisible) |
| virtual DtOsgParticleSystemEffect * | effectNode () |
| virtual diguyMaterialType | getMaterialType () |
| virtual void | setOffset (const DtVector &offset) |
| virtual void | setArtPart (int partNumber) |
| virtual void | setStartEmit (bool autoEmit) |
| bool | startEmit () |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | cloneInstance (const DtModelDefinition &definition) |
| virtual bool | saveModelToFile (const std::string &filename) const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| virtual const osg::Node * | sensorNode () const |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| virtual const SensorRegionStateMap & | dynamicSensorRegionMap () const |
| virtual void | slot_atcGlobalModelEnableChanged () |
| virtual bool | alphaToCoverageEnabled () |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| const std::string & | realizedDefinitionName () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| const DtVector & | allGeometryboundingBoxExtents () const |
| void | getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | allGeometryboundingBoxCenter () const |
| void | getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
Protected Member Functions | |
| DtFxParticleSystemModelInstance (DtDe &de) | |
| virtual osg::Node * | loadNode (const std::string &filenameParam, const std::string &resourcePathList) |
Protected Member Functions inherited from makVrv::DtParticleSystemModelInstance | |
| DtParticleSystemModelInstance (DtDe &de) | |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| DtOsgModelInstance (DtDe &de) | |
| virtual void | updateColorBlending () |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| virtual void | setRootNode (osg::Node *node) |
| virtual void | setUpDepthTest (osg::StateSet *stateSet) |
Friends | |
| class | DtFxParticleSystemModelInstanceCreator |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| typedef std::unordered_map < std::string, bool > | SensorRegionStateMap |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector4< float > | readVector4 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signalslib::signal < void(const std::string &) > | signal_dynamicSensorRegionAdded |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| boost::signalslib::signal < void(bool)> | signal_atcModeEnableChanged |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
|
virtual |
DTOR.
|
protected |
Create the effect.
|
virtual |
Set the position of the emitter.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
sets the position of a sub emitter .
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Set the effect intensity.
Implements makVrv::DtParticleSystemModelInstance.
Reimplemented in makVrv::DtParticleRotorWashModelInstance.
|
virtual |
For rotorwash type effects, scale the vortex lift force and radius with intensity.
|
virtual |
Set the effect scale.
Implements makVrv::DtParticleSystemModelInstance.
Reimplemented in makVrv::DtParticleRotorWashModelInstance.
|
virtual |
For rotorwash type effects, set the lift vortex radius (if diameter is a negative number then use the value in the particle system description)
Reimplemented in makVrv::DtParticleRotorWashModelInstance.
|
virtual |
For rotorwash type effects, multiply the lift vortex force by speed/100 (if speed is a negative number then the lift vortex won't be scaled by the value)
Reimplemented in makVrv::DtParticleRotorWashModelInstance.
|
virtual |
Sets Whether ignore scaling the particle by distance when you enable the "XR" mode. This can be configured from "ignoreModelScaling" in the model definition. Default is true.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Get whether model scaling is disabled for this model instance.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Set the effect duration.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Set the effect wind.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Set the maximum number of particles to emit.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Attempt to realize a definition. If the model instance can't realize the definition it should return false.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Load a node from a file, or from the cache if possible.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Tell the model instance to add itself to the provided node.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Tell the model instance to remove itself from the provided node.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
Tell the model to stop emitting particles.
Implements makVrv::DtParticleSystemModelInstance.
Reimplemented in makVrv::DtParticleRotorWashModelInstance.
|
virtual |
Tell the model to start emitting particles.
Implements makVrv::DtParticleSystemModelInstance.
Reimplemented in makVrv::DtParticleRotorWashModelInstance.
|
virtual |
Freeze the particle system.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
resume the particle system.
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
stops the system
Implements makVrv::DtParticleSystemModelInstance.
Reimplemented in makVrv::DtParticleRotorWashModelInstance.
|
virtual |
access the particle object.
|
virtual |
access the particle material type.
|
virtual |
sets offset for system in DIS format (forward, right, down)
Implements makVrv::DtParticleSystemModelInstance.
Reimplemented in makVrv::DtParticleRotorWashModelInstance.
|
virtual |
sets articulated part to attach to
Implements makVrv::DtParticleSystemModelInstance.
|
virtual |
sets whether traverse will call emit the first time the particle system is traversed (call before setModelInstance)
| bool makVrv::DtFxParticleSystemModelInstance::startEmit | ( | ) |
gets whether traverse will call emit
|
protectedvirtual |
Try to load a filename as a node.
|
friend |
The class may only be instantiated through the friend creator.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |