![]() |
VR-Forces Developer's Guide
|
Visualizer for conditional particle systems. A conditional particle system is one that is visualized if some defined criteria is met.
The criteria can consist of one or more of the following conditions: 1) Visualize the particle system based on whether or not the entity is moving, i.e. velocity is non-zero (see isMoving). 2) Visualize the particle system based on whether some state attribute matches some value (see attributecontrolname and attributecomparevalue).

Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Static Public Member Functions inherited from makVrv::DtEntityParticleSystemVisualizer | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual void | createModelAgents () |
| virtual void | destroyModelAgents () |
| virtual void | setModelDefinitionForAgents () |
| virtual void | setVelocity (const DtVector32 &velocity) |
| virtual void | setRelativeVelocity (const DtVector32 &v) |
| virtual void | slot_embarkedStateChanged () |
| virtual bool | visible () const |
| virtual bool | visualizationCriteriaIsMet () const |
| virtual void | setIsFrozen (bool isFrozen) |
| virtual void | connectToListenerSignals () override |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | updateDrawState () |
| virtual void | slot_wrmStateSet (int stateNumber, int stateValue) |
Protected Member Functions inherited from makVrv::DtEntityParticleSystemVisualizer | |
| virtual void | createParticleEffect () |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | makeVisible () |
| virtual bool | isVisible () const |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
Protected Types inherited from makVrv::DtStateVisualizer | |
| typedef std::vector < DtVisualizerShowHideContext::VisualizerShowHideContext > | ShowHideContextVector |
| makVrv::DtEntityConditionalParticleSystemVisualizer::DtEntityConditionalParticleSystemVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed - equals operator
|
overridevirtual |
called soon after construction to initialize the signals/state from the listener
Reimplemented from makVrv::DtEntityParticleSystemVisualizer.
|
virtual |
Set whether the visualizer is enabled. If false, then this visualizer won't visualize anything. Default is true.
|
virtual |
Get whether the visualizer is enabled.
|
virtual |
The instance's type info.
Reimplemented from makVrv::DtEntityParticleSystemVisualizer.
|
static |
This class's type info.
|
protectedvirtual |
create the model agents for this visualizer
Reimplemented from makVrv::DtEntityParticleSystemVisualizer.
|
protectedvirtual |
deletes the model agents
Reimplemented from makVrv::DtEntityParticleSystemVisualizer.
|
protectedvirtual |
setup the model definition for the agents
Reimplemented from makVrv::DtEntityParticleSystemVisualizer.
|
protectedvirtual |
Set the velocity used to determine if the entity is moving or not. If the magnitude of the passed in velocity is 0, then the entity is considered to be not moving. This information is needed if the criteria for this visualizer considers entity movement.
|
protectedvirtual |
Set the relative velocity used to determine if the entity is moving or not. If the magnitude of the passed in velocity is 0, then the entity is considered to be not moving. This information is needed if the criteria for this visualizer considers entity movement. The entity must be embarked for this function to be used - if the entity is not embarked, this function does nothing.
|
protectedvirtual |
Slot function for DtEntityStateListener::signal_parentSet. Updates whether velocity or relative velocity is used when determining if the entity is moving. If embarked, then relative velocity is used. If not embarked, then the entity's local velocity is used. This information is needed if the criteria for this visualizer considers entity movement.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Whether or not the entity, that this particle system visualizer belongs to, is frozen.
Reimplemented from makVrv::DtEntityParticleSystemVisualizer.
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals Called by DtStateVisualizer::initialize()
Reimplemented from makVrv::DtEntityParticleSystemVisualizer.
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.
Reimplemented from makVrv::DtEntityParticleSystemVisualizer.
|
protectedvirtual |
Visible means that the model agent is created or destroyed when the model agent is destroyed all particles instantly disappear never to be seen again If the entity stops then the particle system is just stopped but the previously created particles stick around If the effect paused is set to true then it also just stops the particle system but leave previously created particles.
|
protectedvirtual |
Slot function for DtEntityStateListener::signal_wrmStateSet. handles changes to the wrm state from the DtEntityStateListener.
|
protected |
Flag indicating whether the particle system has been started or not.
|
protected |
Flag indicating whether the particle system has been frozen or not.
|
protected |
Flag indicating whether the visualizer is enabled or not. If not enabled, no particle systems are visualized.
|
protected |
Contains the criteria which must be met in order to visualize the particle system.
|
protected |
Flag indicating whether the entity is moving or not. Used for the DtVisualizationCriteria::myIsMovementRequired condition.
|
protected |
Flag indicating whether the state attribute matches the value we care about. Used for the DtVisualizationCriteria::myIsStateValueRequired condition.
|
protected |
The id for the state attribute whose value will be matched against. Used for the DtVisualizationCriteria::myIsStateValueRequired condition.
|
protected |
The value that will be matched against the state attribute's value. Used for the DtVisualizationCriteria::myIsStateValueRequired condition.