The DtLineStyleGeometryManager class manages line style geometries.
More...
Public Types |
typedef boost::function< bool(const
DtCoordinateSystem &, const
DtVector &, const DtVector
&, double, std::vector
< DtVector > &, std::vector
< DtVector > &, const DtVector
&offsetFromPoint)> | ArrowCreateFunction |
| | Typedef arrow style funcion.
|
typedef boost::function< bool(const
DtCoordinateSystem &, const
std::vector< DtVector >
&, double, std::vector
< DtVector > &, std::vector
< DtVector > &, std::vector
< int > &, const DtVector
&offsetFromPoint)> | LineCreateFunction |
| | Typedef line style function.
|
typedef boost::unordered_map
< int, LineCreateFunction > | LineStyleGeometries |
| | Typedefed map of line style geometries.
|
typedef boost::unordered_map
< int, ArrowCreateFunction > | ArrowStyleGeometries |
| | Typedefed map of arrow style geometries.
|
Public Member Functions |
| | DtLineStyleGeometryManager (DtDe &) |
| | CTOR.
|
| virtual | ~DtLineStyleGeometryManager () |
| | DTOR.
|
| virtual void | add2DLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction) |
| | Registers a line style for either 2D representation.
|
| virtual void | add3DLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction) |
| | Registers a line style for either 3D representation.
|
| virtual void | add2DArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction) |
| | Registers an arrow style for either 2D representation.
|
| virtual void | add3DArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction) |
| | Registers an arrow style for either 3D representation.
|
|
| virtual bool | create2DLineStyle (vrvTacticalGraphicUtilities::LineStyle, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero()) const |
| | Supplied parameters.
|
| virtual bool | create3DLineStyle (vrvTacticalGraphicUtilities::LineStyle, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero()) const |
| | Create 3D line version.
|
|
| virtual bool | create2DArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero()) const |
| | Supplied parameters.
|
| virtual bool | create3DArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero()) const |
| | Create 3D arrow version.
|
| | DtVirtualBaseClass () |
| | Do nothing constructor.
|
| virtual | ~DtVirtualBaseClass () |
| | Virtual do nothing destructor.
|
Detailed Description
The DtLineStyleGeometryManager class manages line style geometries.
Member Typedef Documentation
Typedef arrow style funcion.
Typedef line style function.
Typedefed map of line style geometries.
Typedefed map of arrow style geometries.
Constructor & Destructor Documentation
| makVrv::DtLineStyleGeometryManager::DtLineStyleGeometryManager |
( |
DtDe & |
| ) |
|
| virtual makVrv::DtLineStyleGeometryManager::~DtLineStyleGeometryManager |
( |
| ) |
|
|
virtual |
Member Function Documentation
Get the creator instance for this IG object.
- Exceptions
-
| DtCorruptedState | if it is unable to get the instance. |
Register the creator instance with an IG.
Registers a line style for either 2D representation.
If one exists for the LineStyle and display mode will replace
Registers a line style for either 3D representation.
If one exists for the LineStyle and display mode will replace
Registers an arrow style for either 2D representation.
If one exists for the ArrowStyle and display mode will replace
Registers an arrow style for either 3D representation.
If one exists for the ArrowStyle and display mode will replace
Supplied parameters.
LineStyle - Style of line to create linePoints - Points which define the simple line before modification size - The size of the body of the line in pixels for 2D and meters for 3D result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array
Will return true if line is created Create 2D line version
Supplied parameters.
ArrowStyle - Style of arrow to create start - start point of line segment (for arrow direction) end - end point of segment (where arrow will be placed) size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to each point in the linePoints array
Will return true if line is created Create 2D arrow version
Adds line style into the supplied map.
Adds arrow create function into the supplied map.
Member Data Documentation
| DtDe& makVrv::DtLineStyleGeometryManager::myDe |
|
protected |
The documentation for this class was generated from the following file: