VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
DtActiveSonarEncoder Class Reference

Instances of DtActiveSonarEncoder are used to take state information from a DtActiveSonarStateRepository and place it into an underwater acoustics PDU. More...

+ Inheritance diagram for DtActiveSonarEncoder:
+ Collaboration diagram for DtActiveSonarEncoder:

Public Member Functions

 DtActiveSonarEncoder ()
 CTOR. More...
 
 DtActiveSonarEncoder (const DtActiveSonarEncoder &orig)
 Copy CTOR. More...
 
virtual ~DtActiveSonarEncoder ()
 Virtual CTOR. More...
 
DtActiveSonarEncoderoperator= (const DtActiveSonarEncoder &orig)
 Assignment Operator. More...
 
virtual DtUnderwaterAcousticPdustateMsg (const DtActiveSonarStateRepository &stateRep, const DtActiveSonarStateRepository &asSeenByRemote)
 Constructs a PDU from the state repository. More...
 
virtual void setAzimuthThreshold (double threshold)
 Set the azimuth threshold (Default is 1 degree). More...
 
virtual double azimuthThreshold () const
 Returns the azimuth threshold (in radians). More...
 
virtual void setElevationThreshold (double threshold)
 Set the elevation threshold (Default is 1 degree). More...
 
virtual double elevationThreshold () const
 Returns the elevation threshold (in radians). More...
 
 DtCLONE_ENCODER (DtActiveSonarEncoder)
 Inline clone method. More...
 
- Public Member Functions inherited from DtStateEncoder
 DtStateEncoder ()
 Default constructor. More...
 
virtual ~DtStateEncoder ()
 Destructor. More...
 
 DtStateEncoder (const DtStateEncoder &orig)
 Copy constructor. More...
 
DtStateEncoderoperator= (const DtStateEncoder &orig)
 Assignment operator. More...
 
virtual void setSendNeeded ()
 Sets myForceSendNeeded to true. More...
 
virtual DtU32 changedState () const
 
virtual void clearChangedState ()
 
virtual bool isChangedStateBit (DtU32 st) const
 
virtual void resetChangedStateBit (DtU32 st)
 
virtual void setChangedStateBit (DtU32 st)
 
virtual DtPduEncoderclone () const =0
 clone. More...
 
virtual void encode (DtPdu *pdu)
 This is a dummy method for backwards compatibility with DIS encoders. More...
 
virtual void fillOutAttributeRecords (const DtStateRepository &stateRep, DtPduWithAttributeRecordSets *pdu, const DtEntityIdentifier &id, bool clearBeforeAdding=true)
 DIS 7 requires filling the Attribute Records for a coupled Attribute PDU. More...
 
virtual bool sendNeededAttributeRecords (const DtStateRepository &stateRep, const DtStateRepository &asSeenByRemote)
 In order to modify records in place, and have them sent, we need to compare the stateRep with the As seen by remote. More...
 
- Public Member Functions inherited from DtPduEncoder
virtual ~DtPduEncoder ()
 

Protected Member Functions

virtual bool sendNeeded (const DtActiveSonarStateRepository &stateRep, const DtActiveSonarStateRepository &asSeenByRemote)
 Determine if a state message needs to be sent. More...
 
virtual void fillOut (const DtActiveSonarStateRepository &stateRep, const DtActiveSonarStateRepository &asSeenByRemote, DtUnderwaterAcousticPdu *pdu)
 Fill out a state message which reflects a state repository. More...
 

Protected Attributes

DtUnderwaterAcousticPdu myAsPdu
 
double myAzimuthThreshold
 
double myElevationThreshold
 
- Protected Attributes inherited from DtStateEncoder
bool myForceSendNeeded
 
DtU32 myChangedState
 

Friends

class DtUnderwaterAcousticsEncoder
 

Detailed Description

Instances of DtActiveSonarEncoder are used to take state information from a DtActiveSonarStateRepository and place it into an underwater acoustics PDU.

Constructor & Destructor Documentation

DtActiveSonarEncoder::DtActiveSonarEncoder ( )

CTOR.

DtActiveSonarEncoder::DtActiveSonarEncoder ( const DtActiveSonarEncoder orig)

Copy CTOR.

virtual DtActiveSonarEncoder::~DtActiveSonarEncoder ( )
virtual

Virtual CTOR.

Member Function Documentation

virtual double DtActiveSonarEncoder::azimuthThreshold ( ) const
virtual

Returns the azimuth threshold (in radians).

DtActiveSonarEncoder::DtCLONE_ENCODER ( DtActiveSonarEncoder  )

Inline clone method.

virtual double DtActiveSonarEncoder::elevationThreshold ( ) const
virtual

Returns the elevation threshold (in radians).

virtual void DtActiveSonarEncoder::fillOut ( const DtActiveSonarStateRepository stateRep,
const DtActiveSonarStateRepository asSeenByRemote,
DtUnderwaterAcousticPdu pdu 
)
protectedvirtual

Fill out a state message which reflects a state repository.

DtActiveSonarEncoder& DtActiveSonarEncoder::operator= ( const DtActiveSonarEncoder orig)

Assignment Operator.

virtual bool DtActiveSonarEncoder::sendNeeded ( const DtActiveSonarStateRepository stateRep,
const DtActiveSonarStateRepository asSeenByRemote 
)
protectedvirtual

Determine if a state message needs to be sent.

virtual void DtActiveSonarEncoder::setAzimuthThreshold ( double  threshold)
virtual

Set the azimuth threshold (Default is 1 degree).

threshold Threshold in radians.

virtual void DtActiveSonarEncoder::setElevationThreshold ( double  threshold)
virtual

Set the elevation threshold (Default is 1 degree).

threshold Threshold in radians.

virtual DtUnderwaterAcousticPdu* DtActiveSonarEncoder::stateMsg ( const DtActiveSonarStateRepository stateRep,
const DtActiveSonarStateRepository asSeenByRemote 
)
virtual

Constructs a PDU from the state repository.

Determines whether an Underwater Acoustic PDU needs to be sent and constructs one if it does.

Returns
PDU if send is needed, and NULL if not

Friends And Related Function Documentation

friend class DtUnderwaterAcousticsEncoder
friend

Member Data Documentation

DtUnderwaterAcousticPdu DtActiveSonarEncoder::myAsPdu
protected
double DtActiveSonarEncoder::myAzimuthThreshold
protected
double DtActiveSonarEncoder::myElevationThreshold
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)