VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dynamicTerrainStateComponentUtils.h
Go to the documentation of this file.
1 #pragma once
4 #include <vector>
5 #include <atomic>
6 
10 class DtLocalObject;
11 
12 namespace makVrf
13 {
14  class DtDynamicTerrainStateComponent;
15 }
16 
19 namespace DtDynamicTerrainStateComponentUtils
20 {
21  static std::atomic<int> theNextDynamicTerrainId(0);
22 
26 
28  DT_DLL_vrfmodel void addChangeToStateComponents(std::vector<makVrf::DtDynamicTerrainStateComponent*>& stateComps,
29  const DtTerrainGeometryAndData& change, int maxChangesPerPublisher, DtLocalObject* localObject);
30 
33  DT_DLL_vrfmodel void updateChangeInStateComponents(std::vector<makVrf::DtDynamicTerrainStateComponent*>& stateComps,
34  unsigned index, const DtKeyValuePairList& changeData, unsigned priority, unsigned eventNumber);
35 
38  DT_DLL_vrfmodel void updateChangeInStateComponents(std::vector<makVrf::DtDynamicTerrainStateComponent*>& stateComps, unsigned index, const DtTerrainGeometryAndData& changeData);
39 
41  DT_DLL_vrfmodel const DtTerrainGeometryAndData& findChangeByIndex(const std::vector<makVrf::DtDynamicTerrainStateComponent*>& stateComps, unsigned index);
42 };
43 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: worldLocationStructArray.h:19
Definition: terrainGeometryAndData.h:24
Definition: keyValuePairList.h:18
DT_DLL_vrfmodel makVrf::DtDynamicTerrainStateComponent * createStateComponent(DtLocalObject *localObject)
Creates a new state component on the localObject and returns a pointer to it. Note that the state com...
DT_DLL_vrfmodel void updateChangeInStateComponents(std::vector< makVrf::DtDynamicTerrainStateComponent * > &stateComps, unsigned index, const DtKeyValuePairList &changeData, unsigned priority, unsigned eventNumber)
Updates an existing change, finding the item in the correct state component for it in the list based ...
static std::atomic< int > theNextDynamicTerrainId(0)
DT_DLL_vrfmodel void addChangeToStateComponents(std::vector< makVrf::DtDynamicTerrainStateComponent * > &stateComps, const DtTerrainGeometryAndData &change, int maxChangesPerPublisher, DtLocalObject *localObject)
Adds a new change geometry to the state component list. Creates a new state component if necessary...
DT_DLL_vrfmodel const DtTerrainGeometryAndData & findChangeByIndex(const std::vector< makVrf::DtDynamicTerrainStateComponent * > &stateComps, unsigned index)
Returns the geometry and data for the change at the given index.
A locally simulated VRF object.
Definition: localObject.h:98
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: dynamicTerrainStateComponent.h:45

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)