![]() |
VR-Forces 4.8 Class Documentation
|
Contains Dt2DLineFacade class. More...

Public Member Functions | |
| Dt2DLineFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet) | |
| Constructor that will take an existing scene object agent. More... | |
| Dt2DLineFacade (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true) | |
| Will create a new scene object agent for the given model set and element id. More... | |
| virtual | ~Dt2DLineFacade () |
| DTOR. More... | |
| virtual void | setSolid (bool) |
| Override to no-op as this is a 3D only concept. More... | |
| virtual void | setModelDefinition (const std::string &) |
| Sets the model definition for the model. More... | |
| virtual void | setLineWidth (int) |
| Sets the width of the outside line. Default is 2. More... | |
| virtual void | setStipplePattern (unsigned int) |
| Sets the pattern for the line portion of the line. More... | |
| virtual void | setVisible (bool) |
| Sets the object visible. More... | |
| virtual void | setPickable (bool) |
| Sets pickable or not. More... | |
| virtual void | setSegmentEndArrow (int seg, bool flag) |
| Sets arrow at end of segment. More... | |
| virtual void | setSegmentStartArrow (int seg, bool flag) |
| Sets arrow at start of segment. More... | |
| virtual void | setArrowSize (double) |
| Sets the size of the arrow (in pixels) More... | |
| virtual void | setArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle) |
| Sets the style of arrow to use. Applies to all segments. More... | |
| virtual void | setLineStyle (vrvTacticalGraphicUtilities::LineStyle s) |
| Sets the style of th line via the agent. More... | |
| virtual void | setFixedWidthSizing (bool) |
| For those lines that support it, whether or not the lines sizes when zooming to pixel space (fixed width) or to the database (non-fixed width). More... | |
| DtOverlaySegmentedLineModelAgent * | overlaySegmentedLineModelAgent () const |
| Model agent used by this class for line rendering. More... | |
| virtual void | updateColors () |
| send the current color based on the selected state down to the line model. More... | |
| virtual void | setGroup (int) |
| The higher the z order the "closer" to the eyepoint this element will be drawn. More... | |
Public Member Functions inherited from makVrv::DtLineFacadeBase | |
| DtLineFacadeBase (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet) | |
| Constructor that will take an existing scene object agent. More... | |
| DtLineFacadeBase (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true) | |
| Will create a new scene object agent for the given model set and element id. More... | |
| virtual | ~DtLineFacadeBase () |
| DTOR. More... | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets the color for the line. This will apply to all segments of the line. More... | |
| virtual void | setSelectedColor (float r, float g, float b, float a) |
| Sets the selected color for the line. When a line is selected then it will use this color instead. More... | |
| virtual bool | selected () |
| Gets the current seletion state for the facade. More... | |
| virtual void | setPoints (const std::vector< DtVector > &, const DtVector &withOffset=DtVector::zero()) |
| Sets the points for the area. More... | |
| virtual void | addPoint (int index, const DtVector &) |
| Adds a point to the line. Returns the index of the newly added point. More... | |
| virtual void | removePoint (int) |
| Removes a point from the line. More... | |
| virtual void | setOrigin (const DtVector &) |
| Sets the origin of the line. More... | |
| virtual const DtVector & | origin () const |
| virtual void | setPoint (int iIndex, const DtVector &) |
| Sets position in the line. More... | |
| virtual const std::vector < DtVector > & | points () const |
| Returns the points of the facade. More... | |
| virtual void | setScribed (bool) |
| Sets whether or not line is scribed. More... | |
| virtual bool | pickable () const |
| Returns whether or not item is pickable. More... | |
| virtual vrvTacticalGraphicUtilities::LineStyle | lineStyle () const |
| Returns the current line style. More... | |
| virtual void | setArrowHeadPlacement (vrvTacticalGraphicUtilities::ArrowHeadPlacement) |
| Sets how often the arrows should be displayed. More... | |
| virtual vrvTacticalGraphicUtilities::ArrowHeadPlacement | arrowHeadPlacement () const |
| Returns the current arrow head placement strategy. More... | |
| virtual vrvTacticalGraphicUtilities::ArrowStyle | arrowStyle () const |
| Returns the arrow style. More... | |
| virtual double | arrowSize () const |
| Returns the size of the arrow. More... | |
| virtual bool | fixedWidthSizing () const |
| Returns whether or not line is using fixed width sizing. More... | |
| virtual makVrv::DtUniqueID | uniqueId () const |
| Returns the unique id of the scene object agent. More... | |
| virtual makVrv::DtElementID | elementId () const |
| Returns the element id of the scene object agent. More... | |
| virtual int | modelSet () const |
| Returns the model set. More... | |
| virtual void | setSelected (bool selected) |
| Set the current selected state. Also calls updateColors() to update the model with the correct color. More... | |
| DtSceneObjectAgent * | sceneObjectAgent () const |
| Returns the scene object agent associated with this facade. More... | |
Protected Member Functions | |
| void | createLineAgent () |
| Creates the agent used to display the line. Called from constructor. More... | |
Protected Member Functions inherited from makVrv::DtLineFacadeBase | |
| virtual void | updateArrowFrequencyForSegment (int) |
| Updates the arrow segments given the current arrow segment frequency for the given segment. More... | |
Protected Attributes | |
| DtOverlaySegmentedLineModelAgent * | myLine |
| bool | mySolid |
Protected Attributes inherited from makVrv::DtLineFacadeBase | |
| DtAgentManagerInterface & | myAgentManagerInterface |
| DtSceneObjectAgent * | mySceneObjectAgent |
| bool | myOwnsSceneObjectAgent |
| float | myColor [4] |
| float | mySelectedColor [4] |
| int | myLineWidth |
| int | myModelSet |
| bool | mySelected |
| bool | myFixedWidthSizing |
| DtVector | myOrigin |
| std::vector< DtVector > | myControlPoints |
| vrvTacticalGraphicUtilities::ArrowStyle | myArrowStyle |
| vrvTacticalGraphicUtilities::ArrowHeadPlacement | myArrowHeadPlacement |
| vrvTacticalGraphicUtilities::LineStyle | myLineStyle |
| double | myArrowSize |
| bool | myPickable |
| bool | myVisible |
| makVrv::DtElementID | myElementId |
| bool | myScribed |
Contains Dt2DLineFacade class.
Facade interface for constructing 2D Line objects
| makVrv::Dt2DLineFacade::Dt2DLineFacade | ( | DtAgentManagerInterface & | , |
| DtSceneObjectAgent * | agent, | ||
| DtElementID | id, | ||
| int | modelSet | ||
| ) |
Constructor that will take an existing scene object agent.
| makVrv::Dt2DLineFacade::Dt2DLineFacade | ( | DtAgentManagerInterface & | , |
| int | modelSet, | ||
| DtElementID | id, | ||
| bool | distribute = true |
||
| ) |
Will create a new scene object agent for the given model set and element id.
|
virtual |
DTOR.
|
virtual |
Override to no-op as this is a 3D only concept.
Implements makVrv::DtLineFacadeBase.
|
virtual |
Sets the model definition for the model.
Implements makVrv::DtLineFacadeBase.
|
virtual |
Sets the width of the outside line. Default is 2.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
|
virtual |
Sets the pattern for the line portion of the line.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
|
virtual |
Sets the object visible.
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
|
virtual |
Sets pickable or not.
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
Sets arrow at end of segment.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
Sets arrow at start of segment.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
|
virtual |
Sets the size of the arrow (in pixels)
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
|
virtual |
Sets the style of arrow to use. Applies to all segments.
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
|
virtual |
Sets the style of th line via the agent.
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
|
virtual |
For those lines that support it, whether or not the lines sizes when zooming to pixel space (fixed width) or to the database (non-fixed width).
Default is fixed width. If changing modes, be sure to change the arrow size
Reimplemented from makVrv::DtLineFacadeBase.
| DtOverlaySegmentedLineModelAgent* makVrv::Dt2DLineFacade::overlaySegmentedLineModelAgent | ( | ) | const |
Model agent used by this class for line rendering.
|
virtual |
send the current color based on the selected state down to the line model.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt2DAirCorridorLineFacade.
|
virtual |
The higher the z order the "closer" to the eyepoint this element will be drawn.
Use this variable to stack overlay objects in the particular order you want them displayed
|
protected |
Creates the agent used to display the line. Called from constructor.
|
protected |
|
protected |