14#include <VxTerrain/VxPagedTerrainProducer.h>
16#include <tbb/spin_mutex.h>
20class VxCollisionGeometry;
80 void insertTerrain(
int sourceId,
int requestId, VxMath::BoundingBox requestBounds, Vx::VxCollisionGeometry* cg);
tbb::spin_mutex myInsertMutex
Mutex for thread-safe insertion.
Definition vortexPagedTerrainProducer.h:131
PagedCells getPagedCells()
Gets all paged cells.
void setTerrainCellSize(double cellSize)
Sets the terrain cell size.
PagedCell * getPagedCellForSourceID(int sourceId)
Gets the paged cell for a source ID.
void insertTerrain(int sourceId, int requestId)
Inserts terrain with existing source ID.
PagedCells myPagedCells
Map of all paged cells by source ID.
Definition vortexPagedTerrainProducer.h:130
virtual std::vector< Vx::VxCollisionGeometry * > getAllCollisionGeometries()
Gets all collision geometries.
virtual void preStep() override
Performs pre-step operations.
bool isTerrainAvailable(const VxMath::Vector3 &inputCords)
Checks if terrain is available below coordinates.
virtual ~DtVortexPagedTerrainProducer() override
Destructor.
double myPagedTerrainCellSize
Size of terrain cells in meters.
Definition vortexPagedTerrainProducer.h:129
double getTerrainCellSize() const
Gets the terrain cell size.
virtual void _initialize() override
Initializes the paged terrain producer.
DtVortexPagedTerrainProducer()
Constructor.
void insertTerrain(int sourceId, int requestId, VxMath::BoundingBox requestBounds, Vx::VxCollisionGeometry *cg)
Inserts terrain with new collision geometry.
std::unordered_map< int, PagedCell * > PagedCells
Map type for storing paged cells indexed by source ID.
Definition vortexPagedTerrainProducer.h:51
Export macros for the VR-Forces Vortex extension library.
#define VREVRFVORTEX_DLL
Export macro for non-Windows platforms.
Definition export.h:30
Wheel articulated part IDs used in the system.
Definition surfaceToVxMaterialMapper.h:17
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
Structure for managing paged terrain cells.
Definition vortexPagedTerrainProducer.h:38
int requestId
Request ID of this paged cell.
Definition vortexPagedTerrainProducer.h:45
Vx::VxCollisionGeometry * collisionGeometry
Collision geometry of the paged cell.
Definition vortexPagedTerrainProducer.h:47
VxMath::BoundingBox requestBoundingBox
Bounding box of this request.
Definition vortexPagedTerrainProducer.h:46