![]() |
VR-Forces Developer's Guide
|
The DtIntervisibilityVertexVisualizer will show at most two points – the start and end point of the intervisibility line. This can also be configure to only show a start or end point.

Classes | |
| struct | VertexInformation |
Public Member Functions | |
| DtIntervisibilityVertexVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtIntervisibilityVertexVisualizer () |
| DtIntervisibilityStateListener & | intervisibilityStateListener () |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setStartPoint (const DtVector &vec) |
| virtual void | setEndPoint (const DtVector &vec) |
| virtual void | setStartAttachPoint (DtElementID elementId) |
| virtual void | setStartPointOffset (const DtVector &vec) |
| virtual void | setEndAttachPoint (DtElementID elementId) |
| virtual void | setEndPointOffset (const DtVector &vec) |
| virtual void | setSelected (int index, bool isSelected) |
| virtual void | slot_setSelected (bool) override |
| virtual void | setFixedDistanceMode (bool isFixedDistMode) |
| virtual int | indexOfVertex (DtUniqueID id) const |
| 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 () |
| 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 | isVisible () const |
| virtual bool | setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context) |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual void | createStartPoint () |
| virtual void | createEndPoint () |
| virtual void | createModelAgents () |
| virtual void | destroyModelAgents () |
| virtual DtUniqueID | elementIdToSceneId (DtElementID elementId) const |
| virtual DtEnvironmentalVisualizerSet * | createVertexVisualizer (VertexInformation &vertexInfo) |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | setColor (DtEnvironmentalVisualizerSet &, float, float, float, float) |
| virtual void | setIndicatorsEnabled (DtEnvironmentalVisualizerSet &, bool) |
| virtual void | setWidgetEventsEnabled (DtEnvironmentalVisualizerSet &, bool) |
| virtual void | setHatLineVisible (DtEnvironmentalVisualizerSet &, bool) |
| virtual void | updateHatLine (DtEnvironmentalVisualizerSet &visSet) |
| virtual void | setIndicatorModelDefinitions (DtEnvironmentalVisualizerSet &v, const std::string &normalTheme, const std::string &activeTheme, const std::string &selectedTheme, const std::string &multiSelectedTheme) |
| virtual void | setEditing (bool isEditing) |
| void | setTacticalGraphicsIndicatorsEnabled (bool isEnabled) |
| void | setHatLinesEnabled (bool isEnabled) |
| void | setHatLinesOnSelectionOnly (bool isSelectedOnly) |
| virtual void | setupFixedDistanceForEndVertex () |
| virtual void | setupUpdaterForEndVertex () |
| virtual DtVector | endPoint () const |
| virtual DtVector | startPoint () const |
| DtUnicode | formatLocationString (const DtCoordinateSystem &coordSys, const std::vector< std::string > &locs) |
| virtual void | slot_vertexHasMouseCursor (const DtElementID &vertexElementId, bool hasMouseCursor) |
| virtual void | setModelDefinitionForAgents () override |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | connectToListenerSignals () |
| virtual void | makeVisible () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Protected Attributes | |
| DtIntervisibilityStateListener * | myIntervisibilityListener |
| DtUnicode | myVertexElementDefinition |
| VertexInformation | myStartPoint |
| VertexInformation | myEndPoint |
| bool | myIndicatorsEnabled |
| bool | myWidgetEventsEnabled |
| bool | myShowInfoOnSelect |
| bool | myHatLinesOnSelectionOnly |
| bool | myHatLinesEnabled |
| bool | myFixedDistanceMode |
| bool | myEditingFlag |
| bool | myShowStart |
| bool | myShowEnd |
| DtIntervisibilityVertexTicker * | myTicker |
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 |
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::DtIntervisibilityVertexVisualizer::DtIntervisibilityVertexVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
inline |
|
virtual |
Sets color of start/end vertices.
|
virtual |
Sets the start for of the first vertex. Will delete any updaters if they exist for the start point.
|
virtual |
Sets the end point. Will delete any updaters if they exist for the end point.
|
virtual |
Will set the start attach point. Converts to scene id for current model set.
|
virtual |
Sets the offset from the attached start point.
|
virtual |
Will set the end attach point. Converts to scene id for current model set.
|
virtual |
Sets the offset from the attached end point.
|
virtual |
Sets start point selected if index is 0 or end point if 1.
|
overridevirtual |
Sets start and end point selected. Connected to DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Sets whether or not the end point is fixed distance from start mode.
|
virtual |
Returns 0 if id is start point, 1 if end and -1 if neither.
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
This class's type info.
|
protectedvirtual |
|
protectedvirtual |
|
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 |
|
protectedvirtual |
Creates a new visualizer.
Reimplemented in makVrf::DtVrfGuiIntervisibilityVertexVisualizer.
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.
Reimplemented from makVrv::DtStateVisualizer.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Sets tactical graphic indicators enabled.
|
protected |
Sets height above terrain lines enabled.
|
protected |
Set to show height above terrain lines only when the object is selected.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Returns end point, looking up object if attached to get position. Returns in local coordinates.
|
protectedvirtual |
Returns start point, looking up object if attached to get position. Returns in local coordinates.
|
protected |
|
protectedvirtual |
Pass has mouse cursor to indicator visualizers.
|
overrideprotectedvirtual |
Override base class pure virtual No-op.
Implements makVrv::DtStateVisualizer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
A tick-able object to update this object on a regular basis.