VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
DtDynamicTerrainStateComponentUtils Namespace Reference

Functions

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)
 

Variables

static tbb::atomic< inttheNextDynamicTerrainId = 0
 

Detailed Description

A set of utility functions for manager a list of DtDynamicTerrainStateComponent and the change data inside that list.

Function Documentation

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.

Variable Documentation

tbb::atomic<int> DtDynamicTerrainStateComponentUtils::theNextDynamicTerrainId = 0
static

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)