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::DtSpotReportStateComponent Class Reference

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

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

Public Member Functions

 DtSpotReportStateComponent (DtStateData *storage)
 
 UNDEFINED_RETURNREF_ACCESSOR_MUTATOR (DtUUID, contactUUID, ContactUUID)
 
 UNDEFINED_RETURNREF_ACCESSOR_MUTATOR (double, dateTimeOfReport, DateTimeOfReport)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (DtVector, worldPosition, WorldPosition)
 
 UNDEFINED_RETURNREF_ACCESSOR_MUTATOR (DtTaitBryan, worldOrientation, WorldOrientation)
 
 UNDEFINED_RETURNREF_ACCESSOR_MUTATOR (DtVector, worldVelocity, WorldVelocity)
 
 UNDEFINED_RETURNREF_ACCESSOR_MUTATOR (std::string, uniqueIdentifier, UniqueIdentifier)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (std::string, protocol, Protocol)
 
 UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (std::string, domain, Domain)
 
virtual const std::vector
< DtVector > & 
worldPositions () const
 
virtual const
DtSpotReportStateComponentData & 
frameState () const
 
virtual void setFrameState (const DtSpotReportStateComponentData &)
 
virtual bool addObservedBy (const DtUUID &s, double simTime)
 
virtual void removeObservedBy (const DtUUID &s)
 
virtual bool observedBy (const DtUUID &s) const
 
virtual const std::map< DtUUID,
double > & 
observedBy () const
 
virtual const
DtSimpleTypedDictionary & 
dictionary () const
 
virtual DtSimpleTypedDictionary & dictionary ()
 
- Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent
 DtSimulatedObjectStateComponent (DtStateData *)
 
virtual bool mainComponentOnLegion () const
 
- 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

- Static Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent
static
DtStateComponent::StateComponentType 
ComponentType ()
 
static const char * StringType ()
 
- Public Attributes inherited from makVrf::DtSimulatedObjectStateComponent
boost::signals2::signal< void(const
DtUUID &, const DtUUID
&, makVrf::SimStateID)> 
signal_uuidChanged
 
boost::signals2::signal< void(const
DtString &, const DtString
&, makVrf::SimStateID)> 
signal_markingTextChanged
 
boost::signals2::signal< void(int
oldForce, int newForce,
makVrf::SimStateID)> 
signal_forceChanged
 
boost::signals2::signal< void(const
DtSimulationAddress
&oldAddress, const
DtSimulationAddress
&newAddress,
makVrf::SimStateID)> 
signal_simEngineAddressChanged
 
- 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::DtSpotReportStateComponent::DtSpotReportStateComponent ( DtStateData *  storage)
inline

Constructs a spot report state component associated with the given state data storage.

Parameters
storagePointer to the owning state data container.

Member Function Documentation

makVrf::DtSpotReportStateComponent::UNDEFINED_RETURNREF_ACCESSOR_MUTATOR ( DtUUID  ,
contactUUID  ,
ContactUUID   
)
makVrf::DtSpotReportStateComponent::UNDEFINED_RETURNREF_ACCESSOR_MUTATOR ( double  ,
dateTimeOfReport  ,
DateTimeOfReport   
)
makVrf::DtSpotReportStateComponent::UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR ( DtVector  ,
worldPosition  ,
WorldPosition   
)
makVrf::DtSpotReportStateComponent::UNDEFINED_RETURNREF_ACCESSOR_MUTATOR ( DtTaitBryan  ,
worldOrientation  ,
WorldOrientation   
)
makVrf::DtSpotReportStateComponent::UNDEFINED_RETURNREF_ACCESSOR_MUTATOR ( DtVector  ,
worldVelocity  ,
WorldVelocity   
)
makVrf::DtSpotReportStateComponent::UNDEFINED_RETURNREF_ACCESSOR_MUTATOR ( std::string  ,
uniqueIdentifier  ,
UniqueIdentifier   
)
makVrf::DtSpotReportStateComponent::UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR ( std::string  ,
protocol  ,
Protocol   
)
makVrf::DtSpotReportStateComponent::UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR ( std::string  ,
domain  ,
Domain   
)
virtual const std::vector<DtVector>& makVrf::DtSpotReportStateComponent::worldPositions ( ) const
inlinevirtual
Returns
All world-coordinate positions associated with this spot report.

Reimplemented in makVrf::DtSpotReportStateComponentCurrentFrame, and makVrf::DtSpotReportStateComponentNextFrame.

virtual const DtSpotReportStateComponentData& makVrf::DtSpotReportStateComponent::frameState ( ) const
inlinevirtual
Returns
The raw frame state data for this spot report (read-only).

Reimplemented in makVrf::DtSpotReportStateComponentCurrentFrame, and makVrf::DtSpotReportStateComponentNextFrame.

virtual void makVrf::DtSpotReportStateComponent::setFrameState ( const DtSpotReportStateComponentData &  )
inlinevirtual

Replaces the entire frame state for this spot report.

Parameters
dataThe new frame state data to apply.

Reimplemented in makVrf::DtSpotReportStateComponentNextFrame.

virtual bool makVrf::DtSpotReportStateComponent::addObservedBy ( const DtUUID &  s,
double  simTime 
)
inlinevirtual

Records an observer of this contact.

Parameters
sUnique ID of the observing entity.
simTimeSimulation time of the observation.
Returns
True if the observer was newly added; false if already present (time is updated).

Reimplemented in makVrf::DtSpotReportStateComponentNextFrame.

virtual void makVrf::DtSpotReportStateComponent::removeObservedBy ( const DtUUID &  s)
inlinevirtual

Removes an entity from the observer list.

Parameters
sUnique ID of the observing entity to remove.

Reimplemented in makVrf::DtSpotReportStateComponentNextFrame.

virtual bool makVrf::DtSpotReportStateComponent::observedBy ( const DtUUID &  s) const
inlinevirtual

Returns whether the given entity is currently observing this contact.

Parameters
sUnique ID of the entity to query.
Returns
True if the entity is in the observer list.

Reimplemented in makVrf::DtSpotReportStateComponentCurrentFrame, and makVrf::DtSpotReportStateComponentNextFrame.

virtual const std::map<DtUUID, double>& makVrf::DtSpotReportStateComponent::observedBy ( ) const
inlinevirtual
Returns
The full map of observers and their most recent observation simulation times.

Reimplemented in makVrf::DtSpotReportStateComponentCurrentFrame, and makVrf::DtSpotReportStateComponentNextFrame.

virtual const DtSimpleTypedDictionary& makVrf::DtSpotReportStateComponent::dictionary ( ) const
inlinevirtual
Returns
The typed key-value dictionary of additional report properties (read-only).

Reimplemented in makVrf::DtSpotReportStateComponentCurrentFrame, and makVrf::DtSpotReportStateComponentNextFrame.

virtual DtSimpleTypedDictionary& makVrf::DtSpotReportStateComponent::dictionary ( )
inlinevirtual
Returns
The typed key-value dictionary of additional report properties (mutable).

Reimplemented in makVrf::DtSpotReportStateComponentNextFrame.


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)