![]() |
VR-Forces 4.0.4 Class Documentation
|
The DtPropAdder will create props from feature files containing prop point features and add them to the makVrv::DtTerrainLayer. More...

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. | |
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 |
The DtPropAdder will create props from feature files containing prop point features and add them to the makVrv::DtTerrainLayer.
| makVrv::DtTdbPropAdder::DtTdbPropAdder | ( | DtDe & | de, |
| const std::string & | fileName, | ||
| DtAgentManagerInterface & | agentManagerInterface | ||
| ) |
CTOR.
| virtual makVrv::DtTdbPropAdder::~DtTdbPropAdder | ( | ) | [virtual] |
DTOR.
| 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.
std::string makVrv::DtTdbPropAdder::myFileName [protected] |