VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions
makVrv::DtStateView< StateType > Class Template Reference

template<class StateType>
class makVrv::DtStateView< StateType >

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.

Inheritance diagram for makVrv::DtStateView< StateType >:
Inheritance graph
[legend]

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

DtSimEntrymySimEntry
 
StateType * myState
 

Private Member Functions

 DtStateView ()
 
 DtStateView (const DtStateView &)
 
DtStateViewoperator= (const DtStateView &)
 

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtBaseStateView
 DtBaseStateView ()
 

Constructor & Destructor Documentation

template<class StateType >
makVrv::DtStateView< StateType >::DtStateView ( DtSimEntry entry)
template<class StateType >
makVrv::DtStateView< StateType >::~DtStateView ( )
virtual
template<class StateType>
makVrv::DtStateView< StateType >::DtStateView ( )
private

Non-Existant.

template<class StateType>
makVrv::DtStateView< StateType >::DtStateView ( const DtStateView< StateType > &  )
private

Member Function Documentation

template<class StateType >
void makVrv::DtStateView< StateType >::forceUpdate ( )

Force a single update which will be sent to all views regardless of update rates.

template<class StateType >
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().

template<class StateType >
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.

template<class StateType >
const StateType & makVrv::DtStateView< StateType >::state ( )

Return the state this is a view onto.

template<class StateType >
const StateType & makVrv::DtStateView< StateType >::state ( ) const

Return the state this is a view onto.

template<class StateType >
bool makVrv::DtStateView< StateType >::isCompatible ( DtSimEntry entry)
static
template<class StateType >
bool makVrv::DtStateView< StateType >::isCompatible ( DtSimState entry)
static

Returns true if the DtSimState is of of type T.

template<class StateType >
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().

template<class StateType>
DtUniqueID makVrv::DtStateView< StateType >::id ( ) const
inline
template<class StateType>
DtStateView& makVrv::DtStateView< StateType >::operator= ( const DtStateView< StateType > &  )
private

Member Data Documentation

template<class StateType>
boost::signalslib::signal<void (DtStateView<StateType>*)> makVrv::DtStateView< StateType >::signal_stateViewUpdated

Emitted when a this view's state has been updated.

template<class StateType>
DtSimEntry& makVrv::DtStateView< StateType >::mySimEntry
protected
template<class StateType>
StateType* makVrv::DtStateView< StateType >::myState
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)