![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtStateView is a the interface to simulation state information. More...

Public Member Functions | |
| DtStateView (DtSimEntry &entry) | |
| CTOR. | |
| virtual | ~DtStateView () |
| DTOR. | |
| void | forceUpdate () |
| Force a single update which will be sent to all views regardless of update rates. | |
| void | setUpdateRate (DtSimEntryUpdater::UpdateRate rate) |
| Set the rate this view will be updated with state information. | |
| virtual void | emitStateViewUpdated () |
| This will get called by the DtSimEntry when the state for this view has been updated. | |
| const StateType & | state () |
| Return the state this is a view onto. | |
| const StateType & | state () const |
| Return the state this is a view onto. | |
| DtUniqueID | id () const |
Static Public Member Functions | |
| static bool | isCompatible (DtSimEntry &entry) |
| Returns true if the DtSimEntry contains a state of type T. | |
| static StateType * | findState (DtSimEntry &entry) |
| Returns a pointer to the state type for an entry, if the state is not found a null pointer is returned. | |
Public Attributes | |
| boost::signal< void(DtStateView < StateType > *)> | signal_stateViewUpdated |
| Emitted when a this view's state has been updated. | |
Protected Attributes | |
| DtSimEntry & | mySimEntry |
| StateType * | myState |
Private Member Functions | |
| DtStateView () | |
| Non-Existant. | |
| DtStateView (const DtStateView &) | |
| DtStateView & | operator= (const DtStateView &) |
A DtStateView is a the interface to simulation state information.
Users can create DtStateViews for specific state they care about and it will be updated at the requested rate.
| makVrv::DtStateView< StateType >::DtStateView | ( | DtSimEntry & | entry | ) |
CTOR.
References makVrv::DtStateView< StateType >::findState(), and makVrv::DtStateView< StateType >::myState.
| makVrv::DtStateView< StateType >::~DtStateView | ( | ) | [virtual] |
DTOR.
References makVrv::DtSimEntryUpdater::NoUpdates.
| makVrv::DtStateView< StateType >::DtStateView | ( | ) | [private] |
Non-Existant.
| makVrv::DtStateView< StateType >::DtStateView | ( | const DtStateView< StateType > & | ) | [private] |
| void makVrv::DtStateView< StateType >::forceUpdate | ( | ) |
Force a single update which will be sent to all views regardless of update rates.
| void makVrv::DtStateView< StateType >::setUpdateRate | ( | DtSimEntryUpdater::UpdateRate | rate | ) |
Set the rate this view will be updated with state information.
Referenced by makVrv::DtStateViewCollection< T >::onSimObjectEntryAdded().
| void makVrv::DtStateView< StateType >::emitStateViewUpdated | ( | ) | [virtual] |
This will get called by the DtSimEntry when the state for this view has been updated.
This emits a signal containing the state view that was updated.
Implements makVrv::DtBaseStateView.
| const StateType & makVrv::DtStateView< StateType >::state | ( | ) |
Return the state this is a view onto.
| const StateType & makVrv::DtStateView< StateType >::state | ( | ) | const |
Return the state this is a view onto.
| bool makVrv::DtStateView< StateType >::isCompatible | ( | DtSimEntry & | entry | ) | [static] |
Returns true if the DtSimEntry contains a state of type T.
References makVrv::DtStateView< StateType >::findState().
Referenced by makVrv::DtSimObjectEntryCollection< T >::isCompatible(), and makVrv::DtStateViewCollection< T >::isCompatible().
| StateType * makVrv::DtStateView< StateType >::findState | ( | DtSimEntry & | entry | ) | [static] |
Returns a pointer to the state type for an entry, if the state is not found a null pointer is returned.
References makVrv::DtSimEntry::simStates().
Referenced by makVrv::DtStateView< StateType >::DtStateView(), and makVrv::DtStateView< StateType >::isCompatible().
| DtUniqueID makVrv::DtStateView< StateType >::id | ( | ) | const [inline] |
| DtStateView& makVrv::DtStateView< StateType >::operator= | ( | const DtStateView< StateType > & | ) | [private] |
| boost::signal<void (DtStateView<StateType>*)> makVrv::DtStateView< StateType >::signal_stateViewUpdated |
Emitted when a this view's state has been updated.
DtSimEntry& makVrv::DtStateView< StateType >::mySimEntry [protected] |
Referenced by makVrv::DtStateView< DtVrfObjectDataState >::id().
StateType* makVrv::DtStateView< StateType >::myState [protected] |
Referenced by makVrv::DtStateView< StateType >::DtStateView().