![]() |
VR-Forces 4.10 Class Documentation
|
Override environmental vertex visualizer to support points by force and color of object. More...

Public Member Functions | |
| DtVrfEnvironmentalVertexVisualizer (makVrv::DtBaseConnection &simulation, makVrv::DtStateListener &listener, int modelSet) | |
| Constructor. More... | |
| virtual | ~DtVrfEnvironmentalVertexVisualizer () |
| Destructor. More... | |
| virtual void | createModelAgents () |
| Creates the model agent. If already created, makes it visible. More... | |
| virtual void | setForceType (int) |
| Sets the entity's force id for track history colorization. More... | |
| virtual void | setColorVerticesByForce (bool) |
Public Member Functions inherited from makVrv::DtEnvironmentalVertexVisualizer | |
| DtEnvironmentalVertexVisualizer (DtBaseConnection &conn, DtStateListener &listener, int modelSet) | |
| Constructor. More... | |
| virtual | ~DtEnvironmentalVertexVisualizer () |
| DTOR. More... | |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &visDef) |
| Override to get the vertexVisualizerSet attribute. More... | |
| virtual void | setOrigin (const DtVector &position) |
| Call to scene object to set location. More... | |
| virtual void | addControlPoint (const DtVector &position, const DtUniqueID &elementID) |
| virtual void | insertControlPoint (int index, const DtVector &position) |
| virtual void | removeControlPoint (int index) |
| virtual void | moveControlPoint (int index, const DtVector &position) |
| virtual void | setControlPoints (const DtEnvironmentalStateListener::ControlPointsList &, const std::vector< DtUniqueID > &vertexElementIDs) |
| virtual void | setControlPoints (const DtEnvironmentalStateListener::ControlPointsList &) |
| Will only use this to move points that have currently been created. More... | |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setInfoText (DtUniqueID id, const DtUnicode &) |
| Sets information text for specified id or index. More... | |
| virtual void | setInfoText (int, const DtUnicode &) |
| virtual void | setSelected (DtUniqueID id, bool) |
| Sets selected either by unique id of child or index of child. More... | |
| virtual void | setSelected (int, bool) |
| virtual bool | selected (DtUniqueID id) const |
| Returns selected either by unique id of child or index of child. More... | |
| virtual bool | selected (int index) const |
| virtual void | setHeightAboveTerrainLineVisible (bool) |
| Sets HAT line visible either by id, index or for all points. More... | |
| virtual void | setHeightAboveTerrainLineVisible (DtUniqueID, bool) |
| virtual void | setHeightAboveTerrainLineVisible (int, bool) |
| virtual void | setShowInfoOnSelect (bool) |
| Sets info visible by select either by id, index or for all points. More... | |
| virtual void | setShowInfoOnSelect (DtUniqueID, bool) |
| virtual void | setShowInfoOnSelect (int, bool) |
| virtual void | setVertexHidden (DtUniqueID, bool) |
| Hides/shows child. More... | |
| virtual void | setVertexHidden (int, bool) |
| virtual SelectionState | pointSelected (DtUniqueID id) const |
| Returns true if point is selected by id or index. More... | |
| virtual SelectionState | pointSelected (int) const |
| virtual void | setIndicatorsEnabled (bool) |
| Sets indicators enabled/disabled for all points. More... | |
| virtual void | setWidgetEventsEnabled (bool) |
| Sets widget events enabled/disabled for all points. More... | |
| virtual void | setEnabled (bool enabled) |
| respond to change in tactical graphics display settings More... | |
| virtual void | setIndicatorModelDefinitions (const std::string &normalTheme, const std::string &activeTheme, const std::string &selectedTheme, const std::string &multiSelectedTheme) |
| Sets model definitions for all current and future points. More... | |
| virtual void | setUseHighestTerrainLod (DtEnvironmentalVisualizerSet *v, bool useHighest) |
| Set whether the line is to currently visible terrain LOD or to highest available terrain LOD. More... | |
| virtual void | setUseHighestTerrainLod (bool useHighest) |
| Apply to all visualizer sets in visualizer. More... | |
| virtual bool | useHighestTerrainLod () const |
| Get whether line is to currently visible terrain LOD or to highest available terrain LOD. More... | |
| int | numVertices () const |
| DtUniqueID | uniqueIdOf (int iIndex) const |
| int | indexOf (DtUniqueID sceneID) const |
| int | indexOfElementID (DtUniqueID elementID) const |
| virtual void | setHatLinesEnabled (bool) |
| Tells the visualizer if HAT lines are enabled. More... | |
| virtual void | setHatLinesOnSelectionOnly (bool) |
| Tells the visualizer if HAT lines are visible on selected vertices only. More... | |
| virtual DtUniqueID | uniqueID () const |
| Return unique id of mySceneObjectAgent, if it exists, else returns 0;. More... | |
| virtual void | setSelected (bool) |
| Sets selected state. More... | |
| virtual void | setPickable (bool) |
| Sets pickable state. More... | |
| DtEnvironmentalStateListener & | environmentalStateListener () |
| const PointList & | controlPoints () const |
| const ElementIDList & | vertexElementIDs () const |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| The instance's type info. More... | |
| virtual void | setOwner (DtSceneObjectAgent *) |
| The owner agent of this vertex visualizer set. More... | |
| virtual void | setAttached (DtUniqueID) |
| Sets this object to be attached to the specified object. More... | |
Public Member Functions inherited from makVrv::DtSceneObjectVisualizer | |
| DtSceneObjectVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet) | |
| virtual | ~DtSceneObjectVisualizer () |
| virtual DtSceneObjectAgent * | sceneObjectAgent () |
| virtual void | setParent (DtStateVisualizer *p) |
| Override of base class setParent to simply set the parent without destroying/recreating model agents. More... | |
| virtual void | setModelDefinitionForAgents () |
| Sets model definition for all the agents that this visualizer might be using. More... | |
| virtual void | setSceneObjectAgent (DtSceneObjectAgent *) |
| virtual void | setElementID (const DtElementID &elementID) |
| DtElementID | elementID () const |
| virtual bool | show (int) |
| Override to show/hide scene object agent (if it exists) More... | |
| virtual bool | hide (int) |
| Will call destroyModelAgents(), if, when the context is added, it is the first context in the list. More... | |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet) | |
| CTOR. More... | |
| virtual | ~DtStateVisualizer () |
| DTOR. More... | |
| virtual DtObserverMode::ModelSets | modelSet () |
| Return the visualizer's model set enum. More... | |
| virtual const DtStateVisualizer * | parent () const |
| Get a const pointer to the parent visualizer of this visualizer. More... | |
| void | setModelDefinition (const std::string &definition) |
| Sets the model definition and creates agent(s) based on that definition. More... | |
| const std::string & | modelDefinition () const |
| Gets the current model definition. More... | |
| virtual void | implementVisibility (bool visible) |
| Wrap some of the show/hide functionality so that it can be overloaded (ex. More... | |
| virtual bool | setVisible (bool visible, int context) |
| Returns true if this context wants to show or hide the item. More... | |
| virtual void | initialize () |
| Initialize the visualizer. More... | |
| virtual bool | isVisible () const |
| Returns true if visible. More... | |
| virtual void | setHasMouseCursor (bool) |
| Sets the mouse hover state. More... | |
| virtual bool | hasMouseCursor () const |
| virtual bool | selected () const |
| void | setName (const std::string &) |
| Internal name of state visualizer. More... | |
| const std::string & | name () const |
| 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. More... | |
| DtStateListener & | listener () |
| DtBaseConnection & | simulation () |
| Get the connection for this visualizer. More... | |
| void | setDistribute (bool b) |
| Whether or not to distribute over the network. More... | |
| bool | distribute () const |
Protected Member Functions | |
| virtual void | updateColor () |
Protected Member Functions inherited from makVrv::DtEnvironmentalVertexVisualizer | |
| virtual void | slot_listenerLocationSet (const DtVector &) |
| virtual void | slot_listenerControlPointLocationSet (int index, const DtVector &) |
| virtual void | setControlPoints () |
| virtual void | resetSpatial () |
| virtual void | destroyModelAgents () |
| Model agent is only destroyed in destructor. More... | |
| virtual bool | setVertexVisible (bool, DtShowHideContext::ShowHideContext) |
| virtual void | setOriginAndOffset (DtEnvironmentalVisualizerSet *, const DtVector &, const DtVector &) |
| virtual void | setColor (DtEnvironmentalVisualizerSet *, float r, float g, float b, float a) |
| virtual void | setIndicatorsEnabled (DtEnvironmentalVisualizerSet *, bool) |
| virtual void | setInfoText (DtEnvironmentalVisualizerSet *, const DtUnicode &) |
| virtual void | setMultiSelected (DtEnvironmentalVisualizerSet *, bool) |
| virtual void | setHatLineVisible (DtEnvironmentalVisualizerSet *, bool) |
| virtual void | setShowInfoPopupOnSelect (DtEnvironmentalVisualizerSet *, bool) |
| virtual void | setWidgetEventsEnabled (DtEnvironmentalVisualizerSet *, bool) |
| virtual void | setGroundClamp (DtEnvironmentalVisualizerSet *, bool) |
| virtual void | setIndicatorModelDefinitions (DtEnvironmentalVisualizerSet *, const std::string &normalTheme, const std::string &activeTheme, const std::string &selectedTheme, const std::string &multiSelectedTheme) |
| virtual void | updateHatLines () |
| virtual void | updateHatLine (int index) |
| virtual void | updateHatLine (DtUniqueID id) |
| virtual DtEnvironmentalVisualizerSet * | createAndInitializePointVisualizer (const DtUniqueID &vertexElementId, int index) |
| virtual void | slot_mouseDown (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName, DtStateVisualizer *v) |
| virtual bool | pointIsDifferent (const DtVector &newPos, const DtVector &lastPos) const |
| virtual void | slot_mouseUp (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName, DtStateVisualizer *v) |
| virtual void | slot_mouseDblClick (DtMouseState &mouseState, const DtUniqueID &id, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName, DtStateVisualizer *v) |
| virtual void | startAttached () |
| Starts the process of attachment by creating updater for attachment. More... | |
| virtual void | endAttached () |
| Ends the attachment process. More... | |
| virtual DtVector | offsetAtPosition (const DtVector &origin) const |
| Given the origin and the point offset, return an offset that is valid at the given position. More... | |
| virtual void | setGroundClamp (bool) |
| Sets whether or not to ground clamp points (default is false) More... | |
Protected Member Functions inherited from makVrv::DtSceneObjectVisualizer | |
| virtual DtSceneObjectAgent * | createObjectAgent () |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | slot_mouseDown (DtMouseState &mouseState, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| Called when the mouse is clicked in this visualizer. More... | |
| virtual void | slot_mouseUp (DtMouseState &mouseState, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| virtual void | slot_mouseDblClick (DtMouseState &mouseState, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName) |
| virtual bool | supportsShowHideContext (int) const |
| Default returns true. More... | |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
| Connect a signal and update the entity. More... | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtEnvironmentalVertexVisualizer | |
| enum | SelectionState { NotSelected, Selected, MultiSelected } |
| typedef std::vector< DtElementID > | ElementIDList |
| typedef std::vector< DtVector > | PointList |
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... | |
Static Public Member Functions inherited from makVrv::DtEnvironmentalVertexVisualizer | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
| This class's type info. More... | |
Public Attributes inherited from makVrv::DtStateVisualizer | |
| boost::signalslib::signal < void(DtStateVisualizer *, DtStateVisualizer *, DtStateVisualizer *)> | signal_reparented |
| Signaled when the parent of this item changes, called before destroying any model agents. More... | |
| boost::signalslib::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. More... | |
| boost::signalslib::signal < void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseUp |
| boost::signalslib::signal < void(DtMouseState &, const DtUniqueID &, const std::string &, const std::string &, const std::string &, DtStateVisualizer *)> | signal_mouseDblClick |
Protected Types inherited from makVrv::DtEnvironmentalVertexVisualizer | |
| typedef std::vector < DtEnvironmentalVisualizerSet * > | VertexList |
| typedef std::map< DtUniqueID, int > | DtIndexMap |
| typedef std::vector < SelectionState > | SelectedList |
Override environmental vertex visualizer to support points by force and color of object.
| makVrf::DtVrfEnvironmentalVertexVisualizer::DtVrfEnvironmentalVertexVisualizer | ( | makVrv::DtBaseConnection & | simulation, |
| makVrv::DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Creates the model agent. If already created, makes it visible.
Reimplemented from makVrv::DtEnvironmentalVertexVisualizer.
|
virtual |
Sets the entity's force id for track history colorization.
|
virtual |
|
protectedvirtual |
|
protected |
|
protected |