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 <tbb/atomic.h>
6 
10 class DtLocalObject;
11 
12 namespace makVrf
13 {
14  class DtDynamicTerrainStateComponent;
15 }
16 
19 namespace DtDynamicTerrainStateComponentUtils
20 {
21  static tbb::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...
static tbb::atomic< int > theNextDynamicTerrainId
Definition: dynamicTerrainStateComponentUtils.h:21
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 ...
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. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)