![]() |
VR-Forces Developer's Guide
|
A model instance of a tactical smoke cloud consisting of several puffs of smoke. This requires the use of a new Fx Particle System (the model definition passed to ::realize() must contain an "FxSystem" parameter.

Public Member Functions | |
| DtTacticalSmokeModelInstance (DtDe &de) | |
| virtual | ~DtTacticalSmokeModelInstance () |
| virtual bool | realize (const DtModelDefinition &definition) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setPuffPosition (int puffIndex, const DtVector &fxSysPosition) |
| virtual void | setWindDirection (const DtVector &winddir) |
| virtual void | slot_handleWindDirectionChanged (float dir) |
| virtual void | slot_handleWindSpeedChanged (float speed) |
| virtual void | start () |
| virtual void | stop () |
| virtual void | pause () |
| virtual void | resume () |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | cloneInstance (const DtModelDefinition &definition) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| 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 | |
| virtual void | destroyEffect () |
| virtual void | updateWind () |
| virtual void | createFxSystem (const DtModelDefinition &definition) |
| virtual void | slot_coordinateSystemChanged () |
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) |
Private Attributes | |
| friend | DtTacticalSmokeModelInstanceCreator |
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 &, bool) > | 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 |
| makVrv::DtTacticalSmokeModelInstance::DtTacticalSmokeModelInstance | ( | DtDe & | de | ) |
Initializing CTOR.
| [in] | de | is a reference to the display engine. |
|
virtual |
Virtual DTOR.
|
virtual |
Attempt to realize the instance of this model from a definition.
| [in] | definition | is the model definition. The model definition must have an "fxSystem" parameter identifying the fx particle system to use |
| true | if the instance was realized. |
| false | otherwise. |
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Set the visible state of this object. Currently unimplemented.
| [in] | isVisible | is the new visible state. |
Implements makVrv::DtModelInstance.
|
virtual |
Set the position of a smoke-puff of particles.
| [in] | puffIndex | is the id of the the particle effect. |
| [in] | fxSysPosition | is the position of new particles (new fx system). |
|
virtual |
Set the wind direction and intensity.
| [in] | winddir | is the direction and intensity of the wind. |
|
virtual |
connection for the wind direction.
|
virtual |
connection for the wind intensity.
|
virtual |
Tell the model to start emitting particles.
|
virtual |
Tell the model to stop emitting particles.
|
virtual |
Freeze the particle emitters.
|
virtual |
Resume the animation.
|
protectedvirtual |
Remove effect from scene-graph, destroy children and destroy effect.
|
protectedvirtual |
update the underlying wind params.
|
protectedvirtual |
helper function to deal with multiple creation paths
|
protectedvirtual |
slot for when the coordinate system changes
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.