VR-Forces 4.3.1 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 | Protected Attributes | Friends
makVrv::DtDynamicFeatureBuilder Class Reference

DtDynamicFeatureBuilder implements a DtStreamedFeatureCreator for features that utilize meta files (ex. More...

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

Public Member Functions

 DtDynamicFeatureBuilder (const DtDynamicFeatureBuilder &rhs)
 Copy CTOR.
DtDynamicFeatureBuilderoperator= (const DtDynamicFeatureBuilder &orig)
 Assignment Operator.
virtual ~DtDynamicFeatureBuilder ()
 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)
virtual void createAndAddDynamicFeature (DtUniqueID elementId, const std::string &modelDefName, const std::string &buoyName, const DtVector &vPosition)
virtual std::string buildModelDefinition (const std::string &markerName)
void slot_featureToBeDeleted (const std::string &layerName, DtUniqueID featureId)
- 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

 DtDynamicFeatureBuilder (DtDe &de, const std::string &registrantName, const std::string &featureClass)
 CTOR.

Protected Attributes

DtDemyDe
DtSignalConnectionManager myConnections
std::string myDynamicFeatureName
std::string myFeatureClass
std::string myRegistrantName
- Protected Attributes inherited from makVrv::DtStreamedFeatureCreator
DtAgentManagerInterfacemySceneInterface

Friends

class DtDynamicFeatureBuilderCreator

Detailed Description

DtDynamicFeatureBuilder implements a DtStreamedFeatureCreator for features that utilize meta files (ex.

flags, windsocks). It reads configuration files found in appData/importConfig that identify which osgearth styles to process. By creating the objects in the style, nodes are identified and functions associated with those nodes that can update the node's state. The .meta file should be in the same folder as the .medf file being loaded <– true? change this

Constructor & Destructor Documentation

makVrv::DtDynamicFeatureBuilder::DtDynamicFeatureBuilder ( const DtDynamicFeatureBuilder rhs)

Copy CTOR.

virtual makVrv::DtDynamicFeatureBuilder::~DtDynamicFeatureBuilder ( )
virtual

virtual DTOR

makVrv::DtDynamicFeatureBuilder::DtDynamicFeatureBuilder ( DtDe de,
const std::string &  registrantName,
const std::string &  featureClass 
)
protected

CTOR.

Parameters
deis the display engine
registrantNameis the builder name (ex. "Dynamic Feature Layer")
featureClassis the name of the list of styles to look in for the .earth file (ex. "Meta") The code registers the styles listed in importConfig/meta_layer_list.csv with instances of this type of builder object (one builder per style)

Member Function Documentation

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

Assignment Operator.

virtual DtUniqueID makVrv::DtDynamicFeatureBuilder::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::DtStreamedFeatureCreator.

virtual void makVrv::DtDynamicFeatureBuilder::createAndAddDynamicFeature ( DtUniqueID  elementId,
const std::string &  modelDefName,
const std::string &  buoyName,
const DtVector vPosition 
)
virtual
virtual std::string makVrv::DtDynamicFeatureBuilder::buildModelDefinition ( const std::string &  markerName)
virtual
void makVrv::DtDynamicFeatureBuilder::slot_featureToBeDeleted ( const std::string &  layerName,
DtUniqueID  featureId 
)

Friends And Related Function Documentation

friend class DtDynamicFeatureBuilderCreator
friend

Member Data Documentation

DtDe& makVrv::DtDynamicFeatureBuilder::myDe
protected
DtSignalConnectionManager makVrv::DtDynamicFeatureBuilder::myConnections
protected
std::string makVrv::DtDynamicFeatureBuilder::myDynamicFeatureName
protected
std::string makVrv::DtDynamicFeatureBuilder::myFeatureClass
protected
std::string makVrv::DtDynamicFeatureBuilder::myRegistrantName
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)