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 Member Functions | Protected Member Functions | Protected Attributes

The DtPropAdder will create props from feature files containing prop point features and add them to the makVrv::DtTerrainLayer.

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

Public Member Functions

 DtTdbPropAdder (DtDe &de, const std::string &fileName, DtAgentManagerInterface &agentManagerInterface)
 
virtual ~DtTdbPropAdder ()
 
void addProps (const makArchives::DtAddPropsRuleRecord &rule, DtTerrainLayer *terrainLayer)
 
- Public Member Functions inherited from makVrv::DtPropAdder
 DtPropAdder (DtDe &de, DtAgentManagerInterface &agentManagerInterface)
 
virtual ~DtPropAdder ()
 

Protected Member Functions

bool matchRuleWithNode (const makArchives::DtAddPropsRuleRecord &rule, const DtNetworkNode &node)
 
bool matchPairWithNode (const std::string &field, const std::string &value, const DtNetworkNode &node)
 
bool buildProp (const makArchives::DtAddPropsRuleRecord &rule, const DtNetworkNode &node, DtTerrainLayer *terrainLayer)
 
bool validPoint (const DtPoint &point) const
 
virtual void slot_coordinateSystemChanged ()
 

Protected Attributes

std::string myFileName
 
DtSignalConnectionManager myConnections
 
DtCoordinateSystemmyCoordinateSystem = nullptr
 
- Protected Attributes inherited from makVrv::DtPropAdder
DtDemyDe
 
DtAgentManagerInterfacemyAgentInterface
 

Constructor & Destructor Documentation

makVrv::DtTdbPropAdder::DtTdbPropAdder ( DtDe de,
const std::string &  fileName,
DtAgentManagerInterface agentManagerInterface 
)

CTOR.

virtual makVrv::DtTdbPropAdder::~DtTdbPropAdder ( )
virtual

DTOR.

Member Function Documentation

void makVrv::DtTdbPropAdder::addProps ( const makArchives::DtAddPropsRuleRecord rule,
DtTerrainLayer terrainLayer 
)
virtual

Load the feature file, look for features based on the rule and create create props. Add those props to terrainLayer.

Implements makVrv::DtPropAdder.

bool makVrv::DtTdbPropAdder::matchRuleWithNode ( const makArchives::DtAddPropsRuleRecord rule,
const DtNetworkNode node 
)
protected

Return true if all the field/ value pairs in rule exist in node.

bool makVrv::DtTdbPropAdder::matchPairWithNode ( const std::string &  field,
const std::string &  value,
const DtNetworkNode node 
)
protected

//! Return true if field/ value pair exists in node.

bool makVrv::DtTdbPropAdder::buildProp ( const makArchives::DtAddPropsRuleRecord rule,
const DtNetworkNode node,
DtTerrainLayer terrainLayer 
)
protected

Build a prop from node, based on rule, and add it to props.

bool makVrv::DtTdbPropAdder::validPoint ( const DtPoint point) const
protected

Test a DtPoint for validity: no values NaN or +/-#INF, and at least one value nonzero.

virtual void makVrv::DtTdbPropAdder::slot_coordinateSystemChanged ( )
protectedvirtual

slot for when the coordinate system changes

Member Data Documentation

std::string makVrv::DtTdbPropAdder::myFileName
protected
DtSignalConnectionManager makVrv::DtTdbPropAdder::myConnections
protected
DtCoordinateSystem* makVrv::DtTdbPropAdder::myCoordinateSystem = nullptr
protected

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


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)