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

Public Member Functions | |
| Dt3DLineFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet) | |
| Constructor that will take an existing scene object agent. More... | |
| Dt3DLineFacade (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 | ~Dt3DLineFacade () |
| DTOR. More... | |
| virtual void | setSolid (bool) |
| Sets the line solid (true) or outlined (false). Default is true. 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 | setOcclusionEnabled (bool) |
| Sets whether or not line is occluded. Default is true. 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 end 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... | |
| virtual void | setScribed (bool) |
| Sets whether or not line is scribed. More... | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets the current color of the line. Calls updateColors to pass down the new color to the model. More... | |
| virtual void | setSelectedColor (float r, float g, float b, float a) |
| Sets the current selected color of the line. Calls updateColors to pass down the new color to the model. More... | |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| Sets the color of the scribe. By default it is the same as the color. More... | |
| virtual void | setSelectedScribeColor (float r, float g, float b, float a) |
| Sets the selected color of the scribe. By default it is white. More... | |
| virtual void | updateColors () |
| send the colors down to the line model. Called when the object is selected or any of the colors change. More... | |
| virtual void | setScribeWidth (float width) |
| Sets the width of the scribe line in pixel space. More... | |
| DtExtrudedLineModelAgent * | extrudedLineModelAgent () const |
| Line model agent used by this class. More... | |
| virtual void | setUpExtent (float) |
| virtual float | upExtent () const |
| virtual void | setDownExtent (float) |
| virtual float | downExtent () const |
| virtual void | setLeftExtent (float) |
| virtual float | leftExtent () const |
| virtual void | setRightExtent (float) |
| virtual float | rightExtent () const |
| virtual void | setDimensions (float w, float h) |
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 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 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 line agent. 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 | |
| DtExtrudedLineModelAgent * | myLine |
| float | myUpExtent |
| float | myDownExtent |
| float | myRightExtent |
| float | myLeftExtent |
| bool | myScribeColorSet |
| bool | mySelectedColorSet |
| float | myScribeWidth |
| float | myScribedColor [4] |
| float | mySelectedScribedColor [4] |
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 Dt3DLineFacade class.
Facade interface for constructing 3D line objects
| makVrv::Dt3DLineFacade::Dt3DLineFacade | ( | DtAgentManagerInterface & | , |
| DtSceneObjectAgent * | agent, | ||
| DtElementID | id, | ||
| int | modelSet | ||
| ) |
Constructor that will take an existing scene object agent.
| makVrv::Dt3DLineFacade::Dt3DLineFacade | ( | 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 |
Sets the line solid (true) or outlined (false). Default is true.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
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::Dt3DAirCorridorLineFacade.
|
virtual |
Sets the pattern for the line portion of the line.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
virtual |
Sets whether or not line is occluded. Default is true.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
virtual |
Sets the object visible.
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
virtual |
Sets pickable or not.
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
Sets arrow at end of segment.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
Sets arrow at end of segment.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
virtual |
Sets the size of the arrow (in pixels)
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
virtual |
Sets the style of arrow to use. Applies to all segments.
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
virtual |
Sets the style of th line via the agent.
Reimplemented from makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
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.
|
virtual |
Sets whether or not line is scribed.
You will need to scribe a line if you want the edges of the line to appear separate from the body of the object. If you do not scribe the object the edges will be difficult to differentiate from the rest of the model
Reimplemented from makVrv::DtLineFacadeBase.
|
virtual |
Sets the current color of the line. Calls updateColors to pass down the new color to the model.
Reimplemented from makVrv::DtLineFacadeBase.
|
virtual |
Sets the current selected color of the line. Calls updateColors to pass down the new color to the model.
Reimplemented from makVrv::DtLineFacadeBase.
|
virtual |
Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets the color of the scribe. By default it is the same as the color.
|
virtual |
Sets the selected color of the scribe. By default it is white.
|
virtual |
send the colors down to the line model. Called when the object is selected or any of the colors change.
Implements makVrv::DtLineFacadeBase.
Reimplemented in makVrv::Dt3DAirCorridorLineFacade.
|
virtual |
Sets the width of the scribe line in pixel space.
This will set a flag such that when the line width is changed this width is not, so, once set, you will need to continue to set to keep pace with line width.
| DtExtrudedLineModelAgent* makVrv::Dt3DLineFacade::extrudedLineModelAgent | ( | ) | const |
Line model agent used by this class.
|
protected |
Creates the line agent. Called from constructor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |