VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
activeSonarEncoderDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2025 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/stateEncoder.h>
16 
18 
24 {
25 public:
26 
29 
32 
34  virtual ~DtActiveSonarEncoder();
35 
38 
43  virtual DtUnderwaterAcousticPdu* stateMsg(
44  const DtActiveSonarStateRepository& stateRep,
45  const DtActiveSonarStateRepository& asSeenByRemote );
46 
49  virtual void setAzimuthThreshold( double threshold );
50 
52  virtual double azimuthThreshold() const;
53 
56  virtual void setElevationThreshold( double threshold );
57 
59  virtual double elevationThreshold() const;
60 
63 
64 protected:
65 
66  // Let the parent encoder call sendNeeded and fillOut.
68 
70  virtual bool sendNeeded( const DtActiveSonarStateRepository& stateRep,
71  const DtActiveSonarStateRepository& asSeenByRemote );
72 
74  virtual void fillOut( const DtActiveSonarStateRepository& stateRep,
75  const DtActiveSonarStateRepository& asSeenByRemote,
77 
78 protected:
79 
83 
84 };
85 
86 #endif // DtDIS
virtual bool sendNeeded(const DtUnderwaterAcousticsStateRepository &stateRep, const DtUnderwaterAcousticsStateRepository &asSeenByRemote)
Determine if a state message needs to be sent.
Contains the DtUnderwaterAcousticPdu class declaration.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual void fillOut(const DtUnderwaterAcousticsStateRepository &stateRep, const DtUnderwaterAcousticsStateRepository &asSeenByRemote, DtUnderwaterAcousticPdu *pdu)
Fill out a state message which reflects a state repository.
Instances of DtUnderwaterAcousticPdu are used to send information about simulated underwater acoustic...
Definition: underwaterAcousticPdu.h:39
Instances of DtUnderwaterAcousticsEncoder are used to take state information from a DtUnderwaterAcous...
Definition: underwaterAcousticsEncoderDIS.h:26
Instances of DtActiveSonarEncoder are used to take state information from a DtActiveSonarStateReposit...
Definition: activeSonarEncoderDIS.h:23
DtUnderwaterAcousticPdu myAsPdu
Definition: activeSonarEncoderDIS.h:80
double myElevationThreshold
Definition: activeSonarEncoderDIS.h:82
The DtStateEncoder class provides a base class for all DIS encoders.
Definition: stateEncoder.h:33
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
DtStateEncoder & operator=(const DtStateEncoder &orig)
Assignment operator.
double myAzimuthThreshold
Definition: activeSonarEncoderDIS.h:81
#define DtCLONE_ENCODER(encoderClass)
Definition: stateEncoder.h:26
This file declares the DIS version of DtStateEncoder.

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)