![]() |
VR-Forces 4.8 Class Documentation
|
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. More... | |
| 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. More... | |
| typedef boost::unordered_map < int, LineCreateFunction > | LineStyleGeometries |
| Typedefed map of line style geometries. More... | |
| typedef boost::unordered_map < int, ArrowCreateFunction > | ArrowStyleGeometries |
| Typedefed map of arrow style geometries. More... | |
Public Member Functions | |
| DtLineStyleGeometryManager (DtDe &) | |
| CTOR. More... | |
| virtual | ~DtLineStyleGeometryManager () |
| DTOR. More... | |
| virtual void | add2DLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction) |
| Registers a line style for either 2D representation. More... | |
| virtual void | add3DLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction) |
| Registers a line style for either 3D representation. More... | |
| virtual void | add2DArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction) |
| Registers an arrow style for either 2D representation. More... | |
| virtual void | add3DArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction) |
| Registers an arrow style for either 3D representation. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtLineStyleGeometryManager & | instance (DtDe &de) |
| Get the creator instance for this IG object. More... | |
| static void | registerInstance (DtDe &de, DtLineStyleGeometryManager *anInstance) |
| Register the creator instance with an IG. More... | |
Protected Member Functions | |
| virtual void | addLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction, LineStyleGeometries &) |
| Adds line style into the supplied map. More... | |
| virtual void | addArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction, ArrowStyleGeometries &) |
| Adds arrow create function into the supplied map. More... | |
The DtLineStyleGeometryManager class manages line style geometries.
| typedef boost::function<bool (const DtCoordinateSystem&, const DtVector&, const DtVector&, double, std::vector<DtVector>&, std::vector<DtVector>&, const DtVector& offsetFromPoint)> makVrv::DtLineStyleGeometryManager::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)> makVrv::DtLineStyleGeometryManager::LineCreateFunction |
Typedef line style function.
| typedef boost::unordered_map<int, LineCreateFunction> makVrv::DtLineStyleGeometryManager::LineStyleGeometries |
Typedefed map of line style geometries.
| typedef boost::unordered_map<int, ArrowCreateFunction> makVrv::DtLineStyleGeometryManager::ArrowStyleGeometries |
Typedefed map of arrow style geometries.
| makVrv::DtLineStyleGeometryManager::DtLineStyleGeometryManager | ( | DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
static |
Get the creator instance for this IG object.
| DtCorruptedState | if it is unable to get the instance. |
|
static |
Register the creator instance with an IG.
|
virtual |
Registers a line style for either 2D representation.
If one exists for the LineStyle and display mode will replace
|
virtual |
Registers a line style for either 3D representation.
If one exists for the LineStyle and display mode will replace
|
virtual |
Registers an arrow style for either 2D representation.
If one exists for the ArrowStyle and display mode will replace
|
virtual |
Registers an arrow style for either 3D representation.
If one exists for the ArrowStyle and display mode will replace
|
virtual |
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
|
virtual |
Create 3D line version.
|
virtual |
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
|
virtual |
Create 3D arrow version.
|
protectedvirtual |
Adds line style into the supplied map.
|
protectedvirtual |
Adds arrow create function into the supplied map.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |