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 Attributes
makVrf::DtHumanStateComponentNextFrame Class Reference

Write-access implementation of DtHumanStateComponent for the next simulation frame. Backed by writable Legion repositories; setters mark the component modified when a value changes.

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

Public Member Functions

 DtHumanStateComponentNextFrame (DtStateData *sd)
 
virtual ~DtHumanStateComponentNextFrame () override
 
virtual const DtString diguyAppearance () const override
 
virtual void setDiguyAppearance (const DtString &) override
 
virtual const DtString diguyType () const override
 
virtual void setDiguyType (const DtString &) override
 
virtual const DtString diguyHeadAppearance () const override
 
virtual void setDiguyHeadAppearance (const DtString &) override
 
virtual const DtString diguyItemAppearance () const override
 
virtual void setDiguyItemAppearance (const DtString &) override
 
virtual const DtPatchIdentifier diguyPrimaryUnitPatch () const override
 
virtual void setDiguyPrimaryUnitPatch (const DtPatchIdentifier &) override
 
virtual const DtPatchIdentifier diguySecondaryUnitPatch () const override
 
virtual void setDiguySecondaryUnitPatch (const DtPatchIdentifier &) override
 
virtual const DtPatchIdentifier diguyRankPatch () const override
 
virtual void setDiguyRankPatch (const DtPatchIdentifier &) override
 
virtual const DtString diguyCharacterName () const override
 
virtual void setDiguyCharacterName (const DtString &) override
 
virtual const DtString diguyAction () const override
 
virtual void setDiguyAction (const DtString &) override
 
virtual const double bodyWeight () const override
 
virtual void setBodyWeight (const double &) override
 
virtual const bool diguyUsingAnimationOffset () const override
 
virtual void setDiguyUsingAnimationOffset (const bool &) override
 
virtual const float diguyTransitionSpeed () const override
 
virtual void setDiguyTransitionSpeed (const float &) override
 
virtual const DtVector diguyAnimationOffset () const override
 
virtual void setDiguyAnimationOffset (const DtVector &) override
 
virtual void setDiguyType (const DtString &newType, const DtString &newAppearance) override
 
virtual void makeWritable () override
 
virtual void makeReadOnly () override
 
- Public Member Functions inherited from makVrf::DtHumanStateComponent
 DtHumanStateComponent (DtStateData *sd)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtString, diguyAppearance, DiguyAppearance)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtString, diguyType, DiguyType)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtString, diguyHeadAppearance, DiguyHeadAppearance)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtString, diguyItemAppearance, DiguyItemAppearance)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtPatchIdentifier, diguyPrimaryUnitPatch, DiguyPrimaryUnitPatch)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtPatchIdentifier, diguySecondaryUnitPatch, DiguySecondaryUnitPatch)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtPatchIdentifier, diguyRankPatch, DiguyRankPatch)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtString, diguyCharacterName, DiguyCharacterName)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtString, diguyAction, DiguyAction)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (double, bodyWeight, BodyWeight)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (bool, diguyUsingAnimationOffset, DiguyUsingAnimationOffset)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtVector, diguyAnimationOffset, DiguyAnimationOffset)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (float, diguyTransitionSpeed, DiguyTransitionSpeed)
 
- Public Member Functions inherited from makVrf::DtFrameStateInterface
 DtFrameStateInterface (DtStateData *)
 
virtual ~DtFrameStateInterface ()
 
void setIsWritable (bool b)
 
bool isWritable () const
 
UInt64 stateId () const
 
UInt64 legionGlobalId () const
 
void setLegionGlobalId (UInt64 d)
 
virtual bool isModified () const
 
virtual void clearModified ()
 
virtual void markModified ()
 
virtual
DtStateComponent::StateComponentType 
type () const
 
virtual
DtStateComponent::StateComponentType 
componentType () const =0
 
virtual const char * stringType () const =0
 
void setId (UInt64 id)
 
virtual UInt64 id () const
 
virtual void updateStateData (DtStateData *sd)
 
virtual Legion::ReadStateInstance readStateInstance () const
 
virtual Legion::WriteStateInstance writeStateInstance ()
 
void emitComponentUpdated ()
 
void setMarkedForRemoval (bool b)
 
bool markedForRemoval () const
 
bool cleared () const
 
bool advancedFrame () const
 
virtual void frameAdvanced ()
 
virtual void convertToRemote ()
 
virtual void convertToLocal ()
 
virtual void aboutToBeDeleted ()
 

Protected Attributes

VRF::WriteDIGuyAppearanceRepository myWriteHumanComponent
 
LOM::WriteLifeformRepository myWriteLifeformRepository
 
- Protected Attributes inherited from makVrf::DtFrameStateInterface
bool myIsModified
 
UInt64 myId
 
UInt64 myStateId
 
UInt64 myLegionId
 
bool myIsWritable
 
bool myCleared
 
bool myAdvancedFrame
 
bool myMarkedForRemoval = false
 
DtStateData * myStateData
 

Additional Inherited Members

- Public Attributes inherited from makVrf::DtFrameStateInterface
boost::signals2::signal< void(DtFrameStateInterface *)> signal_stateComponentAboutToBeDeleted
 
boost::signals2::signal< void(const
DtFrameStateInterface *)> 
signal_componentModified
 

Constructor & Destructor Documentation

makVrf::DtHumanStateComponentNextFrame::DtHumanStateComponentNextFrame ( DtStateData *  sd)

Constructs the next-frame state and initialises the writable Legion repositories.

Parameters
sdThe state data object this component belongs to.
virtual makVrf::DtHumanStateComponentNextFrame::~DtHumanStateComponentNextFrame ( )
overridevirtual

Destructor; removes the write repositories from state data.

Member Function Documentation

virtual const DtString makVrf::DtHumanStateComponentNextFrame::diguyAppearance ( ) const
overridevirtual
Returns
The DI-Guy appearance string identifier.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyAppearance ( const DtString &  )
overridevirtual
Parameters
sThe new DI-Guy appearance string.
virtual const DtString makVrf::DtHumanStateComponentNextFrame::diguyType ( ) const
overridevirtual
Returns
The DI-Guy character type string.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyType ( const DtString &  )
overridevirtual
Parameters
sThe new DI-Guy character type string.
virtual const DtString makVrf::DtHumanStateComponentNextFrame::diguyHeadAppearance ( ) const
overridevirtual
Returns
The DI-Guy head/hat appearance override string.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyHeadAppearance ( const DtString &  )
overridevirtual
Parameters
sThe new DI-Guy head appearance string.
virtual const DtString makVrf::DtHumanStateComponentNextFrame::diguyItemAppearance ( ) const
overridevirtual
Returns
The DI-Guy hand-item appearance string.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyItemAppearance ( const DtString &  )
overridevirtual
Parameters
sThe new DI-Guy hand-item appearance string.
virtual const DtPatchIdentifier makVrf::DtHumanStateComponentNextFrame::diguyPrimaryUnitPatch ( ) const
overridevirtual
Returns
The primary unit patch identifier worn by the human figure.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyPrimaryUnitPatch ( const DtPatchIdentifier &  )
overridevirtual
Parameters
patchIdThe new primary unit patch identifier.
virtual const DtPatchIdentifier makVrf::DtHumanStateComponentNextFrame::diguySecondaryUnitPatch ( ) const
overridevirtual
Returns
The secondary unit patch identifier worn by the human figure.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguySecondaryUnitPatch ( const DtPatchIdentifier &  )
overridevirtual
Parameters
patchIdThe new secondary unit patch identifier.
virtual const DtPatchIdentifier makVrf::DtHumanStateComponentNextFrame::diguyRankPatch ( ) const
overridevirtual
Returns
The rank patch identifier worn by the human figure.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyRankPatch ( const DtPatchIdentifier &  )
overridevirtual
Parameters
patchIdThe new rank patch identifier.
virtual const DtString makVrf::DtHumanStateComponentNextFrame::diguyCharacterName ( ) const
overridevirtual
Returns
The individual character name assigned to this human figure.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyCharacterName ( const DtString &  )
overridevirtual
Parameters
nameThe new character name string.
virtual const DtString makVrf::DtHumanStateComponentNextFrame::diguyAction ( ) const
overridevirtual
Returns
The current DI-Guy animation action string.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyAction ( const DtString &  )
overridevirtual
Parameters
sThe new animation action string.
virtual const double makVrf::DtHumanStateComponentNextFrame::bodyWeight ( ) const
overridevirtual
Returns
The body-weight scalar for the human figure (1.0 is nominal).
virtual void makVrf::DtHumanStateComponentNextFrame::setBodyWeight ( const double &  )
overridevirtual
Parameters
sThe new body-weight scalar.
virtual const bool makVrf::DtHumanStateComponentNextFrame::diguyUsingAnimationOffset ( ) const
overridevirtual
Returns
True if an animation position offset is applied to the human figure.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyUsingAnimationOffset ( const bool &  )
overridevirtual
Parameters
sTrue to enable the animation offset, false to disable it.
virtual const float makVrf::DtHumanStateComponentNextFrame::diguyTransitionSpeed ( ) const
overridevirtual
Returns
The animation blend transition speed.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyTransitionSpeed ( const float &  )
overridevirtual
Parameters
sThe new animation transition speed.
virtual const DtVector makVrf::DtHumanStateComponentNextFrame::diguyAnimationOffset ( ) const
overridevirtual
Returns
The world-space animation position offset applied to the human figure.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyAnimationOffset ( const DtVector &  )
overridevirtual
Parameters
sThe new animation position offset vector.
virtual void makVrf::DtHumanStateComponentNextFrame::setDiguyType ( const DtString &  newType,
const DtString &  newAppearance 
)
overridevirtual

Sets the DI-Guy character type and appearance in a single call.

Parameters
newTypeThe new DI-Guy character type string.
newAppearanceThe new DI-Guy appearance string.

Reimplemented from makVrf::DtHumanStateComponent.

virtual void makVrf::DtHumanStateComponentNextFrame::makeWritable ( )
overridevirtual

Override to make component writable.

Reimplemented from makVrf::DtFrameStateInterface.

virtual void makVrf::DtHumanStateComponentNextFrame::makeReadOnly ( )
overridevirtual

Override to make component read-only.

Reimplemented from makVrf::DtFrameStateInterface.

Member Data Documentation

VRF::WriteDIGuyAppearanceRepository makVrf::DtHumanStateComponentNextFrame::myWriteHumanComponent
protected

Writable Legion repository for DI-Guy appearance data.

LOM::WriteLifeformRepository makVrf::DtHumanStateComponentNextFrame::myWriteLifeformRepository
protected

Writable Legion repository for lifeform (body weight) data.


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)