VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtTerrainCapabilities Class Reference

This class holds parameters which define the capabilities of the current terrain. The terrain implementation defines the capabilities of the terrain, and users of the DtTerrainInterface and query for these capabilities. Some capability parameters are defined directly here, and there is also a free-form string map where other terrain capabilities can be defined by the terrain implementation using a key-value pair type of structure.

Related Examples

Public Member Functions

 DtTerrainCapabilities ()
 
virtual ~DtTerrainCapabilities ()
 
virtual void setIsHighFidelityTerrain (bool b)
 
virtual bool isHighFidelityTerrain () const
 
virtual bool supportsTerrainPreload () const
 
virtual void setSupportsTerrainPreload (bool value)
 

Private Member Functions

 DtTerrainCapabilities (const DtTerrainCapabilities &orig)
 
DtTerrainCapabilitiesoperator= (const DtTerrainCapabilities &orig)
 
bool mySupportsTerrainPreload
 
bool myHasNonPolygonalWaterRegions
 
bool myIsHighFidelityTerrain
 
std::map< DtString, DtStringmyCapabilitiesMap
 
virtual bool hasNonPolygonalWaterRegions () const
 
virtual void setHasNonPolygonalWaterRegions (bool value)
 
virtual DtString capabilityValue (const DtString &key) const
 
virtual void setCapabilityValue (const DtString &key, const DtString &value)
 
virtual void clearCapability (const DtString &key)
 
virtual const std::map
< DtString, DtString > & 
capabilityMap () const
 

Constructor & Destructor Documentation

DtTerrainCapabilities::DtTerrainCapabilities ( const DtTerrainCapabilities orig)
private

Not implemented.

DtTerrainCapabilities::DtTerrainCapabilities ( )
virtual DtTerrainCapabilities::~DtTerrainCapabilities ( )
virtual

Member Function Documentation

DtTerrainCapabilities& DtTerrainCapabilities::operator= ( const DtTerrainCapabilities orig)
private

Not implemented.

virtual void DtTerrainCapabilities::setIsHighFidelityTerrain ( bool  b)
virtual

Returns true if this is a high fidelity terrain (more than just a sphere or bounding volume)

virtual bool DtTerrainCapabilities::isHighFidelityTerrain ( ) const
virtual
virtual bool DtTerrainCapabilities::supportsTerrainPreload ( ) const
virtual

Indicates whether or not the loaded terrain responds to terrainPreloadAreas() calls. If false, the terrainPreloadAreas() is assumed to be a no-op, and there is no benefit to calling it.

virtual void DtTerrainCapabilities::setSupportsTerrainPreload ( bool  value)
virtual

Indicates whether or not the loaded terrain responds to terrainPreloadAreas() calls. If false, the terrainPreloadAreas() is assumed to be a no-op, and there is no benefit to calling it.

virtual bool DtTerrainCapabilities::hasNonPolygonalWaterRegions ( ) const
virtual

Indicates whether or not the loaded terrain has non-polygonal water defined by a fixed altitude and possibly defined in a set of regions (each of which can have a different water altitude)

virtual void DtTerrainCapabilities::setHasNonPolygonalWaterRegions ( bool  value)
virtual

Indicates whether or not the loaded terrain has non-polygonal water defined by a fixed altitude and possibly defined in a set of regions (each of which can have a different water altitude)

virtual DtString DtTerrainCapabilities::capabilityValue ( const DtString key) const
virtual
Returns
The capability value associated with the specified key.
virtual void DtTerrainCapabilities::setCapabilityValue ( const DtString key,
const DtString value 
)
virtual

Sets teh capability value for the specified key. Will overwrite any existing value at that key.

virtual void DtTerrainCapabilities::clearCapability ( const DtString key)
virtual

Clears the specified capability key and any value associated.

virtual const std::map<DtString, DtString>& DtTerrainCapabilities::capabilityMap ( ) const
virtual
Returns
The entire capabilities key-value pair map.

Member Data Documentation

bool DtTerrainCapabilities::mySupportsTerrainPreload
protected

Indicates whether or not the loaded terrain has non-polygonal water defined by a fixed altitude and possibly defined in a set of regions (each of which can have a different water altitude)

bool DtTerrainCapabilities::myHasNonPolygonalWaterRegions
protected

Indicates whether or not the loaded terrain has non-polygonal water defined by a fixed altitude and possibly defined in a set of regions (each of which can have a different water altitude)

bool DtTerrainCapabilities::myIsHighFidelityTerrain
protected

Indicates whether or not the loaded terrain has non-polygonal water defined by a fixed altitude and possibly defined in a set of regions (each of which can have a different water altitude)

std::map<DtString, DtString> DtTerrainCapabilities::myCapabilitiesMap
protected

Indicates whether or not the loaded terrain has non-polygonal water defined by a fixed altitude and possibly defined in a set of regions (each of which can have a different water altitude)


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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)