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

Public Member Functions | |
| DtStateView (DtSimEntry &entry) | |
| CTOR. More... | |
| virtual | ~DtStateView () |
| DTOR. More... | |
| void | forceUpdate () |
| Force a single update which will be sent to all views regardless of update rates. More... | |
| void | setUpdateRate (DtSimEntryUpdater::UpdateRate rate) |
| Set the rate this view will be updated with state information. More... | |
| virtual void | emitStateViewUpdated () |
| This will get called by the DtSimEntry when the state for this view has been updated. More... | |
| const StateType & | state () |
| Return the state this is a view onto. More... | |
| const StateType & | state () const |
| Return the state this is a view onto. More... | |
| DtUniqueID | id () const |
Public Member Functions inherited from makVrv::DtBaseStateView | |
| virtual | ~DtBaseStateView () |
| DTOR. More... | |
Static Public Member Functions | |
| static bool | isCompatible (DtSimEntry &entry) |
| Returns true if the DtSimEntry contains a state of type T. More... | |
| static bool | isCompatible (DtSimState &entry) |
| Returns true if the DtSimState is of of type T. More... | |
| 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. More... | |
Public Attributes | |
| boost::signal< void(DtStateView < StateType > *)> | signal_stateViewUpdated |
| Emitted when a this view's state has been updated. More... | |
Protected Attributes | |
| DtSimEntry & | mySimEntry |
| StateType * | myState |
Private Member Functions | |
| DtStateView () | |
| Non-Existant. More... | |
| DtStateView (const DtStateView &) | |
| DtStateView & | operator= (const DtStateView &) |
Additional Inherited Members | |
Protected Member Functions inherited from makVrv::DtBaseStateView | |
| DtBaseStateView () | |
| CTOR. More... | |
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.
|
virtual |
DTOR.
References makVrv::DtSimEntryUpdater::NoUpdates.
|
private |
Non-Existant.
|
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(), and makVrv::DtStateViewCollection< T >::onSimObjectStateEntryAdded().
|
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.
|
static |
Returns true if the DtSimEntry contains a state of type T.
References makVrv::DtStateView< StateType >::findState().
Referenced by makVrv::DtStateViewCollection< T >::isCompatible(), and makVrv::DtSimObjectEntryCollection< T >::isCompatible().
|
static |
Returns true if the DtSimState is of of type T.
|
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().
|
inline |
|
private |
| boost::signal<void (DtStateView<StateType>*)> makVrv::DtStateView< StateType >::signal_stateViewUpdated |
Emitted when a this view's state has been updated.
|
protected |
|
protected |
Referenced by makVrv::DtStateView< StateType >::DtStateView().