![]() |
VR-Forces Developer's Guide
|
DtCuboidStateVisualizer objects are responsible for displaying cuboid object.

Public Member Functions | |
| DtCuboidStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtCuboidStateVisualizer () |
| virtual void | setDimensions (const DtVector &dim) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setFlashing (bool flashing) |
| virtual void | setPosition (const DtVector &pos) |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| virtual void | setAttached (DtUniqueID id, int vtx, double percentage) |
| virtual void | setHostId (const std::string &id, int vtx, double percentage) |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet) | |
| virtual | ~DtStateVisualizer () |
| virtual DtModelSetId | modelSet () |
| virtual void | setSceneObjectAgent (DtSceneObjectAgent *sceneObject) |
| void | setModelDefinition (const std::string &definition) |
| const std::string & | modelDefinition () const |
| virtual void | implementVisibility (bool visible) |
| virtual void | initialize () |
| virtual void | slot_setSelected (bool b) |
| void | setName (const std::string &) |
| const std::string & | name () const |
| virtual void | setPickable (bool) |
| virtual bool | pickable () const |
| virtual DtUniqueID | sceneObjectID () const |
| int | visualizerType () const |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &) |
| DtStateListener & | listener () |
| const DtStateListener & | listener () const |
| DtBaseConnection & | simulation () |
| void | setDistribute (bool b) |
| bool | distribute () const |
| virtual bool | setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context) |
Public Member Functions inherited from makVrv::DtRemoteGraphicVisualizerAttributes | |
| DtRemoteGraphicVisualizerAttributes () | |
| virtual | ~DtRemoteGraphicVisualizerAttributes () |
| virtual void | setActive (bool active) |
| virtual void | setLayerName (const std::string &layerName) |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual void | setVisible (bool yesNo) |
| virtual void | createModelAgents () |
| virtual void | destroyModelAgents () |
| virtual void | setModelDefinitionForAgents () |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | connectToListenerSignals () |
| virtual void | makeVisible () |
| virtual bool | isVisible () const |
| virtual void | setInitialValuesFromVisualizerDefinition () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Protected Attributes | |
| DtAttachableCuboidModelAgent * | myCuboidModelAgent |
| DtAttachableUpdaterAgent * | myAttachedUpdaterAgent |
| DtVisibilityAdapter < DtAttachableCuboidModelAgent > * | myVisibilityAdapter |
Protected Attributes inherited from makVrv::DtStateVisualizer | |
| DtBaseConnection & | mySimulation |
| DtStateListener & | myListener |
| bool | myDistributeFlag |
| DtUniqueID | mySceneObjectID |
| std::string | myName |
| std::string | myModelDefinition |
| DtSignalConnectionManager | myConnections |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myPickable |
| bool | myVisible |
| const DtVisualizerDefinition * | myVisualizerDefinition |
| DtSceneObjectAgent * | mySceneObjectAgent |
| bool | myInitialInitializeDone |
| ShowHideContextVector | myVisualizerShowHideContexts |
Protected Attributes inherited from makVrv::DtRemoteGraphicVisualizerAttributes | |
| bool | myActive |
| bool | myFlashing |
| std::vector< std::string > | myLayers |
| std::string | myLayerName |
| bool | myRemoteGraphicsEnabled |
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::DtCuboidStateVisualizer::DtCuboidStateVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
Destructor.
|
virtual |
Sets the dimensions of the cuboid.
|
virtual |
Sets the color of the cuboid.
|
virtual |
Sets whether the cuboid is flashing.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
|
virtual |
Sets the position of the cuboid in database coordinates, or body coordinates (if attached)
|
virtual |
Sets the orientation of the cuboid in database coordinates.
|
virtual |
Attaches the cuboid to the unique ID specified.
| id | Unique ID of the object attached to, if 0, detaches |
| vtx | ignored |
| percentage | Specifies the percentage between 2 vertices if attached to a line or cylinder |
|
virtual |
Sets the host ID attached to. Overridden by child classes.
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
This class's type info.
|
protectedvirtual |
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
|
protectedvirtual |
Override to create model agents that will be used to display data from the listener.
Implements makVrv::DtStateVisualizer.
|
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. Called by initialize.
Implements makVrv::DtStateVisualizer.
|
protected |
|
protected |
|
protected |