![]() |
VR-Forces 4.6.1 Class Documentation
|
State visualizer for entities with articulated models. More...

Public Member Functions | |
| DtEntityArticulatedStateModelVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtEntityArticulatedStateModelVisualizer () |
| DTOR. | |
| virtual void | setAutoSendMovingState (bool) |
| Set to false to not automatically set moving state. | |
| bool | autoSendMovingState () const |
| virtual void | setState (int stateNumber, int stateValue) |
| Sets the state of the articulated model. | |
| virtual void | setMarkingDecal (const std::string &linkageName, const std::string &configName) |
| Sets the marking decal of the articulated model. | |
| virtual void | setDynamicRegion (const std::string ®ionName, int stateValue) |
| Sets the state of an active region on a sensorized model. | |
| virtual void | weaponFired (const DtUnicode &munitionModelDefName) |
| Tell the model that it fired a weapon. | |
| virtual void | addMovingDynamicRegion (const std::string ®ionName) |
| Specify an active region that should be activated/deactivated when moving. | |
| virtual const std::list < std::string > & | movingDynamicRegions () const |
| Get the list of dynamic regions to use when moving. | |
| virtual void | addPowerPlantDynamicRegion (const std::string ®ionName) |
| Specify an active region that should be activated/deactivated with the power plant state. | |
| virtual const std::list < std::string > & | powerPlantDynamicRegions () const |
| Get the list of dynamic regions to control with powerPlant status. | |
| virtual void | addWeaponFireDynamicRegion (const std::string ®ionName) |
| Specify an active region that should be activated/deactivated when a weapon fires. | |
| virtual const std::list < std::string > & | weaponFireDynamicRegions () const |
| Get the list of dynamic regions to control with weapon fire. | |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &visDef) |
| process the visual definition record | |
| virtual void | setColorizedColor (float r, float g, float b, float alpha) |
| Set the color of the model. | |
| virtual void | setDisableModelScaling (bool b) |
| Set whether model scaling is disabled (false by default) | |
| virtual void | setLocalModelScalingEnabled (bool enabled) |
| Set whether local model scaling is enabled ( false by default ) | |
| virtual void | setLocalModelScalingAmount (float localScl) |
| Set the amount of local scaling to apply ( when enabled ). | |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| The instance's type info. | |
Public Member Functions inherited from makVrv::DtEntityStateVisualizer | |
| DtEntityStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtEntityStateVisualizer () |
| DTOR. | |
| DtEntityStateListener & | entityStateListener () |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. | |
| virtual | ~DtStateVisualizer () |
| DTOR. | |
| virtual void | setParent (DtStateVisualizer *) |
| Override to set the parent of this visualizer. | |
| void | setModelDefinition (const std::string &definition) |
| Sets the model definition and creates agent(s) based on that definition. | |
| const std::string & | modelDefinition () const |
| Gets the current model definition. | |
| virtual bool | setVisible (bool visible, int context) |
| Returns true if this context wants to show or hide the item. | |
| virtual void | initialize () |
| Initialize the visualizer. | |
| virtual bool | isVisible () const |
| Returns true if visible. | |
| virtual void | setSelected (bool) |
| Sets selected state. | |
| virtual bool | selected () const |
| void | setName (const std::string &) |
| Internal name of state visualizer. | |
| const std::string & | name () const |
| virtual void | setPickable (bool) |
| Sets pickable state. | |
| virtual bool | pickable () const |
| virtual void | setUniqueID (DtUniqueID id) |
| DtUniqueID | uniqueID () const |
| int | visualizerType () const |
| void | setShowHideContext (const std::vector< int > &s) |
| Set show/hide context without changing visibility of item. | |
| DtStateListener & | listener () |
| DtBaseConnection & | simulation () |
| Get the connection for this visualizer. | |
| void | setDistribute (bool b) |
| Whether or not to distribute over the network. | |
| bool | distribute () const |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
| This class's type info. | |
Protected Member Functions | |
| virtual void | createModelAgents () |
| Override to create model agents that will be used to display data from the listener. | |
| virtual void | destroyModelAgents () |
| Destroys all currently created definitions. | |
| virtual void | setModelDefinitionForAgents () |
| Sets model definition for all the agents that this visualizer might be using. | |
| virtual void | updateColorBlending () |
| virtual void | setPartTranslation (int partNumber, const DtVector &transform, const DtVector &velocity) |
| Update the part translation. | |
| virtual void | setPartOrientation (int partNumber, const DtTaitBryan &orientation, const DtVector &rotationalVelocity) |
| Rotate the part. | |
| virtual void | setVelocity (const DtVector32 &v) |
| Checks to see whether or not to set moving bit. | |
| virtual void | processModelDefinition (const DtModelDefinition *definition) |
| virtual void | discoverDynamicRegions (const DtModelDefinition *definition) |
| search the model definition for moving and powerPlant dynamic regions | |
| void | updateMoving (bool moving) |
| virtual void | setRelativeVelocity (const DtVector32 &v) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtStateVisualizer | |
| enum | Type { AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType, AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000 } |
| Visualizer class types that are supportable via visualizers. More... | |
Public Attributes inherited from makVrv::DtStateVisualizer | |
| boost::signal< void(DtStateVisualizer *, DtStateVisualizer *, DtStateVisualizer *)> | signal_reparented |
| Signaled when the parent of this item changes, called before destroying any model agents. | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseDown |
| Emitted when the entity's indicator is clicked. | |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseUp |
| boost::signal< void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseDblClick |
State visualizer for entities with articulated models.
| makVrv::DtEntityArticulatedStateModelVisualizer::DtEntityArticulatedStateModelVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set to false to not automatically set moving state.
|
inline |
|
virtual |
Sets the state of the articulated model.
Reimplemented from makVrv::DtEntityStateVisualizer.
Reimplemented in makVrf::VRF_PROTOCOL_NAMESPACE::DtVrlinkAggregateArticulatedStateModelVisualizer, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityArticulatedStateModelVisualizer.
|
virtual |
Sets the marking decal of the articulated model.
See DtOsgArticulatedModel::setLinkageConfigPair() for additional information.
|
virtual |
Sets the state of an active region on a sensorized model.
|
virtual |
Tell the model that it fired a weapon.
|
virtual |
Specify an active region that should be activated/deactivated when moving.
Multiple regions are supported.
|
virtual |
Get the list of dynamic regions to use when moving.
|
virtual |
Specify an active region that should be activated/deactivated with the power plant state.
Multiple regions are supported.
|
virtual |
Get the list of dynamic regions to control with powerPlant status.
|
virtual |
Specify an active region that should be activated/deactivated when a weapon fires.
Multiple regions are supported.
|
virtual |
Get the list of dynamic regions to control with weapon fire.
|
virtual |
process the visual definition record
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Set the color of the model.
|
virtual |
Set whether model scaling is disabled (false by default)
|
virtual |
Set whether local model scaling is enabled ( false by default )
|
virtual |
Set the amount of local scaling to apply ( when enabled ).
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrf::VRF_PROTOCOL_NAMESPACE::DtVrlinkAggregateArticulatedStateModelVisualizer, and makVrf::DtAggregateArticulatedStateModelVisualizer.
|
static |
This class's type info.
Reimplemented in makVrf::VRF_PROTOCOL_NAMESPACE::DtVrlinkAggregateArticulatedStateModelVisualizer, and makVrf::DtAggregateArticulatedStateModelVisualizer.
|
protectedvirtual |
Override to create model agents that will be used to display data from the listener.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfVrlinkEntityArticulatedStateModelVisualizer, makVrf::VRF_PROTOCOL_NAMESPACE::DtVrlinkAggregateArticulatedStateModelVisualizer, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityArticulatedStateModelVisualizer, and makVrf::DtVrfEntityArticulatedStateModelVisualizer.
|
protectedvirtual |
Destroys all currently created definitions.
Implements makVrv::DtStateVisualizer.
|
protectedvirtual |
Sets model definition for all the agents that this visualizer might be using.
If model agents are not created, should create them. Should not call this directly, but rather call setModelDefinition
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrf::VRF_PROTOCOL_NAMESPACE::DtVrlinkAggregateArticulatedStateModelVisualizer, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityArticulatedStateModelVisualizer.
|
protectedvirtual |
|
protectedvirtual |
Update the part translation.
|
protectedvirtual |
Rotate the part.
|
protectedvirtual |
Checks to see whether or not to set moving bit.
|
protectedvirtual |
|
protectedvirtual |
search the model definition for moving and powerPlant dynamic regions
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |