VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends
makVrv::DtPointFeature Class Reference

The point feature is a feature that describes a single location. More...

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

Public Member Functions

virtual std::string generateDisplayName () const
 Generate a display name for this feature.
const DtVectorlocation () const
 Get the location, the location will be in local coordinate system of the feature layer the feature set is a member of.
void setLocation (const DtVector &location)
 Set the location of the point feature.
const DtVectordimensions () const
 Get the dimensions of the point feature.
void setDimensions (const DtVector &dimensions)
 Set the dimensions of the point feature.
double rotation () const
 Gets the rotation around Up in radians.
void setRotation (double angleRad)
 Sets the rotation around Up in radians.
- Public Member Functions inherited from makVrv::DtFeature
virtual ~DtFeature ()
 DTOR.
DtElementID elementId () const
 Get the element id of the 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.

Public Attributes

boost::signal< void(DtVector &)> signal_locationChanged
 Signal that the location changed.

Protected Member Functions

 DtPointFeature (DtElementID elementId, DFAD::FeatureID featureID, const DtFaccCode &feautureCode, unsigned int sourceId=0)
 CTOR is protected, use the DtFeatureSet interface for creating features.
virtual ~DtPointFeature ()
 DTOR is protected, use the DtFeatureSet interface for destroying features.
- Protected Member Functions inherited from makVrv::DtFeature
 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

DtVector myLocation
DtVector myDimensions
double myRotation
- Protected Attributes inherited from makVrv::DtFeature
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

Detailed Description

The point feature is a feature that describes a single location.

Typically an object at that location.

Constructor & Destructor Documentation

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

CTOR is protected, use the DtFeatureSet interface for creating features.

virtual makVrv::DtPointFeature::~DtPointFeature ( )
protectedvirtual

DTOR is protected, use the DtFeatureSet interface for destroying features.

Member Function Documentation

virtual std::string makVrv::DtPointFeature::generateDisplayName ( ) const
virtual

Generate a display name for this feature.

Implements makVrv::DtFeature.

const DtVector& makVrv::DtPointFeature::location ( ) const

Get the location, the location will be in local coordinate system of the feature layer the feature set is a member of.

void makVrv::DtPointFeature::setLocation ( const DtVector location)

Set the location of the point feature.

const DtVector& makVrv::DtPointFeature::dimensions ( ) const

Get the dimensions of the point feature.

x = width, y = length, z = height.

void makVrv::DtPointFeature::setDimensions ( const DtVector dimensions)

Set the dimensions of the point feature.

x = width, y = length, z = height.

double makVrv::DtPointFeature::rotation ( ) const

Gets the rotation around Up in radians.

void makVrv::DtPointFeature::setRotation ( double  angleRad)

Sets the rotation around Up in radians.

Friends And Related Function Documentation

friend class DtFeatureSet
friend

Member Data Documentation

boost::signal<void (DtVector&)> makVrv::DtPointFeature::signal_locationChanged

Signal that the location changed.

DtVector makVrv::DtPointFeature::myLocation
protected
DtVector makVrv::DtPointFeature::myDimensions
protected
double makVrv::DtPointFeature::myRotation
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)