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

In order to be a well defined state component, you must:

1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)

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

Public Member Functions

 DtArticulatedPartStateComponent (DtStateData *storage)
 
virtual DtArticulatedPart & attachPartToListIfMissing (DtArtPartType partType)
 
virtual
DtArticulatedPartStateRepository * 
attachPart (DtArtPartType partType)
 
virtual bool artPartListModified () const
 
virtual void addParameterType (int partType, int parameterType)
 
virtual void detachPartIfAttached (DtArtPartType partType)
 
virtual void detachPart (DtArtPartType partType)
 
- 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 ()
 

Additional Inherited Members

- Public Attributes inherited from makVrf::DtFrameStateInterface
boost::signals2::signal< void(DtFrameStateInterface *)> signal_stateComponentAboutToBeDeleted
 
boost::signals2::signal< void(const
DtFrameStateInterface *)> 
signal_componentModified
 
- Protected Member Functions inherited from makVrf::DtFrameStateInterface
virtual void makeWritable ()
 
virtual void makeReadOnly ()
 
- 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
 

Constructor & Destructor Documentation

makVrf::DtArticulatedPartStateComponent::DtArticulatedPartStateComponent ( DtStateData *  storage)
inline

Constructs the articulated part state component, associating it with the given state data storage.

Parameters
storagePointer to the state data storage.

Member Function Documentation

virtual DtArticulatedPart& makVrf::DtArticulatedPartStateComponent::attachPartToListIfMissing ( DtArtPartType  partType)
inlinevirtual

Attaches a part of the given type to the collection if not already present, and returns a reference to it.

Parameters
partTypeThe articulated part type to attach.
Returns
Reference to the newly attached or existing articulated part.

Reimplemented in makVrf::DtArticulatedPartStateComponentNextFrame.

virtual DtArticulatedPartStateRepository* makVrf::DtArticulatedPartStateComponent::attachPart ( DtArtPartType  partType)
inlinevirtual

Attaches a part of the given type and returns its state repository.

Parameters
partTypeThe articulated part type to attach.
Returns
Pointer to the articulated part state repository.

Reimplemented in makVrf::DtArticulatedPartStateComponentNextFrame.

virtual bool makVrf::DtArticulatedPartStateComponent::artPartListModified ( ) const
inlinevirtual

Returns true if the articulated part list has been modified since last cleared.

Reimplemented in makVrf::DtArticulatedPartStateComponentCurrentFrame, and makVrf::DtArticulatedPartStateComponentNextFrame.

virtual void makVrf::DtArticulatedPartStateComponent::addParameterType ( int  partType,
int  parameterType 
)
inlinevirtual

Adds a parameter metric type for the specified articulated part type.

Parameters
partTypeThe articulated part type.
parameterTypeThe parameter metric type to add.

Reimplemented in makVrf::DtArticulatedPartStateComponentNextFrame.

virtual void makVrf::DtArticulatedPartStateComponent::detachPartIfAttached ( DtArtPartType  partType)
inlinevirtual

Detaches the part of the given type if it is currently attached; a no-op if not present.

Parameters
partTypeThe articulated part type to detach.

Reimplemented in makVrf::DtArticulatedPartStateComponentNextFrame.

virtual void makVrf::DtArticulatedPartStateComponent::detachPart ( DtArtPartType  partType)
inlinevirtual

Detaches the part of the given type.

Parameters
partTypeThe articulated part type to detach.

Reimplemented in makVrf::DtArticulatedPartStateComponentNextFrame.


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)