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

Implementation of handle which allows controlling entity geometry which has been inserted into the terrain. More...

Inheritance diagram for DtEntityTerrainGeometryHandle:
Inheritance graph
[legend]

Classes

class  CollisionObject
 Bullet collision object which defaults to being disabled and is enabled when the enable count is non-zero. More...
 
class  DynamicFeature
 

Public Types

typedef std::vector
< CollisionObject::Ptr
CollisionObjectVector
 
typedef boost::unordered_map
< DtAppearance,
CollisionObjectVector
AppearanceMap
 

Public Member Functions

 DtEntityTerrainGeometryHandle (DtVantageTerrainEngine &engine, const DtFilename &model)
 Create a handle from the given model file. More...
 
 ~DtEntityTerrainGeometryHandle ()
 Removes all geometries from terrain on destruction. More...
 
bool isValid () const
 Returns false if object was not configured successfully. More...
 
bool isDisabled () const
 Implementation of DtTerrainGeometryHandle interface. More...
 
void disable ()
 Resets to default state with no geometry in the terrain. More...
 
void setAppearance (DtAppearance app)
 Set appearance. More...
 
void setPosition (const DtPoint &location, const DtDcm &orientation)
 Sets position in space. More...
 
- Public Member Functions inherited from DtTerrainGeometryHandle
virtual ~DtTerrainGeometryHandle ()
 Virtual destructor. More...
 

Protected Member Functions

virtual CollisionObjectVectorloadAppearance (DtAppearance flags)
 Get the collision objects associated with a given appearance. More...
 
virtual void setupDynamicFeature (const DtPoint &location, double radius)
 
void destroyDynamicFeature ()
 

Protected Attributes

tbb::spin_mutex myMutex
 
DtVantageTerrainEnginemyVantageTerrainEngine
 
const DtFilename myFile
 
boost::optional< DtAppearance > myCurrentAppearance
 
boost::optional< DtPointmyCurrentLocation
 
boost::optional< DtDcm > myCurrentOrientation
 
boost::shared_ptr< DynamicFeaturemyFeature
 
makVrv::DtDynamicTerrainWorld::FeatureHandle myFeatureHandle
 
makVrv::DtDynamicTerrainWorld::RequestHandle myRequestHandle
 
AppearanceMap myAppearanceMap
 

Detailed Description

Implementation of handle which allows controlling entity geometry which has been inserted into the terrain.

Member Typedef Documentation

typedef boost::unordered_map<DtAppearance, CollisionObjectVector> DtEntityTerrainGeometryHandle::AppearanceMap

Constructor & Destructor Documentation

DtEntityTerrainGeometryHandle::DtEntityTerrainGeometryHandle ( DtVantageTerrainEngine engine,
const DtFilename &  model 
)
explicit

Create a handle from the given model file.

DtEntityTerrainGeometryHandle::~DtEntityTerrainGeometryHandle ( )

Removes all geometries from terrain on destruction.

Member Function Documentation

bool DtEntityTerrainGeometryHandle::isValid ( ) const

Returns false if object was not configured successfully.

bool DtEntityTerrainGeometryHandle::isDisabled ( ) const
virtual

Implementation of DtTerrainGeometryHandle interface.

Implements DtTerrainGeometryHandle.

void DtEntityTerrainGeometryHandle::disable ( )
virtual

Resets to default state with no geometry in the terrain.

Call the setAppearance and setPosition functions to add it back.

Implements DtTerrainGeometryHandle.

void DtEntityTerrainGeometryHandle::setAppearance ( DtAppearance  app)
virtual

Set appearance.

Implements DtTerrainGeometryHandle.

void DtEntityTerrainGeometryHandle::setPosition ( const DtPoint location,
const DtDcm &  orientation 
)
virtual

Sets position in space.

Implements DtTerrainGeometryHandle.

virtual CollisionObjectVector& DtEntityTerrainGeometryHandle::loadAppearance ( DtAppearance  flags)
protectedvirtual

Get the collision objects associated with a given appearance.

virtual void DtEntityTerrainGeometryHandle::setupDynamicFeature ( const DtPoint location,
double  radius 
)
protectedvirtual
void DtEntityTerrainGeometryHandle::destroyDynamicFeature ( )
protected

Member Data Documentation

tbb::spin_mutex DtEntityTerrainGeometryHandle::myMutex
mutableprotected
DtVantageTerrainEngine& DtEntityTerrainGeometryHandle::myVantageTerrainEngine
protected
const DtFilename DtEntityTerrainGeometryHandle::myFile
protected
boost::optional<DtAppearance> DtEntityTerrainGeometryHandle::myCurrentAppearance
protected
boost::optional<DtPoint> DtEntityTerrainGeometryHandle::myCurrentLocation
protected
boost::optional<DtDcm> DtEntityTerrainGeometryHandle::myCurrentOrientation
protected
boost::shared_ptr<DynamicFeature> DtEntityTerrainGeometryHandle::myFeature
protected
makVrv::DtDynamicTerrainWorld::FeatureHandle DtEntityTerrainGeometryHandle::myFeatureHandle
protected
makVrv::DtDynamicTerrainWorld::RequestHandle DtEntityTerrainGeometryHandle::myRequestHandle
protected
AppearanceMap DtEntityTerrainGeometryHandle::myAppearanceMap
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)