![]() |
VR-Forces 5.0.1 Developer's Guide
|
A DtStateViewCollection is a collection of DtStateViews of a specific state.

Public Types | |
| typedef std::map< DtUniqueID, DtStateView< T > * > | StateViewMap |
Public Member Functions | |
| DtStateViewCollection (DtDe &de, DtSimEntryUpdater::UpdateRate rate) | |
| virtual | ~DtStateViewCollection () |
| void | setUpdateRate (DtSimEntryUpdater::UpdateRate rate) |
| size_t | size () const |
| const StateViewMap & | stateViewMap () const |
| bool | hasStateView (DtUniqueID id) const |
| const DtStateView< T > * | findStateView (DtUniqueID id) const |
Public Attributes | |
| boost::signalslib::signal < void(const DtStateView< T > &)> | signal_stateViewAdded |
| boost::signalslib::signal < void(const DtStateView< T > &)> | signal_stateViewAboutToBeRemoved |
Protected Member Functions | |
| bool | isCompatible (DtSimObjectEntry &entry) |
| bool | isCompatible (DtSimState &entry) |
| void | onSimObjectEntryAdded (DtSimObjectEntry &entry) |
| void | onSimObjectEntryAboutToBeRemoved (DtSimObjectEntry &entry) |
| void | onSimObjectStateEntryAdded (DtSimObjectEntry &entry, DtSimState &) |
| void | onSimObjectStateEntryAboutToBeRemoved (DtSimObjectEntry &entry, DtSimState &) |
| void | populateFromExistingEntries () |
Protected Attributes | |
| DtDe & | myDe |
| StateViewMap | myStateViewMap |
| DtSimEntryUpdater::UpdateRate | myRate |
| DtSignalConnectionManager | myConnections |
| typedef std::map<DtUniqueID, DtStateView<T>* > makVrv::DtStateViewCollection< T >::StateViewMap |
Map of unique id's to DtStateViews's.
| makVrv::DtStateViewCollection< T >::DtStateViewCollection | ( | DtDe & | de, |
| DtSimEntryUpdater::UpdateRate | rate | ||
| ) |
CTOR. Connects to DtSimData for signals about DtSimObjectEntry and DtSimState changes. Sets the update rate of all the DtStateViews created.
References makVrv::bind(), makVrv::DtDe::dataBank(), makVrv::DtSignalConnectionManager::manageConnection(), makVrv::DtStateViewCollection< T >::myConnections, makVrv::DtStateViewCollection< T >::myDe, makVrv::DtStateViewCollection< T >::populateFromExistingEntries(), makVrv::DtSimData::signal_simObjectEntryAdded, makVrv::DtSimData::signal_simObjectEntryToBeRemoved, makVrv::DtSimData::signal_simStateAdded, makVrv::DtSimData::signal_simStateToBeRemoved, and makVrv::DtDataBank::simData().
|
virtual |
DTOR.
| void makVrv::DtStateViewCollection< T >::setUpdateRate | ( | DtSimEntryUpdater::UpdateRate | rate | ) |
Set the rate of every state view in the container.
| size_t makVrv::DtStateViewCollection< T >::size | ( | ) | const |
Return the number of the objects in the container.
| const DtStateViewCollection< T >::StateViewMap & makVrv::DtStateViewCollection< T >::stateViewMap | ( | ) | const |
Return the map of DtStateViews's in this collection.
| bool makVrv::DtStateViewCollection< T >::hasStateView | ( | DtUniqueID | id | ) | const |
Returns true if a state view with that ID exists.
| const DtStateView< T > * makVrv::DtStateViewCollection< T >::findStateView | ( | DtUniqueID | id | ) | const |
Find DtStateView by id.
|
protected |
Returns true if the DtSimEntry contains a state of type T.
References makVrv::DtStateView< StateType >::isCompatible().
Referenced by makVrf::DtVrlinkSimulatedBaseStateViewCollection::isCompatible().
|
protected |
Returns true if the state if of type T.
References makVrv::DtStateView< StateType >::isCompatible().
|
protected |
Called when a DtSimObjectEntry is added.
References makVrv::DtSimEntry::id(), and makVrv::DtStateView< StateType >::setUpdateRate().
|
protected |
Called when a DtSimObjectEntry is about to be removed.
References makVrv::DtSimEntry::id().
|
protected |
Called when a DtSimState is added to a DtSimObjectEntry.
References makVrv::DtSimEntry::id(), and makVrv::DtStateView< StateType >::setUpdateRate().
|
protected |
Called when a DtSimState is about to be removed from a DtSimObjectEntry.
References makVrv::DtSimEntry::id().
|
protected |
Go through existing DtSimEntry's and populate this container.
Referenced by makVrv::DtStateViewCollection< T >::DtStateViewCollection().
| boost::signalslib::signal<void (const DtStateView<T>&)> makVrv::DtStateViewCollection< T >::signal_stateViewAdded |
Signal emitted when a DtStateView is added.
| boost::signalslib::signal<void (const DtStateView<T>&)> makVrv::DtStateViewCollection< T >::signal_stateViewAboutToBeRemoved |
Signal emitted when a DtStateView is about to be removed.
|
protected |
Referenced by makVrv::DtStateViewCollection< T >::DtStateViewCollection().
|
protected |
|
protected |
|
protected |
Referenced by makVrv::DtStateViewCollection< T >::DtStateViewCollection().