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

Abstract interface class for the active sonar state component, representing either the next or current frame state of an active sonar system. All virtual methods are unimplemented in this base class and will throw DtUnimplementedMethod if called without overriding.

See Also
DtActiveSonarStateComponentNextFrame
DtActiveSonarStateComponentCurrentFrame
Inheritance diagram for makVrf::DtActiveSonarStateComponent:
Inheritance graph
[legend]

Public Member Functions

 DtActiveSonarStateComponent (DtStateData *storage)
 
virtual const
DtActiveSonarBeamStateData * 
beamByBeamIndex (unsigned short beamIndex) const
 
virtual const
DtActiveSonarBeamStateData * 
beamByBeamId (unsigned short beamId) const
 
virtual
DtActiveSonarBeamStateData * 
beamByBeamIndex (unsigned short beamIndex)
 
virtual
DtActiveSonarBeamStateData * 
beamByBeamId (unsigned short beamId)
 
virtual const
DtActiveSonarStateComponentData & 
frameState () 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

- 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::DtActiveSonarStateComponent::DtActiveSonarStateComponent ( DtStateData *  storage)
inline

Defines the static type identifier for this state component.

Constructs the interface, associating it with the given state data storage.

Parameters
storageThe state data storage object shared between frame buffers.

Member Function Documentation

virtual const DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponent::beamByBeamIndex ( unsigned short  beamIndex) const
inlinevirtual

Gets/sets the system name enumeration value for this sonar system.

Returns
The UUID of the entity that hosts this sonar system.Gets/sets the system function enumeration value for this sonar system. Gets/sets whether this sonar system's state should be published to the network. Gets/sets the mount location of this sonar system relative to the entity origin. Removes all beams from this sonar system. Removes the beam with the given beam ID.
Parameters
beamIdThe beam ID to remove.
Returns
The number of beams in this sonar system. Adds a new beam and returns a pointer to its state data.
Pointer to the newly added beam state data. Returns the beam at the given zero-based index (const overload).
Parameters
beamIndexZero-based index into the beam list.
Returns
Const pointer to the matching beam, or throws if unimplemented.

Reimplemented in makVrf::DtActiveSonarStateComponentCurrentFrame, and makVrf::DtActiveSonarStateComponentNextFrame.

virtual const DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponent::beamByBeamId ( unsigned short  beamId) const
inlinevirtual

Returns the beam with the given beam ID (const overload).

Parameters
beamIdThe beam ID to look up.
Returns
Const pointer to the matching beam, or throws if unimplemented.

Reimplemented in makVrf::DtActiveSonarStateComponentCurrentFrame, and makVrf::DtActiveSonarStateComponentNextFrame.

virtual DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponent::beamByBeamIndex ( unsigned short  beamIndex)
inlinevirtual

Returns the beam at the given zero-based index.

Parameters
beamIndexZero-based index into the beam list.
Returns
Pointer to the matching beam, or throws if unimplemented.

Reimplemented in makVrf::DtActiveSonarStateComponentNextFrame.

virtual DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponent::beamByBeamId ( unsigned short  beamId)
inlinevirtual

Returns the beam with the given beam ID.

Parameters
beamIdThe beam ID to look up.
Returns
Pointer to the matching beam, or throws if unimplemented.

Reimplemented in makVrf::DtActiveSonarStateComponentNextFrame.

virtual const DtActiveSonarStateComponentData& makVrf::DtActiveSonarStateComponent::frameState ( ) const
inlinevirtual
Returns
Const reference to the full frame state data for this sonar system, or throws if unimplemented.

Reimplemented in makVrf::DtActiveSonarStateComponentCurrentFrame, and makVrf::DtActiveSonarStateComponentNextFrame.


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)