VR-Link API Documentation for HLA 1.3
activeSonarEncoderDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/stateEncoder.h>
16 
18 
23 class DT_DLL_VL DtActiveSonarEncoder : public DtStateEncoder
24 {
25 public:
26 
29 
32 
34  virtual ~DtActiveSonarEncoder();
35 
37  DtActiveSonarEncoder& operator = ( const DtActiveSonarEncoder& orig );
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 
62  DtCLONE_ENCODER( DtActiveSonarEncoder );
63 
64 protected:
65 
66  // Let the parent encoder call sendNeeded and fillOut.
67  friend class DtUnderwaterAcousticsEncoder;
68 
70  virtual bool sendNeeded( const DtActiveSonarStateRepository& stateRep,
71  const DtActiveSonarStateRepository& asSeenByRemote );
72 
74  virtual void fillOut( const DtActiveSonarStateRepository& stateRep,
75  const DtActiveSonarStateRepository& asSeenByRemote,
76  DtUnderwaterAcousticPdu* pdu );
77 
78 protected:
79 
80  DtUnderwaterAcousticPdu myAsPdu;
81  double myAzimuthThreshold;
82  double myElevationThreshold;
83 
84 };
85 
86 #endif // DtDIS

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)