VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::Dt2DLineFacade Class Reference

Contains Dt2DLineFacade class. More...

Inheritance diagram for makVrv::Dt2DLineFacade:
Inheritance graph
[legend]

Public Member Functions

 Dt2DLineFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 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 ~Dt2DLineFacade ()
 DTOR.
virtual void setSolid (bool)
 Override to no-op as this is a 3D only concept.
virtual void setModelDefinition (const std::string &)
 Sets the model definition for the model.
virtual void setColor (float r, float g, float b, float a)
 Sets the color for the line.
virtual void setLineWidth (int)
 Sets the width of the outside line. Default is 2.
virtual void setStipplePattern (unsigned int)
 Sets the pattern for the line portion of the line.
virtual void setVisible (bool)
 Sets the object visible.
virtual void setPickable (bool)
 Sets pickable or not.
virtual void setSegmentEndArrow (int seg, bool flag)
 Sets arrow at end of segment.
virtual void setSegmentStartArrow (int seg, bool flag)
 Sets arrow at start of segment.
virtual void setArrowSize (double)
 Sets the size of the arrow (in pixels)
virtual void setArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle)
 Sets the style of arrow to use. Applies to all segments.
virtual void setLineStyle (vrvTacticalGraphicUtilities::LineStyle s)
 Sets the style of th line via the agent.
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).
- Public Member Functions inherited from makVrv::DtLineFacadeInterface
 DtLineFacadeInterface (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet)
 Constructor that will take an existing scene object agent.
 DtLineFacadeInterface (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true)
 Will create a new scene object agent for the given model set and element id.
virtual ~DtLineFacadeInterface ()
 DTOR.
virtual void setPoints (const std::vector< DtVector > &, const DtVector &withOffset=DtVector::zero())
 Sets the points for the area.
virtual void addPoint (int index, const DtVector &)
 Adds a point to the line. Returns the index of the newly added point.
virtual void removePoint (int)
 Removes a point from the line.
virtual void setOrigin (const DtVector &)
 Sets the origin of the line.
virtual const DtVectororigin () const
virtual void setPoint (int iIndex, const DtVector &)
 Sets position in the line.
virtual const std::vector
< DtVector > & 
points () const
 Returns the points of the facade.
virtual void setScribed (bool)
 Sets whether or not line is scribed.
virtual bool pickable () const
 Returns whether or not item is pickable.
virtual
vrvTacticalGraphicUtilities::LineStyle 
lineStyle () const
 Returns the current line style.
virtual void setArrowHeadPlacement (vrvTacticalGraphicUtilities::ArrowHeadPlacement)
 Sets how often the arrows should be displayed.
virtual
vrvTacticalGraphicUtilities::ArrowHeadPlacement 
arrowHeadPlacement () const
 Returns the current arrow head placement strategy.
virtual
vrvTacticalGraphicUtilities::ArrowStyle 
arrowStyle () const
 Returns the arrow style.
virtual double arrowSize () const
 Returns the size of the arrow.
virtual bool fixedWidthSizing () const
 Returns whether or not line is using fixed width sizing.
virtual makVrv::DtUniqueID uniqueId () const
 Returns the unique id of the scene object agent.
virtual makVrv::DtElementID elementId () const
 Returns the element id of the scene object agent.
virtual int modelSet () const
 Returns the model set.
virtual DtSceneObjectAgent * sceneObjectAgent ()
 Returns the scene object agent associated with this facade.

Protected Member Functions

void createLineAgent ()
 Creates the agent used to display the line. Called from constructor.
- Protected Member Functions inherited from makVrv::DtLineFacadeInterface
virtual void updateArrowFrequencyForSegment (int)
 Updates the arrow segments given the current arrow segment frequency for the given segment.

Protected Attributes

DtOverlaySegmentedLineModelAgent * myLine
- Protected Attributes inherited from makVrv::DtLineFacadeInterface
DtAgentManagerInterfacemyAgentManagerInterface
DtSceneObjectAgent * mySceneObjectAgent
bool myOwnsSceneObjectAgent
float myColor [4]
int myLineWidth
int myModelSet
bool mySelected
bool myFixedWidthSizing
DtVector myOrigin
std::vector< DtVectormyControlPoints
vrvTacticalGraphicUtilities::ArrowStyle myArrowStyle
vrvTacticalGraphicUtilities::ArrowHeadPlacement myArrowHeadPlacement
vrvTacticalGraphicUtilities::LineStyle myLineStyle
double myArrowSize
bool myPickable
bool myVisible
makVrv::DtElementID myElementId

Detailed Description

Contains Dt2DLineFacade class.

Facade interface for constructing 2D Line objects

Constructor & Destructor Documentation

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 makVrv::Dt2DLineFacade::~Dt2DLineFacade ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::Dt2DLineFacade::setSolid ( bool  )
virtual

Override to no-op as this is a 3D only concept.

Implements makVrv::DtLineFacadeInterface.

virtual void makVrv::Dt2DLineFacade::setModelDefinition ( const std::string &  )
virtual

Sets the model definition for the model.

Implements makVrv::DtLineFacadeInterface.

virtual void makVrv::Dt2DLineFacade::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the color for the line.

This will apply to all segments of the line. If the default (all 0's), uses the default as defined in the visual definition

Reimplemented from makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setLineWidth ( int  )
virtual

Sets the width of the outside line. Default is 2.

Implements makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setStipplePattern ( unsigned  int)
virtual

Sets the pattern for the line portion of the line.

Implements makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setVisible ( bool  )
virtual

Sets the object visible.

Reimplemented from makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setPickable ( bool  )
virtual

Sets pickable or not.

Reimplemented from makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setSegmentEndArrow ( int  seg,
bool  flag 
)
virtual

Sets arrow at end of segment.

Implements makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setSegmentStartArrow ( int  seg,
bool  flag 
)
virtual

Sets arrow at start of segment.

Implements makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setArrowSize ( double  )
virtual

Sets the size of the arrow (in pixels)

Reimplemented from makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setArrowStyle ( vrvTacticalGraphicUtilities::ArrowStyle  )
virtual

Sets the style of arrow to use. Applies to all segments.

Reimplemented from makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setLineStyle ( vrvTacticalGraphicUtilities::LineStyle  s)
virtual

Sets the style of th line via the agent.

Reimplemented from makVrv::DtLineFacadeInterface.

Reimplemented in makVrv::Dt2DAirCorridorLineFacade.

virtual void makVrv::Dt2DLineFacade::setFixedWidthSizing ( bool  )
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::DtLineFacadeInterface.

void makVrv::Dt2DLineFacade::createLineAgent ( )
protected

Creates the agent used to display the line. Called from constructor.

Member Data Documentation

DtOverlaySegmentedLineModelAgent* makVrv::Dt2DLineFacade::myLine
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)