VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Attributes
makVrf::DtActiveSonarStateComponentData Struct Reference

Holds the complete state data for an active sonar system, including its identifiers, publish flag, mount location, and the collection of beams it emits.

Classes

struct  DtActiveSonarBeams
 

Public Member Functions

 DtActiveSonarStateComponentData ()
 
 DtActiveSonarStateComponentData (const DtActiveSonarStateComponentData &orig)
 
DtActiveSonarStateComponentData & operator= (const DtActiveSonarStateComponentData &rhs)
 
DtActiveSonarBeamStateData * beamByBeamId (unsigned short beamId)
 
const DtActiveSonarBeamStateData * beamByBeamId (unsigned short beamId) const
 
DtActiveSonarBeamStateData * beamByBeamIndex (unsigned short beamId)
 
const DtActiveSonarBeamStateData * beamByBeamIndex (unsigned short beamId) const
 
unsigned int numBeams () const
 
DtActiveSonarBeamStateData * addBeam ()
 
DtActiveSonarBeams & beams ()
 
const DtActiveSonarBeams & beams () const
 
const std::vector
< DtActiveSonarBeamStateData > & 
rawBeams () const
 
std::vector
< DtActiveSonarBeamStateData > & 
rawBeams ()
 
void removeAllBeams ()
 
void removeBeam (unsigned short beamId)
 

Protected Attributes

bool myPublish
 
unsigned int mySystemId
 
unsigned int mySystemName
 
unsigned int mySystemFunction
 
DtVector myMountLocation
 
DtActiveSonarBeams myBeamsList
 

Constructor & Destructor Documentation

makVrf::DtActiveSonarStateComponentData::DtActiveSonarStateComponentData ( )
inline

Default constructor. Initializes publish to true and all numeric fields to zero.

makVrf::DtActiveSonarStateComponentData::DtActiveSonarStateComponentData ( const DtActiveSonarStateComponentData &  orig)
inline

Copy constructor.

Parameters
origThe source object to copy from.

Member Function Documentation

DtActiveSonarStateComponentData& makVrf::DtActiveSonarStateComponentData::operator= ( const DtActiveSonarStateComponentData &  rhs)
inline

Assignment operator.

Parameters
rhsThe source object to copy from.
Returns
Reference to this object.

References myBeamsList, myMountLocation, myPublish, mySystemFunction, mySystemId, and mySystemName.

DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponentData::beamByBeamId ( unsigned short  beamId)
inline

Returns a pointer to the beam with the given beam ID.

Parameters
beamIdThe beam ID to search for.
Returns
Pointer to the matching beam, or nullptr if not found.
const DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponentData::beamByBeamId ( unsigned short  beamId) const
inline

Returns a const pointer to the beam with the given beam ID.

Parameters
beamIdThe beam ID to search for.
Returns
Const pointer to the matching beam, or nullptr if not found.
DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponentData::beamByBeamIndex ( unsigned short  beamId)
inline

Returns a pointer to the beam at the given zero-based index.

Parameters
beamIdZero-based index into the beam list.
Returns
Pointer to the beam at that index, or nullptr if out of range.
const DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponentData::beamByBeamIndex ( unsigned short  beamId) const
inline

Returns a const pointer to the beam at the given zero-based index.

Parameters
beamIdZero-based index into the beam list.
Returns
Const pointer to the beam at that index, or nullptr if out of range.
unsigned int makVrf::DtActiveSonarStateComponentData::numBeams ( ) const
inline
Returns
The number of beams currently in the system.
DtActiveSonarBeamStateData* makVrf::DtActiveSonarStateComponentData::addBeam ( )
inline

Adds a new beam and returns a pointer to it.

Returns
Pointer to the newly added beam.
DtActiveSonarBeams& makVrf::DtActiveSonarStateComponentData::beams ( )
inline
Returns
Reference to the beam collection.
const DtActiveSonarBeams& makVrf::DtActiveSonarStateComponentData::beams ( ) const
inline
Returns
Const reference to the beam collection.
const std::vector<DtActiveSonarBeamStateData>& makVrf::DtActiveSonarStateComponentData::rawBeams ( ) const
inline
Returns
Const reference to the underlying raw beam vector.
std::vector<DtActiveSonarBeamStateData>& makVrf::DtActiveSonarStateComponentData::rawBeams ( )
inline
Returns
Reference to the underlying raw beam vector.
void makVrf::DtActiveSonarStateComponentData::removeAllBeams ( )
inline

Removes all beams from the system.

void makVrf::DtActiveSonarStateComponentData::removeBeam ( unsigned short  beamId)
inline

Removes the beam with the given beam ID.

Parameters
beamIdThe beam ID to remove.

Member Data Documentation

bool makVrf::DtActiveSonarStateComponentData::myPublish
protected

Unique identifier for this sonar system.

The system name enumeration value for this sonar system. The system function enumeration value for this sonar system. The mount location of this sonar system relative to the entity origin. Whether this sonar system's state should be published to the network.

Referenced by operator=().

unsigned int makVrf::DtActiveSonarStateComponentData::mySystemId
protected

Unique identifier for this sonar system.

Referenced by operator=().

unsigned int makVrf::DtActiveSonarStateComponentData::mySystemName
protected

The system name enumeration value for this sonar system.

Referenced by operator=().

unsigned int makVrf::DtActiveSonarStateComponentData::mySystemFunction
protected

The system function enumeration value for this sonar system.

Referenced by operator=().

DtVector makVrf::DtActiveSonarStateComponentData::myMountLocation
protected

The mount location of this sonar system relative to the entity origin.

Referenced by operator=().

DtActiveSonarBeams makVrf::DtActiveSonarStateComponentData::myBeamsList
protected

The list of beams associated with this sonar system.

Referenced by operator=().


The documentation for this struct 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)