![]() |
VR-Forces Developer's Guide
|
Contains Dt3DLineFacade class. Facade interface for constructing 3D line objects.

Public Member Functions | |
| Dt3DLineFacade (makVrv::DtAgentManagerInterface &, makVrv::DtSceneObjectAgent *agent, makVrv::DtElementID id, makVrv::DtModelSetId modelSet) | |
| Dt3DLineFacade (makVrv::DtAgentManagerInterface &, makVrv::DtModelSetId modelSet, makVrv::DtElementID id, bool distribute=false) | |
| virtual | ~Dt3DLineFacade () override |
| virtual void | setSolid (bool) override |
| virtual void | setModelDefinition (const std::string &) override |
| virtual void | setLineWidth (int) override |
| virtual void | setStipplePattern (unsigned int) override |
| virtual void | setOcclusionEnabled (bool) |
| virtual void | setVisible (bool) override |
| virtual void | setPickable (bool) override |
| virtual void | setSegmentEndArrow (int seg, bool flag) override |
| virtual void | setSegmentStartArrow (int seg, bool flag) override |
| virtual void | setArrowSize (double) override |
| virtual void | setArrowStyle (makVrv::vrvTacticalGraphicUtilities::ArrowStyle) override |
| virtual void | setLineStyle (makVrv::vrvTacticalGraphicUtilities::LineStyle s) override |
| virtual void | setFixedWidthSizing (bool) override |
| virtual void | setScribed (bool) override |
| virtual void | setColor (float r, float g, float b, float a) override |
| virtual void | setSelectedColor (float r, float g, float b, float a) override |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| virtual void | setSelectedScribeColor (float r, float g, float b, float a) |
| virtual void | updateColors () override |
| virtual void | setScribeWidth (float width) |
| makVrv::DtExtrudedLineModelAgent * | extrudedLineModelAgent () const |
| 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 makVrf::DtLineFacadeBase | |
| DtLineFacadeBase (makVrv::DtAgentManagerInterface &, makVrv::DtSceneObjectAgent *agent, makVrv::DtElementID id, makVrv::DtModelSetId modelSet) | |
| DtLineFacadeBase (makVrv::DtAgentManagerInterface &, makVrv::DtModelSetId modelSet, makVrv::DtElementID id, bool distribute=false) | |
| virtual | ~DtLineFacadeBase () |
| virtual bool | selected () |
| virtual void | setPoints (const std::vector< DtVector > &, const DtVector &withOffset=DtVector::zero()) |
| virtual void | addPoint (int index, const DtVector &) |
| virtual void | removePoint (int) |
| virtual void | setOrigin (const DtVector &) |
| virtual const DtVector & | origin () const |
| virtual void | setPoint (int iIndex, const DtVector &) |
| virtual const std::vector < DtVector > & | points () const |
| virtual bool | pickable () const |
| virtual makVrv::vrvTacticalGraphicUtilities::LineStyle | lineStyle () const |
| virtual void | setArrowHeadPlacement (makVrv::vrvTacticalGraphicUtilities::ArrowHeadPlacement) |
| virtual makVrv::vrvTacticalGraphicUtilities::ArrowHeadPlacement | arrowHeadPlacement () const |
| virtual makVrv::vrvTacticalGraphicUtilities::ArrowStyle | arrowStyle () const |
| virtual double | arrowSize () const |
| virtual bool | fixedWidthSizing () const |
| virtual makVrv::DtUniqueID | uniqueId () const |
| virtual makVrv::DtElementID | elementId () const |
| virtual makVrv::DtModelSetId | modelSet () const |
| virtual void | setSelected (bool selected) |
| makVrv::DtSceneObjectAgent * | sceneObjectAgent () const |
Protected Member Functions | |
| void | createLineAgent () |
Protected Member Functions inherited from makVrf::DtLineFacadeBase | |
| virtual void | updateArrowFrequencyForSegment (int) |
Protected Attributes | |
| makVrv::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 makVrf::DtLineFacadeBase | |
| makVrv::DtAgentManagerInterface & | myAgentManagerInterface |
| makVrv::DtSceneObjectAgent * | mySceneObjectAgent |
| bool | myOwnsSceneObjectAgent |
| float | myColor [4] |
| float | mySelectedColor [4] |
| int | myLineWidth |
| makVrv::DtModelSetId | myModelSet |
| bool | mySelected |
| bool | myFixedWidthSizing |
| DtVector | myOrigin |
| std::vector< DtVector > | myControlPoints |
| makVrv::vrvTacticalGraphicUtilities::ArrowStyle | myArrowStyle |
| makVrv::vrvTacticalGraphicUtilities::ArrowHeadPlacement | myArrowHeadPlacement |
| makVrv::vrvTacticalGraphicUtilities::LineStyle | myLineStyle |
| double | myArrowSize |
| bool | myPickable |
| bool | myVisible |
| makVrv::DtElementID | myElementId |
| bool | myScribed |
| makVrf::Dt3DLineFacade::Dt3DLineFacade | ( | makVrv::DtAgentManagerInterface & | , |
| makVrv::DtSceneObjectAgent * | agent, | ||
| makVrv::DtElementID | id, | ||
| makVrv::DtModelSetId | modelSet | ||
| ) |
Constructor that will take an existing scene object agent.
| makVrf::Dt3DLineFacade::Dt3DLineFacade | ( | makVrv::DtAgentManagerInterface & | , |
| makVrv::DtModelSetId | modelSet, | ||
| makVrv::DtElementID | id, | ||
| bool | distribute = false |
||
| ) |
Will create a new scene object agent for the given model set and element id.
|
overridevirtual |
DTOR.
|
overridevirtual |
Sets the line solid (true) or outlined (false). Default is true.
Implements makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets the model definition for the model.
Implements makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets the width of the outside line. Default is 2.
Implements makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets the pattern for the line portion of the line.
Implements makVrf::DtLineFacadeBase.
|
virtual |
Sets whether or not line is occluded. Default is true.
|
overridevirtual |
Sets the object visible.
Reimplemented from makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets pickable or not.
Reimplemented from makVrf::DtLineFacadeBase.
Sets arrow at end of segment.
Implements makVrf::DtLineFacadeBase.
Sets arrow at end of segment.
Implements makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets the size of the arrow (in pixels)
Reimplemented from makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets the style of arrow to use. Applies to all segments.
Reimplemented from makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets the style of th line via the agent.
Reimplemented from makVrf::DtLineFacadeBase.
|
overridevirtual |
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 makVrf::DtLineFacadeBase.
|
overridevirtual |
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 makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets the current color of the line. Calls updateColors to pass down the new color to the model.
Reimplemented from makVrf::DtLineFacadeBase.
|
overridevirtual |
Sets the current selected color of the line. Calls updateColors to pass down the new color to the model.
Reimplemented from makVrf::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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.
|
overridevirtual |
send the colors down to the line model. Called when the object is selected or any of the colors change.
Implements makVrf::DtLineFacadeBase.
|
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.
| makVrv::DtExtrudedLineModelAgent* makVrf::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 |