VR-Forces 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 | Private Attributes
makVrv::DtFeatureLayer Class Reference

The feature layer is a type of terrain layer which contains features, such as points, lines, areas, and props created from them.

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

Public Member Functions

 DtFeatureLayer (DtDe &de, DtAgentManagerInterface &sceneInterface, const std::string &filename, bool simOnly=false)
 
virtual ~DtFeatureLayer ()
 
virtual void getRecord (makArchives::DtFeatureLayerRecord &rec) const
 
virtual void setFromRecord (const makArchives::DtFeatureLayerRecord &rec)
 
const std::string & filename () const
 
bool simOnly () const
 
DtFeaturefindFeature (DtElementID id)
 
bool destroyFeature (DtElementID id)
 
Prop management
virtual void addProps (const makArchives::DtAddPropsRuleRecord &rule)
 
const
makArchives::DtAddPropsRuleRecordVector
addPropsRules () const
 
DtFeatureSetfeatureSet ()
 
const DtFeatureSetfeatureSet () const
 
- Public Member Functions inherited from makVrv::DtTerrainLayer
 DtTerrainLayer (DtDe &de, DtAgentManagerInterface &sceneInterface)
 
virtual ~DtTerrainLayer ()
 
virtual void addProp (DtProp *prop)
 
virtual bool addPropFromRecord (const makArchives::DtPropRecord &record)
 
virtual DtPropfindProp (DtUniqueID id)
 
virtual bool destroyProp (DtUniqueID id)
 
const PropMapprops () const
 
const PropNameSetpropNames () const
 
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
 
typedef std::unordered_set
< std::string > 
PropNameSet
 
- Public Attributes inherited from makVrv::DtTerrainLayer
boost::signalslib::signal
< void(const
DtSelectionManager::IdSet
&selected, const
DtSelectionManager::IdSet
&deselected)> 
signal_currentSelectionChanged
 
- Protected Attributes inherited from makVrv::DtTerrainLayer
DtDemyDe
 
DtAgentManagerInterfacemySceneInterface
 

Constructor & Destructor Documentation

makVrv::DtFeatureLayer::DtFeatureLayer ( DtDe de,
DtAgentManagerInterface sceneInterface,
const std::string &  filename,
bool  simOnly = false 
)

CTOR.

virtual makVrv::DtFeatureLayer::~DtFeatureLayer ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtFeatureLayer::getRecord ( makArchives::DtFeatureLayerRecord rec) const
virtual

Fill out a DtFeatureLayerRecord with the current terrain info.

virtual void makVrv::DtFeatureLayer::setFromRecord ( const makArchives::DtFeatureLayerRecord rec)
virtual

Populate a DtFeatureLayer from a DtFeatureLayerRecord.

virtual void makVrv::DtFeatureLayer::addProps ( const makArchives::DtAddPropsRuleRecord rule)
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

Get the feature set containing all of the features.

DtFeature* makVrv::DtFeatureLayer::findFeature ( DtElementID  id)

Find a feature.

bool makVrv::DtFeatureLayer::destroyFeature ( DtElementID  id)

Destroy a feature.

void makVrv::DtFeatureLayer::loadFeatures ( )
protected
void makVrv::DtFeatureLayer::showFeatures ( )
protected
void makVrv::DtFeatureLayer::groundClampFeatures ( )
protected
void makVrv::DtFeatureLayer::checkForDisplayFeatureChanged ( int  mode,
int  setting,
bool  state 
)
protected

Member Data Documentation

std::string makVrv::DtFeatureLayer::myFilename
private
makArchives::DtAddPropsRuleRecordVector makVrv::DtFeatureLayer::myAddPropsRules
private
DtFeatureSet makVrv::DtFeatureLayer::myFeatures
private
bool makVrv::DtFeatureLayer::mysimOnly
private

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)