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

DtLightFeatureBuilder implements a DtStreamedFeatureCreator for lights. More...

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

Public Member Functions

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

Protected Member Functions

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

Friends

class DtLightFeatureBuilderCreator
 

Additional Inherited Members

- Protected Attributes inherited from makVrv::DtNavigationFeatureBuilder
DtNavigationFeatureStringParsermyObjectStringParser
 
DtNavigationFeatureManagermyFeatureManager
 
- Protected Attributes inherited from makVrv::DtStreamedFeatureCreator
DtAgentManagerInterfacemySceneInterface
 

Detailed Description

DtLightFeatureBuilder implements a DtStreamedFeatureCreator for lights.

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 lights, and parses the attribute/value pairs encoded into the streamed-in feature name. Its create method requests the parse using the DtLightMarkerStringParser its given, creates a DtNavigationLightController, initializes it with values retrieved by the parser and then adds it to the DtNavigationLightManager.

Constructor & Destructor Documentation

makVrv::DtLightFeatureBuilder::DtLightFeatureBuilder ( const DtLightFeatureBuilder rhs)

Copy CTOR.

virtual makVrv::DtLightFeatureBuilder::~DtLightFeatureBuilder ( )
virtual

virtual DTOR

makVrv::DtLightFeatureBuilder::DtLightFeatureBuilder ( DtAgentManagerInterface sceneInterface,
DtLightMarkerStringParser parser 
)
protected

CTOR.

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

Member Function Documentation

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

Assignment Operator.

virtual DtNavigationFeatureBuilder* makVrv::DtLightFeatureBuilder::clone ( ) const
virtual
DtUniqueID makVrv::DtLightFeatureBuilder::create ( DtDe de,
const std::string &  registrantName,
const std::string &  featureStyleName,
const std::string &  strFeatureName,
const 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 DtLightFeatureBuilderCreator
friend

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)