VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtDynamicFeatureBuilder Class Reference

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.

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

Public Member Functions

 DtDynamicFeatureBuilder (const DtDynamicFeatureBuilder &rhs)
 
DtDynamicFeatureBuilderoperator= (const DtDynamicFeatureBuilder &orig)
 
virtual ~DtDynamicFeatureBuilder ()
 
virtual 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)
 
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)
 
virtual void slot_coordinateSystemChanged ()
 
- Public Member Functions inherited from makVrv::DtStreamedFeatureCreator
 DtStreamedFeatureCreator (DtAgentManagerInterface &sceneInterface)
 
 DtStreamedFeatureCreator (const DtStreamedFeatureCreator &orig)
 
DtStreamedFeatureCreatoroperator= (const DtStreamedFeatureCreator &rhs)
 
virtual ~DtStreamedFeatureCreator ()
 

Public Attributes

friend DtDynamicFeatureBuilderCreator
 

Protected Member Functions

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

Protected Attributes

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

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,
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::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 
)
virtual void makVrv::DtDynamicFeatureBuilder::slot_coordinateSystemChanged ( )
virtual

slot for when the coordinate system changes

Member Data Documentation

friend makVrv::DtDynamicFeatureBuilder::DtDynamicFeatureBuilderCreator
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
DtCoordinateConverter* makVrv::DtDynamicFeatureBuilder::myCoordinateConverter = nullptr
protected

local clone of the current system wide coordinate system converter. for thread safety.


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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)