VR-Forces Development_Version 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 | Friends
makVrv::DtNavMarkFeatureBuilder Class Reference

DtNavMarkFeatureBuilder implements a DtStreamedFeatureCreator for daymarks. More...

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

Public Member Functions

 DtNavMarkFeatureBuilder (const DtNavMarkFeatureBuilder &rhs)
 Copy CTOR.
DtNavMarkFeatureBuilderoperator= (const DtNavMarkFeatureBuilder &orig)
 Assignment Operator.
virtual
DtNavigationFeatureBuilder
clone () const
virtual ~DtNavMarkFeatureBuilder ()
 virtual DTOR
virtual DtUniqueID create (DtDe &de, const std::string &registrantName, const std::string &featureStyleName, const std::string &strFeatureName, DtVector vPosition, double scale, DtVector minBound, DtVector maxBound)
 Create a feature (a DtEntityFacade for now)
- Public Member Functions inherited from makVrv::DtNavigationFeatureBuilder
virtual ~DtNavigationFeatureBuilder ()
 virtual DTOR
DtNavigationFeatureStringParserparser ()
void setFeatureManager (DtNavigationFeatureManager *featureManager)
DtNavigationFeatureManagerfeatureManager ()
- Public Member Functions inherited from makVrv::DtStreamedFeatureCreator
 DtStreamedFeatureCreator (DtAgentManagerInterface &sceneInterface)
 CTOR.
 DtStreamedFeatureCreator (const DtStreamedFeatureCreator &orig)
DtStreamedFeatureCreatoroperator= (const DtStreamedFeatureCreator &rhs)
 Assignment operator.
virtual ~DtStreamedFeatureCreator ()

Protected Member Functions

 DtNavMarkFeatureBuilder (DtAgentManagerInterface &sceneInterface, DtNavMarkStringParser *parser)
 CTOR.
- Protected Member Functions inherited from makVrv::DtNavigationFeatureBuilder
 DtNavigationFeatureBuilder (DtAgentManagerInterface &sceneInterface, DtNavigationFeatureStringParser *parser)
 CTOR.
 DtNavigationFeatureBuilder (const DtNavigationFeatureBuilder &rhs)
 Copy CTOR.
DtNavigationFeatureBuilderoperator= (const DtNavigationFeatureBuilder &orig)
 Assignment Operator.

Friends

class DtNavMarkFeatureBuilderCreator

Additional Inherited Members

- Protected Attributes inherited from makVrv::DtNavigationFeatureBuilder
DtNavigationFeatureStringParsermyObjectStringParser
DtNavigationFeatureManagermyFeatureManager

Detailed Description

DtNavMarkFeatureBuilder implements a DtStreamedFeatureCreator for daymarks.

It reads a configuration files found in appData/importConfig that it uses to map S57 color values to the switch values we use for navigation daymarks, and parses the attribute/value pairs encoded into the streamed-in feature name. Its create method requests the parse using the DtNavMarkStringParser its given, creates a DtNavigationMark, initializes it with values retrieved by the parser and then adds it to the DtNavigationFeatureManager.

Constructor & Destructor Documentation

makVrv::DtNavMarkFeatureBuilder::DtNavMarkFeatureBuilder ( const DtNavMarkFeatureBuilder rhs)

Copy CTOR.

virtual makVrv::DtNavMarkFeatureBuilder::~DtNavMarkFeatureBuilder ( )
virtual

virtual DTOR

makVrv::DtNavMarkFeatureBuilder::DtNavMarkFeatureBuilder ( DtAgentManagerInterface sceneInterface,
DtNavMarkStringParser parser 
)
protected

CTOR.

Parameters
sceneInterfaceused to get an element id used to create a DtNavigationMark
parseris used to parse an encoded marker name string to retrieve daymark attributes from S57

Member Function Documentation

DtNavMarkFeatureBuilder& makVrv::DtNavMarkFeatureBuilder::operator= ( const DtNavMarkFeatureBuilder orig)

Assignment Operator.

virtual DtNavigationFeatureBuilder* makVrv::DtNavMarkFeatureBuilder::clone ( ) const
virtual
virtual DtUniqueID makVrv::DtNavMarkFeatureBuilder::create ( DtDe de,
const std::string &  registrantName,
const std::string &  featureStyleName,
const std::string &  strFeatureName,
DtVector  vPosition,
double  scale,
DtVector  minBound,
DtVector  maxBound 
)
virtual

Create a feature (a DtEntityFacade for now)

Parameters
registrantNameis the name that was provided to the DtStreamedFeatureManager when the DtStreamedFeatureCreator was registered
styleNameis the name provided in the .osgEarth style block specified for this feature.
strFeatureNameis the markerName returned by osgEarth for the feature from a marker: specification
vPositionis the position of the feature
scaleis any scale factor provided from an osgEarth marker-scale: specification
minBoundis the min x,y,z of the feature bound
maxBoundis the max x,y,z of the feature bound
Returns
A uniqueId that will be used to identify the feature created when it comes time to delete it. returns 0 if no feature is created.

Implements makVrv::DtNavigationFeatureBuilder.

Friends And Related Function Documentation

friend class DtNavMarkFeatureBuilderCreator
friend

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)