VR-Link API Documentation for HLA 1.3
dActSonarEnc.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/dStateEncoder.h>
15 #include <vl/undwaAcPdu.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 
61 protected:
62 
63  // Let the parent encoder call sendNeeded and fillOut.
64  friend class DtUnderwaterAcousticsEncoder;
65 
67  virtual bool sendNeeded( const DtActiveSonarStateRepository& stateRep,
68  const DtActiveSonarStateRepository& asSeenByRemote );
69 
71  virtual void fillOut( const DtActiveSonarStateRepository& stateRep,
72  const DtActiveSonarStateRepository& asSeenByRemote,
73  DtUnderwaterAcousticPdu* pdu );
74 
75 protected:
76 
77  DtUnderwaterAcousticPdu myAsPdu;
78  double myAzimuthThreshold;
79  double myElevationThreshold;
80 
81 };
82 
83 #endif // DtDIS

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)