VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtFeature Class Reference

This is the base Terrain Feature class which all specific feature types extend. More...

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

Public Member Functions

virtual ~DtFeature ()
 DTOR.
DtElementID elementId () const
 Get the element id of the feature.
virtual std::string generateDisplayName () const =0
 Generate a display name for this feature.
DFAD::FeatureID featureID () const
 Get the feature id of the feature.
const DtFaccCodefaccCode () const
 Get the feature code of the feature.
unsigned int sourceID () const
 Get the feature source id.
DFAD::SurfaceMaterialCode soilType ()
 Get the soil type of the feature.
DtFeatureVisualizerfindFeatureVisualizer ()
 Attempt to get the feature visualizer for the feature.
void setFeatureVisualizer (DtFeatureVisualizer *vis)
 Sets the feature visualizer for the feature.

Protected Member Functions

 DtFeature (DtElementID id, DFAD::FeatureID featureID, const DtFaccCode &feautureCode, unsigned int sourceId=0)
 CTOR is protected as features can only be created using the DtFeatureSet class.

Protected Attributes

const DtElementID myElementId
DFAD::FeatureID myFeatureID
unsigned int mySourceId
DtFaccCode myFeatureCode
DFAD::SurfaceMaterialCode mySoilType
float myWidth
float myLength
float myHeight
float myOrientation
DtFeatureVisualizermyFeatureVisualizer

Friends

class DtFeatureSet
class DtFaccManager

Detailed Description

This is the base Terrain Feature class which all specific feature types extend.

This feature has a pointer to it's specification. However it does not own its specification. The specification is owned by the specification manager. This allows features with the same specification to share the specification.

Constructor & Destructor Documentation

virtual makVrv::DtFeature::~DtFeature ( )
virtual

DTOR.

makVrv::DtFeature::DtFeature ( DtElementID  id,
DFAD::FeatureID  featureID,
const DtFaccCode feautureCode,
unsigned int  sourceId = 0 
)
protected

CTOR is protected as features can only be created using the DtFeatureSet class.

Member Function Documentation

DtElementID makVrv::DtFeature::elementId ( ) const

Get the element id of the feature.

The element id is the unique id VR-Vantage assigns for this object.

virtual std::string makVrv::DtFeature::generateDisplayName ( ) const
pure virtual

Generate a display name for this feature.

Implemented in makVrv::DtEdgeFeature, makVrv::DtPointFeature, and makVrv::DtArealFeature.

DFAD::FeatureID makVrv::DtFeature::featureID ( ) const

Get the feature id of the feature.

const DtFaccCode& makVrv::DtFeature::faccCode ( ) const

Get the feature code of the feature.

unsigned int makVrv::DtFeature::sourceID ( ) const

Get the feature source id.

DFAD::SurfaceMaterialCode makVrv::DtFeature::soilType ( )

Get the soil type of the feature.

DtFeatureVisualizer* makVrv::DtFeature::findFeatureVisualizer ( )

Attempt to get the feature visualizer for the feature.

void makVrv::DtFeature::setFeatureVisualizer ( DtFeatureVisualizer vis)

Sets the feature visualizer for the feature.

Friends And Related Function Documentation

friend class DtFeatureSet
friend
friend class DtFaccManager
friend

Member Data Documentation

const DtElementID makVrv::DtFeature::myElementId
protected
DFAD::FeatureID makVrv::DtFeature::myFeatureID
protected
unsigned int makVrv::DtFeature::mySourceId
protected
DtFaccCode makVrv::DtFeature::myFeatureCode
protected
DFAD::SurfaceMaterialCode makVrv::DtFeature::mySoilType
protected
float makVrv::DtFeature::myWidth
protected
float makVrv::DtFeature::myLength
protected
float makVrv::DtFeature::myHeight
protected
float makVrv::DtFeature::myOrientation
protected
DtFeatureVisualizer* makVrv::DtFeature::myFeatureVisualizer
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)