![]() |
VR-Forces 4.7 Class Documentation
|
The feature layer is a type of terrain layer which contains features, such as points, lines, areas, and props created from them. More...

Public Member Functions | |
| DtFeatureLayer (DtDe &de, DtAgentManagerInterface &sceneInterface, const std::string &filename, bool simOnly=false) | |
| CTOR. | |
| virtual | ~DtFeatureLayer () |
| DTOR. | |
| virtual void | getRecord (makArchives::DtFeatureLayerRecord &rec) const |
| Fill out a DtFeatureLayerRecord with the current terrain info. | |
| virtual void | setFromRecord (const makArchives::DtFeatureLayerRecord &rec) |
| Populate a DtFeatureLayer from a DtFeatureLayerRecord. | |
| const std::string & | filename () const |
| Get the name of the file this feature layer was created from. | |
| bool | simOnly () const |
| Get whether this feature layer is an unloaded place-holder. | |
| DtFeature * | findFeature (DtElementID id) |
| Find a feature. | |
| bool | destroyFeature (DtElementID id) |
| Destroy a feature. | |
Prop management | |
| virtual void | addProps (const makArchives::DtAddPropsRuleRecord &rule) |
| Add props based on the rule to the DtFeatureLayer. | |
| const makArchives::DtAddPropsRuleRecordVector & | addPropsRules () const |
| Add props rules vector accessor. | |
| DtFeatureSet & | featureSet () |
| Get the feature set containing all of the features. | |
| const DtFeatureSet & | featureSet () const |
Public Member Functions inherited from makVrv::DtTerrainLayer | |
| DtTerrainLayer (DtDe &de, DtAgentManagerInterface &sceneInterface) | |
| CTOR. | |
| virtual | ~DtTerrainLayer () |
| DTOR. | |
| virtual void | addProp (DtProp *prop) |
| Add prop based on the DtPropRecord. | |
| virtual bool | addPropFromRecord (const makArchives::DtPropRecord &record) |
| Add prop based on the DtPropRecord. | |
| virtual DtProp * | findProp (DtUniqueID id) |
| Finds a pointer to the prop on the feature layer with the same identifiers as the passed in prop. | |
| virtual bool | destroyProp (DtUniqueID id) |
| Destroys the prop with the unique name. | |
| const PropMap & | props () const |
| Get the container of props associated with the layer. | |
| const PropNameSet & | propNames () const |
| Get the set of prop names used in this layer. | |
| void | selectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &de) |
Protected Member Functions | |
| void | loadFeatures () |
| void | showFeatures () |
| void | groundClampFeatures () |
| void | checkForDisplayFeatureChanged (int mode, int setting, bool state) |
Private Attributes | |
| std::string | myFilename |
| makArchives::DtAddPropsRuleRecordVector | myAddPropsRules |
| DtFeatureSet | myFeatures |
| bool | mysimOnly |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTerrainLayer | |
| typedef std::map< DtUniqueID, DtProp * > | PropMap |
| List of props. | |
| typedef boost::unordered_set < std::string > | PropNameSet |
| Set of prop names. | |
Public Attributes inherited from makVrv::DtTerrainLayer | |
| boost::signal< void(const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected)> | signal_currentSelectionChanged |
| Emited when the current selection changes. | |
Protected Attributes inherited from makVrv::DtTerrainLayer | |
| DtDe & | myDe |
| DtAgentManagerInterface & | mySceneInterface |
The feature layer is a type of terrain layer which contains features, such as points, lines, areas, and props created from them.
| makVrv::DtFeatureLayer::DtFeatureLayer | ( | DtDe & | de, |
| DtAgentManagerInterface & | sceneInterface, | ||
| const std::string & | filename, | ||
| bool | simOnly = false |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Fill out a DtFeatureLayerRecord with the current terrain info.
|
virtual |
Populate a DtFeatureLayer from a DtFeatureLayerRecord.
|
virtual |
Add props based on the rule to the DtFeatureLayer.
| const makArchives::DtAddPropsRuleRecordVector& makVrv::DtFeatureLayer::addPropsRules | ( | ) | const |
Add props rules vector accessor.
| const std::string& makVrv::DtFeatureLayer::filename | ( | ) | const |
Get the name of the file this feature layer was created from.
| bool makVrv::DtFeatureLayer::simOnly | ( | ) | const |
Get whether this feature layer is an unloaded place-holder.
| DtFeatureSet& makVrv::DtFeatureLayer::featureSet | ( | ) |
Get the feature set containing all of the features.
| const DtFeatureSet& makVrv::DtFeatureLayer::featureSet | ( | ) | const |
| DtFeature* makVrv::DtFeatureLayer::findFeature | ( | DtElementID | id | ) |
Find a feature.
| bool makVrv::DtFeatureLayer::destroyFeature | ( | DtElementID | id | ) |
Destroy a feature.
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |