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 | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
makVrf::DtExternalFrameStateInterface Class Referenceabstract

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.

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

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
 

Constructor & Destructor Documentation

makVrf::DtExternalFrameStateInterface::DtExternalFrameStateInterface ( const DtExternalFrameStateInterface &  )
private
makVrf::DtExternalFrameStateInterface::DtExternalFrameStateInterface ( )
private
makVrf::DtExternalFrameStateInterface::DtExternalFrameStateInterface ( DtStateData *  sd)

Constructs the interface and associates it with the given state data.

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

Member Function Documentation

DtExternalFrameStateInterface& makVrf::DtExternalFrameStateInterface::operator= ( const DtExternalFrameStateInterface &  )
private
template<typename T_Component >
bool makVrf::DtExternalFrameStateInterface::hasStateComponent ( ) const
inline

Returns true if a state component of the given type is present and can be cast to T_Component.

Template Parameters
T_ComponentThe specific state component type to check for.
Returns
True if the component exists and the cast succeeds.
template<typename T_Component >
const T_Component* makVrf::DtExternalFrameStateInterface::getStateComponent ( ) const
inline

Returns a const pointer to the state component of the requested type.

Template Parameters
T_ComponentThe specific state component type to retrieve.
Returns
Const pointer to the component if present, or nullptr.
virtual int makVrf::DtExternalFrameStateInterface::numComponents ( DtStateComponent::StateComponentType  ) const
pure virtual
Returns
The number of components of the given type registered in this frame state.
Parameters
scTypeThe state component type enum value.

Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.

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

Returns a vector of const pointers to all 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 bool makVrf::DtExternalFrameStateInterface::hasStateComponentType ( DtStateComponent::StateComponentType  ) const
pure virtual
Returns
True if a state component of the given type is registered.
Parameters
scTypeThe state component type enum value.

Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.

virtual const DtFrameStateInterface* makVrf::DtExternalFrameStateInterface::getStateComponent ( DtStateComponent::StateComponentType  ,
int  index = 0 
) const
pure virtual

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

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

Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.

virtual void makVrf::DtExternalFrameStateInterface::aboutToBeDeleted ( )
virtual

Fires the signal_externalFrameStateToBeDestroyed signal and marks this interface as cleared.

unsigned long long makVrf::DtExternalFrameStateInterface::legionGlobalId ( ) const
Returns
The Legion global ID of the owning state data object.
virtual void makVrf::DtExternalFrameStateInterface::removeStateComponent ( const DtFrameStateInterface *  fc = nullptr)
protectedpure virtual

Removes a state component from this frame-state view.

Parameters
fcThe component to remove, or nullptr.

Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.

virtual void makVrf::DtExternalFrameStateInterface::addStateComponent ( const DtFrameStateInterface *  comp)
protectedpure virtual

Adds a read-only state component to this frame-state view.

Parameters
compThe component to add.

Implemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.

virtual void makVrf::DtExternalFrameStateInterface::addStateComponent ( DtFrameStateInterface *  )
inlineprotectedvirtual

Adds a writable state component to this frame-state view. Throws DtUnimplementedMethod by default.

Parameters
compThe component to add.

Reimplemented in makVrf::DtExternalNextFrameState.

virtual const DtString& makVrf::DtExternalFrameStateInterface::markingText ( ) const
inlineprotectedvirtual
Returns
The marking text of the owning entity; throws DtUnimplementedMethod by default.

Reimplemented in makVrf::DtExternalCurrentFrameState, and makVrf::DtExternalNextFrameState.

Friends And Related Function Documentation

friend class DtExternalNextFrameState
friend

Member Data Documentation

boost::signals2::signal<void (const DtExternalFrameStateInterface*)> makVrf::DtExternalFrameStateInterface::signal_externalFrameStateToBeDestroyed
mutable

Signal emitted immediately before this interface is destroyed.

DtStateData* makVrf::DtExternalFrameStateInterface::myStateData
protected

The owning state data object.

bool makVrf::DtExternalFrameStateInterface::myCleared
protected

True after aboutToBeDeleted() has been called.


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)