![]() |
VR-Forces Developer's Guide
|
Abstract base class that provides access to a set of state components within a DtStateData, representing either the next frame (read/write) or the current frame (read-only) view. Both DtExternalNextFrameState and DtExternalCurrentFrameState derive from this class.

Public Member Functions | |
| DtExternalFrameStateInterface (DtStateData *sd) | |
| virtual | ~DtExternalFrameStateInterface () |
| template<typename T_Component > | |
| bool | hasStateComponent () const |
| template<typename T_Component > | |
| const T_Component * | getStateComponent () const |
| virtual int | numComponents (DtStateComponent::StateComponentType) const =0 |
| template<typename T_Component > | |
| std::vector< const T_Component * > | getStateComponentList () const |
| virtual bool | hasStateComponentType (DtStateComponent::StateComponentType) const =0 |
| virtual const DtFrameStateInterface * | getStateComponent (DtStateComponent::StateComponentType, int index=0) const =0 |
| virtual void | aboutToBeDeleted () |
| unsigned long long | legionGlobalId () const |
Public Attributes | |
| boost::signals2::signal< void(const DtExternalFrameStateInterface *)> | signal_externalFrameStateToBeDestroyed |
Protected Member Functions | |
| virtual void | removeStateComponent (const DtFrameStateInterface *fc=nullptr)=0 |
| virtual void | addStateComponent (const DtFrameStateInterface *comp)=0 |
| virtual void | addStateComponent (DtFrameStateInterface *) |
| virtual const DtString & | markingText () const |
Protected Attributes | |
| DtStateData * | myStateData |
| bool | myCleared |
Private Member Functions | |
| DtExternalFrameStateInterface (const DtExternalFrameStateInterface &) | |
| DtExternalFrameStateInterface & | operator= (const DtExternalFrameStateInterface &) |
| DtExternalFrameStateInterface () | |
Friends | |
| class | DtExternalNextFrameState |
|
private |
|
private |
| makVrf::DtExternalFrameStateInterface::DtExternalFrameStateInterface | ( | DtStateData * | sd | ) |
Constructs the interface and associates it with the given state data.
| sd | The owning state data object. |
|
virtual |
|
private |
|
inline |
Returns true if a state component of the given type is present and can be cast to T_Component.
| T_Component | The specific state component type to check for. |
|
inline |
Returns a const pointer to the state component of the requested type.
| T_Component | The specific state component type to retrieve. |
|
pure virtual |
| scType | The state component type enum value. |
Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.
|
inline |
Returns a vector of const pointers to all components of the given type.
| T_Component | The specific state component type to collect. |
|
pure virtual |
| scType | The state component type enum value. |
Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.
|
pure virtual |
Returns a const pointer to the state component of the given type at the specified index.
| scType | The state component type enum value. |
| index | Zero-based index when multiple components of the same type exist. |
Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.
|
virtual |
Fires the signal_externalFrameStateToBeDestroyed signal and marks this interface as cleared.
|
protectedpure virtual |
Removes a state component from this frame-state view.
| fc | The component to remove, or nullptr. |
Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.
|
protectedpure virtual |
Adds a read-only state component to this frame-state view.
| comp | The component to add. |
Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.
|
inlineprotectedvirtual |
Adds a writable state component to this frame-state view. Throws DtUnimplementedMethod by default.
| comp | The component to add. |
Reimplemented in makVrf::DtExternalNextFrameState.
|
inlineprotectedvirtual |
DtUnimplementedMethod by default. Reimplemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.
|
friend |
|
mutable |
Signal emitted immediately before this interface is destroyed.
|
protected |
The owning state data object.
|
protected |
True after aboutToBeDeleted() has been called.