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

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

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

Public Member Functions

 DtTdbPropAdder (DtDe &de, const std::string &fileName, DtAgentManagerInterface &agentManagerInterface)
 CTOR.
virtual ~DtTdbPropAdder ()
 DTOR.
void addProps (const makArchives::DtAddPropsRuleRecord &rule, DtTerrainLayer *terrainLayer)
 Load the feature file, look for features based on the rule and create create props.
- Public Member Functions inherited from makVrv::DtPropAdder
 DtPropAdder (DtDe &de, DtAgentManagerInterface &agentManagerInterface)
 CTOR.
virtual ~DtPropAdder ()
 DTOR.

Protected Member Functions

bool matchRuleWithNode (const makArchives::DtAddPropsRuleRecord &rule, const DtNetworkNode &node)
 Return true if all the field/ value pairs in rule exist in node.
bool matchPairWithNode (const std::string &field, const std::string &value, const DtNetworkNode &node)
 //! Return true if field/ value pair exists in node.
bool buildProp (const makArchives::DtAddPropsRuleRecord &rule, const DtNetworkNode &node, DtTerrainLayer *terrainLayer)
 Build a prop from node, based on rule, and add it to props.
bool validPoint (const DtPoint &point) const
 Test a DtPoint for validity: no values NaN or +/-#INF, and at least one value nonzero.

Protected Attributes

std::string myFileName
- Protected Attributes inherited from makVrv::DtPropAdder
DtDemyDe
DtAgentManagerInterfacemyAgentInterface

Detailed Description

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

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.

Member Data Documentation

std::string makVrv::DtTdbPropAdder::myFileName
protected

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)