![]() |
VR-Forces 4.10 Class Documentation
|
A DtSimEntry is a container of DtSimState's and represents the total state of an simulation object. More...

Public Types | |
| typedef std::vector< DtSimState * > | SimStateVector |
| A vector of DtSimState's. More... | |
| typedef std::multimap < DtSimEntryUpdater::UpdateRate, DtBaseStateView * > | UpdateRateMap |
| A multimap of the update rates and DtEventView's to be updated at that rate. More... | |
Public Member Functions | |
| DtSimEntry (DtDe &de, DtUniqueID id) | |
| CTOR. More... | |
| virtual | ~DtSimEntry () |
| DTOR. More... | |
| const SimStateVector & | simStates () const |
| SimStateVector accessor. More... | |
| bool | addState (DtSimState *state) |
| Return's true if state was added to the SimStateVector. More... | |
| bool | removeState (DtSimState *state) |
| Return's true if state was removed from the SimStateVector. More... | |
| void | forceUpdate (DtBaseStateView *stateView) |
| Force a state view to update in the next frame. More... | |
| void | setUpdateRate (DtSimEntryUpdater::UpdateRate rate, DtBaseStateView *stateView) |
| Set the update rate for the state view. More... | |
| DtSimEntryUpdater::UpdateRate | rateForView (DtBaseStateView *stateView) const |
| Returns the update rate for the state view. More... | |
| void | stateUpdated () |
| Called by the DtSimStateObject when a state has been updated. More... | |
| DtUniqueID | id () const |
| Return the unique Id of this entry. More... | |
Protected Types | |
| typedef std::vector < DtBaseStateView * > | ForcedUpdateVector |
Protected Member Functions | |
| void | reset () |
| void | addStateViewToUpdateRateMap (DtSimEntryUpdater::UpdateRate rate, DtBaseStateView *stateView) |
| Add stateView to myUpdateRateMap. More... | |
| void | removeStateViewFromUpdateRateMap (DtBaseStateView *stateView) |
| Remove the DtEventView from myUpdateRateMap. More... | |
| DtSimEntryUpdater::UpdateRate | maxUpdateRate () |
| Return the max update rate of myUpdateRateMap. More... | |
| DtSimEntryUpdater::UpdateRate | minUpdateRate () |
| Return the min update rate of myUpdateRateMap. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtUniqueID | myId |
| SimStateVector | mySimStateVector |
| ForcedUpdateVector | myForcedUpdateVector |
| UpdateRateMap | myUpdateRateMap |
| unsigned long long | myUpdateCounter |
Friends | |
| class | DtSimData |
| The sim data is the friend of the entry. More... | |
A DtSimEntry is a container of DtSimState's and represents the total state of an simulation object.
| typedef std::vector<DtSimState*> makVrv::DtSimEntry::SimStateVector |
A vector of DtSimState's.
| typedef std::multimap< DtSimEntryUpdater::UpdateRate, DtBaseStateView* > makVrv::DtSimEntry::UpdateRateMap |
A multimap of the update rates and DtEventView's to be updated at that rate.
|
protected |
| makVrv::DtSimEntry::DtSimEntry | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
| const SimStateVector& makVrv::DtSimEntry::simStates | ( | ) | const |
SimStateVector accessor.
Referenced by makVrv::DtStateView< StateType >::findState(), and makVrf::findStateFor().
| bool makVrv::DtSimEntry::addState | ( | DtSimState * | state | ) |
Return's true if state was added to the SimStateVector.
| bool makVrv::DtSimEntry::removeState | ( | DtSimState * | state | ) |
Return's true if state was removed from the SimStateVector.
| void makVrv::DtSimEntry::forceUpdate | ( | DtBaseStateView * | stateView | ) |
Force a state view to update in the next frame.
| void makVrv::DtSimEntry::setUpdateRate | ( | DtSimEntryUpdater::UpdateRate | rate, |
| DtBaseStateView * | stateView | ||
| ) |
Set the update rate for the state view.
The method must be called to receive any updates (and with a rate other than DtSimEntryUpdater::NoUpdates). Send DtSimEntryUpdater::NoUpdates to stop updating.
| DtSimEntryUpdater::UpdateRate makVrv::DtSimEntry::rateForView | ( | DtBaseStateView * | stateView | ) | const |
Returns the update rate for the state view.
| void makVrv::DtSimEntry::stateUpdated | ( | ) |
Called by the DtSimStateObject when a state has been updated.
This will alert DtEventView's that state has been updated.
| DtUniqueID makVrv::DtSimEntry::id | ( | ) | const |
Return the unique Id of this entry.
Referenced by makVrv::DtStateView< makVrf::DtVrlinkSimulatedAggregateState >::id(), makVrv::DtSimObjectEntryCollection< T >::onSimObjectEntryAboutToBeRemoved(), makVrv::DtStateViewCollection< T >::onSimObjectEntryAboutToBeRemoved(), makVrv::DtSimObjectEntryCollection< T >::onSimObjectEntryAdded(), makVrv::DtStateViewCollection< T >::onSimObjectEntryAdded(), makVrv::DtSimObjectEntryCollection< T >::onSimObjectStateEntryAboutToBeRemoved(), makVrv::DtStateViewCollection< T >::onSimObjectStateEntryAboutToBeRemoved(), makVrv::DtSimObjectEntryCollection< T >::onSimObjectStateEntryAdded(), and makVrv::DtStateViewCollection< T >::onSimObjectStateEntryAdded().
|
protected |
|
protected |
Add stateView to myUpdateRateMap.
Use setUpdateRate() to actually set the update rate.
|
protected |
Remove the DtEventView from myUpdateRateMap.
Use setUpdateRate(Dt0Hz) to stop the updates for a state view.
|
protected |
Return the max update rate of myUpdateRateMap.
|
protected |
Return the min update rate of myUpdateRateMap.
|
friend |
The sim data is the friend of the entry.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |