VR-Engage  2.2
Loading...
Searching...
No Matches
vreRtd::DtVreRtdTraitTerrainQuery Class Reference

Detailed Description

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>

Inheritance diagram for vreRtd::DtVreRtdTraitTerrainQuery:
[legend]

Public Member Functions

 DtVreRtdTraitTerrainQuery ()
 
virtual ~DtVreRtdTraitTerrainQuery ()
 
void setCheckTerrain (bool status)
 

Protected Attributes

DtPhysicalWorld * myPhysicalWorld
 
bool myCheckTerrain
 

Constructor & Destructor Documentation

◆ DtVreRtdTraitTerrainQuery()

vreRtd::DtVreRtdTraitTerrainQuery::DtVreRtdTraitTerrainQuery ( )
inline

Constructor.

Initializes a new terrain query trait with terrain checking enabled by default.

References myCheckTerrain.

◆ ~DtVreRtdTraitTerrainQuery()

virtual vreRtd::DtVreRtdTraitTerrainQuery::~DtVreRtdTraitTerrainQuery ( )
inlinevirtual

Virtual destructor.

Cleans up resources used by the terrain query trait.

Member Function Documentation

◆ setCheckTerrain()

void vreRtd::DtVreRtdTraitTerrainQuery::setCheckTerrain ( bool status)

Sets whether terrain should be checked.

Parameters
statusTrue 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.

Member Data Documentation

◆ myPhysicalWorld

DtPhysicalWorld* vreRtd::DtVreRtdTraitTerrainQuery::myPhysicalWorld
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.

◆ myCheckTerrain

bool vreRtd::DtVreRtdTraitTerrainQuery::myCheckTerrain
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().


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