|
VR-Engage
2.2
|
This class provides common functionality for terrain query operations in the VREngage RTD system. It allows components to query terrain elevation and features with configurable behavior, such as enabling or disabling terrain checks. This trait is used by various RTD components that need to interact with the terrain.
#include <vreRtdTraitTerrainQuery.h>
Public Member Functions | |
| DtVreRtdTraitTerrainQuery () | |
| virtual | ~DtVreRtdTraitTerrainQuery () |
| void | setCheckTerrain (bool status) |
Protected Attributes | |
| DtPhysicalWorld * | myPhysicalWorld |
| bool | myCheckTerrain |
|
inline |
Constructor.
Initializes a new terrain query trait with terrain checking enabled by default.
References myCheckTerrain.
|
inlinevirtual |
Virtual destructor.
Cleans up resources used by the terrain query trait.
| void vreRtd::DtVreRtdTraitTerrainQuery::setCheckTerrain | ( | bool | status | ) |
Sets whether terrain should be checked.
| status | True to enable terrain checking, false to disable |
Enables or disables terrain checking for this trait. When disabled, terrain queries may return default values or simplified results instead of performing actual terrain intersection tests.
|
protected |
Pointer to the physical world to query against.
The physical world represents the terrain database and other physical entities that can be queried for intersections.
|
protected |
Flag indicating whether terrain checking is enabled.
When true, terrain queries will check against the actual terrain database. When false, they may return simplified results or default values.
Referenced by DtVreRtdTraitTerrainQuery().