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

The DtLineStyleGeometryManager class manages line style geometries. More...

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

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.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static DtLineStyleGeometryManagerinstance (DtDe &de)
 Get the creator instance for this IG object.
static void registerInstance (DtDe &de, DtLineStyleGeometryManager *anInstance)
 Register the creator instance with an IG.

Protected Member Functions

virtual void addLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction, LineStyleGeometries &)
 Adds line style into the supplied map.
virtual void addArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction, ArrowStyleGeometries &)
 Adds arrow create function into the supplied map.

Protected Attributes

LineStyleGeometries my2DLineStyleGeometries
LineStyleGeometries my3DLineStyleGeometries
ArrowStyleGeometries my2DArrowStyleGeometries
ArrowStyleGeometries my3DArrowStyleGeometries
DtDemyDe

Detailed Description

The DtLineStyleGeometryManager class manages line style geometries.

Member Typedef Documentation

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.

Typedefed map of line style geometries.

Typedefed map of arrow style geometries.

Constructor & Destructor Documentation

makVrv::DtLineStyleGeometryManager::DtLineStyleGeometryManager ( DtDe )

CTOR.

virtual makVrv::DtLineStyleGeometryManager::~DtLineStyleGeometryManager ( )
virtual

DTOR.

Member Function Documentation

static DtLineStyleGeometryManager& makVrv::DtLineStyleGeometryManager::instance ( DtDe de)
static

Get the creator instance for this IG object.

Exceptions
DtCorruptedStateif it is unable to get the instance.
static void makVrv::DtLineStyleGeometryManager::registerInstance ( DtDe de,
DtLineStyleGeometryManager anInstance 
)
static

Register the creator instance with an IG.

virtual void makVrv::DtLineStyleGeometryManager::add2DLineStyle ( vrvTacticalGraphicUtilities::LineStyle  ,
LineCreateFunction   
)
virtual

Registers a line style for either 2D representation.

If one exists for the LineStyle and display mode will replace

virtual void makVrv::DtLineStyleGeometryManager::add3DLineStyle ( vrvTacticalGraphicUtilities::LineStyle  ,
LineCreateFunction   
)
virtual

Registers a line style for either 3D representation.

If one exists for the LineStyle and display mode will replace

virtual void makVrv::DtLineStyleGeometryManager::add2DArrowStyle ( vrvTacticalGraphicUtilities::ArrowStyle  ,
ArrowCreateFunction   
)
virtual

Registers an arrow style for either 2D representation.

If one exists for the ArrowStyle and display mode will replace

virtual void makVrv::DtLineStyleGeometryManager::add3DArrowStyle ( vrvTacticalGraphicUtilities::ArrowStyle  ,
ArrowCreateFunction   
)
virtual

Registers an arrow style for either 3D representation.

If one exists for the ArrowStyle and display mode will replace

virtual bool makVrv::DtLineStyleGeometryManager::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
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 bool makVrv::DtLineStyleGeometryManager::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
virtual

Create 3D line version.

virtual bool makVrv::DtLineStyleGeometryManager::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
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 bool makVrv::DtLineStyleGeometryManager::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
virtual

Create 3D arrow version.

virtual void makVrv::DtLineStyleGeometryManager::addLineStyle ( vrvTacticalGraphicUtilities::LineStyle  ,
LineCreateFunction  ,
LineStyleGeometries  
)
protectedvirtual

Adds line style into the supplied map.

virtual void makVrv::DtLineStyleGeometryManager::addArrowStyle ( vrvTacticalGraphicUtilities::ArrowStyle  ,
ArrowCreateFunction  ,
ArrowStyleGeometries  
)
protectedvirtual

Adds arrow create function into the supplied map.

Member Data Documentation

LineStyleGeometries makVrv::DtLineStyleGeometryManager::my2DLineStyleGeometries
protected
LineStyleGeometries makVrv::DtLineStyleGeometryManager::my3DLineStyleGeometries
protected
ArrowStyleGeometries makVrv::DtLineStyleGeometryManager::my2DArrowStyleGeometries
protected
ArrowStyleGeometries makVrv::DtLineStyleGeometryManager::my3DArrowStyleGeometries
protected
DtDe& makVrv::DtLineStyleGeometryManager::myDe
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)