![]() |
VR-Forces 5.0.3 Developer's Guide
|
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.

Public Member Functions | |
| DtStateView (DtSimEntry &entry) | |
| virtual | ~DtStateView () |
| void | forceUpdate () |
| void | setUpdateRate (DtSimEntryUpdater::UpdateRate rate) |
| virtual void | emitStateViewUpdated () |
| const StateType & | state () |
| const StateType & | state () const |
| DtUniqueID | id () const |
Public Member Functions inherited from makVrv::DtBaseStateView | |
| virtual | ~DtBaseStateView () |
Static Public Member Functions | |
| static bool | isCompatible (DtSimEntry &entry) |
| static bool | isCompatible (DtSimState &entry) |
| static StateType * | findState (DtSimEntry &entry) |
Public Attributes | |
| boost::signalslib::signal < void(DtStateView< StateType > *)> | signal_stateViewUpdated |
Protected Attributes | |
| DtSimEntry & | mySimEntry |
| StateType * | myState |
Private Member Functions | |
| DtStateView () | |
| DtStateView (const DtStateView &) | |
| DtStateView & | operator= (const DtStateView &) |
Additional Inherited Members | |
Protected Member Functions inherited from makVrv::DtBaseStateView | |
| DtBaseStateView () | |
| 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::signalslib::signal<void (DtStateView<StateType>*)> makVrv::DtStateView< StateType >::signal_stateViewUpdated |
Emitted when a this view's state has been updated.
|
protected |
Referenced by makVrv::DtStateView< DtVrfObjectDataState >::id().
|
protected |
Referenced by makVrv::DtStateView< StateType >::DtStateView().