VR-Forces 5.0.1 Developer's Guide
 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.

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 boost::function< bool(const
DtCoordinateSystem &, const
std::vector< DtVector >
&, double, std::vector
< DtVector > &, std::vector
< DtVector > &, std::vector
< int > &, const DtVector
&offsetFromPoint)> 
LineCreateFunction
 
typedef boost::unordered_map
< int, LineCreateFunction
LineStyleGeometries
 
typedef boost::unordered_map
< int, ArrowCreateFunction
ArrowStyleGeometries
 

Public Member Functions

 DtLineStyleGeometryManager (DtDe &)
 
virtual ~DtLineStyleGeometryManager ()
 
virtual void add2DLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction)
 
virtual void add3DLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction)
 
virtual void add2DArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction)
 
virtual void add3DArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction)
 
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
 
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
 
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
 
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
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtLineStyleGeometryManagerinstance (DtDe &de)
 
static void registerInstance (DtDe &de, DtLineStyleGeometryManager *anInstance)
 

Protected Member Functions

virtual void addLineStyle (vrvTacticalGraphicUtilities::LineStyle, LineCreateFunction, LineStyleGeometries &)
 
virtual void addArrowStyle (vrvTacticalGraphicUtilities::ArrowStyle, ArrowCreateFunction, ArrowStyleGeometries &)
 

Protected Attributes

LineStyleGeometries my2DLineStyleGeometries
 
LineStyleGeometries my3DLineStyleGeometries
 
ArrowStyleGeometries my2DArrowStyleGeometries
 
ArrowStyleGeometries my3DArrowStyleGeometries
 
DtDemyDe
 

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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)