VR-Engage  2.2
Loading...
Searching...
No Matches
vreRtdTraitTerrainQuery.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file vreRtdTraitTerrainQuery.h
7//! \ingroup vreVrfRtd
8//! \brief Terrain query trait for VREngage RTD components
9//!
10//! This file defines the DtVreRtdTraitTerrainQuery class, which provides common
11//! functionality for terrain query operations in the VREngage RTD system.
12//! It allows components to query terrain elevation and features in a unified way.
13
14#pragma once
15
17
18namespace vreRtd
19{
20//! \brief Terrain query trait for VREngage RTD components
21//!
22//! This class provides common functionality for terrain query operations
23//! in the VREngage RTD system. It allows components to query terrain elevation
24//! and features with configurable behavior, such as enabling or disabling
25//! terrain checks. This trait is used by various RTD components that need
26//! to interact with the terrain.
27class RTD_VRF_BACKEND_PLUGIN_EXPORT DtVreRtdTraitTerrainQuery
28{
29public:
30 //! \brief Constructor
31 //!
32 //! Initializes a new terrain query trait with terrain checking enabled
33 //! by default.
38
39 //! \brief Virtual destructor
40 //!
41 //! Cleans up resources used by the terrain query trait.
43
44 //! \brief Sets whether terrain should be checked
45 //! \param status True to enable terrain checking, false to disable
46 //!
47 //! Enables or disables terrain checking for this trait. When disabled,
48 //! terrain queries may return default values or simplified results
49 //! instead of performing actual terrain intersection tests.
50 void setCheckTerrain(bool status);
51
52protected:
53 //! \brief Pointer to the physical world to query against
54 //!
55 //! The physical world represents the terrain database and other physical
56 //! entities that can be queried for intersections.
57 DtPhysicalWorld* myPhysicalWorld;
58
59 //! \brief Flag indicating whether terrain checking is enabled
60 //!
61 //! When true, terrain queries will check against the actual terrain database.
62 //! When false, they may return simplified results or default values.
64};
65} // namespace vreRtd
DtPhysicalWorld * myPhysicalWorld
Pointer to the physical world to query against.
Definition vreRtdTraitTerrainQuery.h:57
DtVreRtdTraitTerrainQuery()
Constructor.
Definition vreRtdTraitTerrainQuery.h:34
virtual ~DtVreRtdTraitTerrainQuery()
Virtual destructor.
Definition vreRtdTraitTerrainQuery.h:42
bool myCheckTerrain
Flag indicating whether terrain checking is enabled.
Definition vreRtdTraitTerrainQuery.h:63
void setCheckTerrain(bool status)
Sets whether terrain should be checked.
Definition vreRtdConfigFileReader.h:18
Common definitions for the RTD backend library.