![]() |
VR-Forces Developer's Guide
|
Functions | |
| static std::atomic< int > | theNextDynamicTerrainId (0) |
| DT_DLL_vrfmodel makVrf::DtDynamicTerrainStateComponent * | createStateComponent (DtLocalObject *localObject) |
| DT_DLL_vrfmodel void | addChangeToStateComponents (std::vector< makVrf::DtDynamicTerrainStateComponent * > &stateComps, const DtTerrainGeometryAndData &change, int maxChangesPerPublisher, DtLocalObject *localObject) |
| DT_DLL_vrfmodel void | updateChangeInStateComponents (std::vector< makVrf::DtDynamicTerrainStateComponent * > &stateComps, unsigned index, const DtKeyValuePairList &changeData, unsigned priority, unsigned eventNumber) |
| DT_DLL_vrfmodel void | updateChangeInStateComponents (std::vector< makVrf::DtDynamicTerrainStateComponent * > &stateComps, unsigned index, const DtTerrainGeometryAndData &changeData) |
| DT_DLL_vrfmodel const DtTerrainGeometryAndData & | findChangeByIndex (const std::vector< makVrf::DtDynamicTerrainStateComponent * > &stateComps, unsigned index) |
A set of utility functions for manager a list of DtDynamicTerrainStateComponent and the change data inside that list.
|
static |
| DT_DLL_vrfmodel makVrf::DtDynamicTerrainStateComponent* DtDynamicTerrainStateComponentUtils::createStateComponent | ( | DtLocalObject * | localObject | ) |
Creates a new state component on the localObject and returns a pointer to it. Note that the state component is owned by the state component system and not by the caller of this function.
| DT_DLL_vrfmodel void DtDynamicTerrainStateComponentUtils::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 void DtDynamicTerrainStateComponentUtils::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 on the index.
| DT_DLL_vrfmodel void DtDynamicTerrainStateComponentUtils::updateChangeInStateComponents | ( | std::vector< makVrf::DtDynamicTerrainStateComponent * > & | stateComps, |
| unsigned | index, | ||
| const DtTerrainGeometryAndData & | changeData | ||
| ) |
Updates an existing change, finding the item in the correct state component for it in the list based on the index.
| DT_DLL_vrfmodel const DtTerrainGeometryAndData& DtDynamicTerrainStateComponentUtils::findChangeByIndex | ( | const std::vector< makVrf::DtDynamicTerrainStateComponent * > & | stateComps, |
| unsigned | index | ||
| ) |
Returns the geometry and data for the change at the given index.