![]() |
VR-Forces Developer's Guide
|
Read-only view of the current (committed) frame state components within a DtStateData. Safe to access from any thread once the frame has been advanced.

Public Member Functions | |
| DtExternalCurrentFrameState (DtStateData *sd) | |
| virtual | ~DtExternalCurrentFrameState () override |
| bool | isValid () const |
| bool | isModified () const |
| template<typename T_Component > | |
| const T_Component * | getStateComponent (int index=0) const |
| std::set< int > | modifiedStateComponentTypes () const |
| virtual const DtFrameStateInterface * | getStateComponent (DtStateComponent::StateComponentType, int index=0) const override |
| virtual int | numComponents (DtStateComponent::StateComponentType scType) const override |
| template<typename T_Component > | |
| std::vector< const T_Component * > | getStateComponentList () const |
| virtual void | addStateComponent (const DtFrameStateInterface *comp) override |
| virtual bool | hasStateComponentType (DtStateComponent::StateComponentType scType) const override |
| virtual const DtString & | markingText () const override |
| int | numberOfFrameStates () const |
| const std::vector< std::vector < const DtFrameStateInterface * > > & | frameStates () const |
| bool | advancedFrame () const |
Public Member Functions inherited from makVrf::DtExternalFrameStateInterface | |
| DtExternalFrameStateInterface (DtStateData *sd) | |
| virtual | ~DtExternalFrameStateInterface () |
| template<typename T_Component > | |
| bool | hasStateComponent () const |
| template<typename T_Component > | |
| const T_Component * | getStateComponent () const |
| template<typename T_Component > | |
| std::vector< const T_Component * > | getStateComponentList () const |
| virtual void | aboutToBeDeleted () |
| unsigned long long | legionGlobalId () const |
Protected Member Functions | |
| virtual void | removeStateComponent (const DtFrameStateInterface *component) override |
Protected Member Functions inherited from makVrf::DtExternalFrameStateInterface | |
| virtual void | addStateComponent (DtFrameStateInterface *) |
Protected Attributes | |
| std::vector< std::vector < const DtFrameStateInterface * > > | myFrameState {} |
Protected Attributes inherited from makVrf::DtExternalFrameStateInterface | |
| DtStateData * | myStateData |
| bool | myCleared |
Friends | |
| class | DtStateData |
Additional Inherited Members | |
Public Attributes inherited from makVrf::DtExternalFrameStateInterface | |
| boost::signals2::signal< void(const DtExternalFrameStateInterface *)> | signal_externalFrameStateToBeDestroyed |
|
inline |
Constructs the current-frame state view for the given state data.
| sd | The owning state data object. |
|
overridevirtual |
| bool makVrf::DtExternalCurrentFrameState::isValid | ( | ) | const |
| bool makVrf::DtExternalCurrentFrameState::isModified | ( | ) | const |
| const T_Component* makVrf::DtExternalCurrentFrameState::getStateComponent | ( | int | index = 0 | ) | const |
Returns a const pointer to the current-frame state component of the given type.
| T_Component | The specific state component type to retrieve. |
| index | Zero-based index when multiple components of the same type exist. |
Referenced by makVrf::DtLocalExtendedPropertiesNetInterface< DtSimLocalControlObjectNetInterface, DtControlObjectRepository >::updateUuid().
| std::set<int> makVrf::DtExternalCurrentFrameState::modifiedStateComponentTypes | ( | ) | const |
|
overridevirtual |
Returns a const pointer to the current-frame state component of the given type at the specified index.
| scType | The state component type enum value. |
| index | Zero-based index. |
Implements makVrf::DtExternalFrameStateInterface.
|
inlineoverridevirtual |
| scType | The state component type enum value. |
Implements makVrf::DtExternalFrameStateInterface.
|
inline |
Returns a vector of const pointers to all current-frame components of the given type.
| T_Component | The specific state component type to collect. |
|
overridevirtual |
Adds a read-only state component to the current-frame view during frame commit.
| comp | The const component interface to add. |
Implements makVrf::DtExternalFrameStateInterface.
|
overridevirtual |
| scType | The state component type enum value. |
Implements makVrf::DtExternalFrameStateInterface.
|
overridevirtual |
Reimplemented from makVrf::DtExternalFrameStateInterface.
|
inline |
|
inline |
| bool makVrf::DtExternalCurrentFrameState::advancedFrame | ( | ) | const |
|
overrideprotectedvirtual |
Removes the state component from the next list such that in an apply frame it will not be applied and removed from the current list. It is still current until the frame advances. Should never be called by developer directly.
Implements makVrf::DtExternalFrameStateInterface.
|
friend |
|
protected |
The table of read-only current-frame state component interfaces, indexed by state component type.