![]() |
VR-Forces Developer's Guide
|
Dt3DLineStateVisualizer objects are responsible for displaying 3D line objects.

Public Member Functions | |
| Dt3DLineStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~Dt3DLineStateVisualizer () |
| virtual void | setStartLocation (const DtVector &pos) |
| virtual void | setEndLocation (const DtVector &endpoint) |
| virtual void | setFlashing (bool flashing) |
| virtual void | setStyleSegments (const std::vector< double > &segmentPercentages) |
| virtual void | setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| virtual void | setSegmentLightningStyle (unsigned int segmentIndex, bool enableLightningStyle) |
| virtual void | setSegmentStartArrow (unsigned int segmentIndex, bool enableArrow) |
| virtual void | setSegmentEndArrow (unsigned int segmentIndex, bool enableArrow) |
| virtual void | setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern) |
| virtual void | setSegmentWidth (unsigned int segmentIndex, double width) |
| virtual void | setStopOnTerrainIntersection (bool enabled) |
| virtual void | setAttached (DtUniqueID id, int vtx, double percentage) |
| virtual void | setHostId (const std::string &id, int vtx, double percentage) |
| virtual void | setOffset (const DtVector32 &offset) |
| virtual void | setProjected (bool projected) |
| 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 | |
| Dt3DSegmentedLineModelAgent * | myLineModelAgent |
| DtAttachableUpdaterAgent * | myUpdaterAgent |
| DtVisibilityAdapter < Dt3DSegmentedLineModelAgent > * | myVisibilityAdapter |
| bool | myVertex0Attached |
| bool | myVertex1Attached |
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::Dt3DLineStateVisualizer::Dt3DLineStateVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
Destructor.
|
virtual |
Sets the start location (in database coordinates).
|
virtual |
Sets the end location (in database coordinates).
|
virtual |
Sets whether the line is flashing.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
|
virtual |
Sets the percentages of line segments.
|
virtual |
Sets the color of a particular segment.
|
virtual |
Sets the lightning style of a particular segment.
|
virtual |
Sets whether a particular segment has a start arrowhead.
|
virtual |
Sets whether a particular segment has an end arrowhead.
|
virtual |
Sets the stipple pattern of a particular segment.
|
virtual |
Set the line width of a segment.
|
virtual |
Set whether or not to stop drawing the line at the first terrain intersection.
|
virtual |
Attaches the cuboid to the unique ID specified.
| id | Unique ID of the object attached to, if 0, detaches |
| vtx | Vertex of the line (0 or 1) to attach |
| 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 |
Sets the offset (in body coordinates) of an attached line.
|
virtual |
Sets whether the line is projected above the terrain.
|
virtual |
The instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
This class's type info.
|
protectedvirtual |
Set the visuals visible or invisible. This maintains the state of the visual objects, and calling setVisible(false) should not be expected to provide any performance benefit.
Implements makVrv::DtRemoteGraphicVisualizerAttributes.
|
protectedvirtual |
Create the visual models, or do nothing if they already exist.
Implements makVrv::DtStateVisualizer.
|
protectedvirtual |
Destroy the visual models. This does not maintain their state; for example, calling setFlashing(true); destroyModelAgents(); createModelAgents(); will result in models with the default value of flashing, which is false.
Destroying models generally provides some performance benefit, as compared to calling setVisible(false).
Implements makVrv::DtStateVisualizer.
|
protectedvirtual |
Not implemented.
Implements makVrv::DtStateVisualizer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |