![]() |
VR-Forces 5.0.2 Developer's Guide
|
DtIntervisibilityLineVisualizer display an intervisibility line drawn as geometry in the scene.

Protected Member Functions | |
| virtual void | createModelAgents () |
| virtual void | destroyModelAgents () |
| virtual void | setModelDefinitionForAgents () |
| virtual void | resetSpatial () |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | setFixedDistance (bool b) |
| virtual void | createCircle ()=0 |
| virtual void | selectCircle (bool)=0 |
Protected Member Functions inherited from makVrv::DtSceneObjectVisualizer | |
| virtual DtSceneObjectAgent * | createObjectAgent () |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | connectToListenerSignals () |
| 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) |
Protected Attributes | |
| DtMultiLineModelAgent * | myMultiLineModelAgent |
| DtIntervisibilityFanStateListener & | myFanListener |
| DtAttachableFanUpdaterAgent * | myAttachableUpdaterAgent |
| DtVector | myStartPointOffsetFromCenter |
Protected Attributes inherited from makVrv::DtSceneObjectVisualizer | |
| DtElementID | myElementID |
| bool | myOwnsSceneObjectAgent |
Protected Attributes inherited from makVrv::DtStateVisualizer | |
| DtBaseConnection & | mySimulation |
| DtStateListener & | myListener |
| bool | myDistributeFlag |
| DtUniqueID | mySceneObjectID |
| std::string | myName |
| std::string | myModelDefinition |
| DtSignalConnectionManager | myConnections |
| int | myModelSet |
| int | myVisualizerType |
| bool | myPickable |
| bool | myVisible |
| const DtVisualizerDefinition * | myVisualizerDefinition |
| DtStateVisualizer * | myParent |
| 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 } |
Public Attributes inherited from makVrv::DtStateVisualizer | |
| boost::signalslib::signal < void(DtStateVisualizer *, DtStateVisualizer *, DtStateVisualizer *)> | signal_reparented |
Protected Types inherited from makVrv::DtStateVisualizer | |
| typedef std::vector < DtVisualizerShowHideContext::VisualizerShowHideContext > | ShowHideContextVector |
| makVrv::DtIntervisibilityFanVisualizer::DtIntervisibilityFanVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| int | modelSet | ||
| ) |
Constructor.
| makVrv::DtIntervisibilityFanVisualizer::DtIntervisibilityFanVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| int | modelSet | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Sets the color for the visible portion of the line (default is green)
Reimplemented in makVrf::DtIntervisibilitySensorFanVisualizer.
| void makVrv::DtIntervisibilityFanVisualizer::visibleColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
|
virtual |
Sets the color for the blocked portion of the line (default is red)
Reimplemented in makVrf::DtIntervisibilitySensorFanVisualizer.
| void makVrv::DtIntervisibilityFanVisualizer::blockedColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
|
pure virtual |
Sets the color for the circle portion of the fan (default is blue)
Implemented in makVrf::Dt2DIntervisibilitySensorFanVisualizer, makVrf::Dt3DIntervisibilitySensorFanVisualizer, makVrv::Dt2DIntervisibilityFanVisualizer, and makVrv::Dt3DIntervisibilityFanVisualizer.
|
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.
|
overridevirtual |
Sets whether or not the fan is selected. Connected to DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrf::DtIntervisibilitySensorFanVisualizer.
|
virtual |
Sets the fan mode fampling rate (in radians)
|
virtual |
Sets the start offset from the center. For display only, not calculation. Useful in 2D mode when wanting to have points on top of the lines.
|
protectedvirtual |
Creates the model agent. If already created, makes it visible.
Reimplemented from makVrv::DtSceneObjectVisualizer.
Reimplemented in makVrf::Dt2DIntervisibilitySensorFanVisualizer, makVrf::Dt3DIntervisibilitySensorFanVisualizer, makVrv::Dt2DIntervisibilityFanVisualizer, and makVrf::DtIntervisibilitySensorFanVisualizer.
|
protectedvirtual |
Model agent is only destroyed in destructor. Here, it will be hidden (if it has been created)
Reimplemented from makVrv::DtSceneObjectVisualizer.
Reimplemented in makVrf::Dt2DIntervisibilitySensorFanVisualizer, makVrf::Dt3DIntervisibilitySensorFanVisualizer, makVrv::Dt2DIntervisibilityFanVisualizer, and makVrv::Dt3DIntervisibilityFanVisualizer.
|
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.
Reimplemented from makVrv::DtSceneObjectVisualizer.
|
protectedvirtual |
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize. Get the start point offset (if set) from the definition.
Reimplemented from makVrv::DtStateVisualizer.
|
protectedvirtual |
|
protectedpure virtual |
Creates the circle used for the outline.
Implemented in makVrf::Dt2DIntervisibilitySensorFanVisualizer, makVrf::Dt3DIntervisibilitySensorFanVisualizer, makVrv::Dt2DIntervisibilityFanVisualizer, and makVrv::Dt3DIntervisibilityFanVisualizer.
|
protectedpure virtual |
Selects the circle.
Implemented in makVrf::Dt2DIntervisibilitySensorFanVisualizer, makVrf::Dt3DIntervisibilitySensorFanVisualizer, makVrv::Dt2DIntervisibilityFanVisualizer, and makVrv::Dt3DIntervisibilityFanVisualizer.
|
protected |
|
protected |
|
protected |
|
protected |