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 | Protected Member Functions | Protected Attributes | Friends
makVrf::DtExternalCurrentFrameState Class Reference

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.

Inheritance diagram for makVrf::DtExternalCurrentFrameState:
Inheritance graph
[legend]

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
 

Constructor & Destructor Documentation

makVrf::DtExternalCurrentFrameState::DtExternalCurrentFrameState ( DtStateData *  sd)
inline

Constructs the current-frame state view for the given state data.

Parameters
sdThe owning state data object.
virtual makVrf::DtExternalCurrentFrameState::~DtExternalCurrentFrameState ( )
overridevirtual

Member Function Documentation

bool makVrf::DtExternalCurrentFrameState::isValid ( ) const
Returns
True if the state data is in a valid (non-cleared) state.
bool makVrf::DtExternalCurrentFrameState::isModified ( ) const
Returns
True if any current-frame state component has been modified since the last frame advance.
template<typename T_Component >
const T_Component* makVrf::DtExternalCurrentFrameState::getStateComponent ( int  index = 0) const

Returns a const pointer to the current-frame state component of the given type.

Template Parameters
T_ComponentThe specific state component type to retrieve.
Parameters
indexZero-based index when multiple components of the same type exist.
Returns
Const pointer to the component, or nullptr if not found.

Referenced by makVrf::DtLocalExtendedPropertiesNetInterface< DtSimLocalControlObjectNetInterface, DtControlObjectRepository >::updateUuid().

std::set<int> makVrf::DtExternalCurrentFrameState::modifiedStateComponentTypes ( ) const
Returns
A set of state component type integers that have been modified in the current frame.
virtual const DtFrameStateInterface* makVrf::DtExternalCurrentFrameState::getStateComponent ( DtStateComponent::StateComponentType  ,
int  index = 0 
) const
overridevirtual

Returns a const pointer to the current-frame state component of the given type at the specified index.

Parameters
scTypeThe state component type enum value.
indexZero-based index.
Returns
Const pointer to the interface, or nullptr if not found.

Implements makVrf::DtExternalFrameStateInterface.

virtual int makVrf::DtExternalCurrentFrameState::numComponents ( DtStateComponent::StateComponentType  scType) const
inlineoverridevirtual
Returns
The number of current-frame components registered for the given type.
Parameters
scTypeThe state component type enum value.

Implements makVrf::DtExternalFrameStateInterface.

template<typename T_Component >
std::vector<const T_Component*> makVrf::DtExternalCurrentFrameState::getStateComponentList ( ) const
inline

Returns a vector of const pointers to all current-frame components of the given type.

Template Parameters
T_ComponentThe specific state component type to collect.
Returns
A vector of const pointers (entries may be nullptr if a cast fails).
virtual void makVrf::DtExternalCurrentFrameState::addStateComponent ( const DtFrameStateInterface *  comp)
overridevirtual

Adds a read-only state component to the current-frame view during frame commit.

Parameters
compThe const component interface to add.

Implements makVrf::DtExternalFrameStateInterface.

virtual bool makVrf::DtExternalCurrentFrameState::hasStateComponentType ( DtStateComponent::StateComponentType  scType) const
overridevirtual
Returns
True if a state component of the given type is registered in the current-frame view.
Parameters
scTypeThe state component type enum value.

Implements makVrf::DtExternalFrameStateInterface.

virtual const DtString& makVrf::DtExternalCurrentFrameState::markingText ( ) const
overridevirtual
Returns
The marking text of the entity owning this state data.

Reimplemented from makVrf::DtExternalFrameStateInterface.

int makVrf::DtExternalCurrentFrameState::numberOfFrameStates ( ) const
inline
Returns
The total number of state component type slots currently allocated.
const std::vector<std::vector<const DtFrameStateInterface*> >& makVrf::DtExternalCurrentFrameState::frameStates ( ) const
inline
Returns
The internal table of read-only current-frame state component interfaces, indexed by state component type.
bool makVrf::DtExternalCurrentFrameState::advancedFrame ( ) const
Returns
True if the frame has been advanced at least once for this state data.
virtual void makVrf::DtExternalCurrentFrameState::removeStateComponent ( const DtFrameStateInterface *  component)
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.

Friends And Related Function Documentation

friend class DtStateData
friend

Member Data Documentation

std::vector<std::vector<const DtFrameStateInterface*> > makVrf::DtExternalCurrentFrameState::myFrameState {}
protected

The table of read-only current-frame state component interfaces, indexed by state component type.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)