VR-Link API Documentation for DIS
dActiveSonarPub.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/dObjPub.h>
15 #include <vl/activeSonarSR.h>
16 
19 
24 {
25 public:
26 
28  typedef DtActiveSonarStateRepository* (*DtStateRepCreator)();
29 
30 public:
31 
34  DtExerciseConn* conn, const DtObjectId& id = DtObjectId::defaultId() );
35 
38  const DtObjectId& id = DtObjectId::defaultId() );
39 
41  DtActiveSonarPublisher( DtExerciseConn* conn, const char* name,
42  const DtObjectId& id = DtObjectId::defaultId() );
43 
45  virtual ~DtActiveSonarPublisher();
46 
48  virtual DtActiveSonarStateRepository* activeSonarStateRep();
49  virtual DtActiveSonarStateRepository* asr();
50 
52  virtual void tick();
53 
55  virtual void forceUpdate();
56 
58  virtual const DtObjectId& id() const;
59  virtual const DtObjectId& localId() const;
60 
62  virtual const DtGlobalObjectDesignator& globalId() const;
63 
66  virtual void setBeamAzimuthThreshold( double threshold );
67 
69  virtual double beamAzimuthThreshold() const;
70 
73  virtual void setBeamElevationThreshold( double threshold );
74 
76  virtual double beamElevationThreshold() const;
77 
78 public:
79 
81  static void setStateRepCreator( DtStateRepCreator creator );
82  static DtStateRepCreator stateRepCreator();
83 
84  static void setClassDfltTimeThreshold( DtTime threshold );
85 
86 protected:
87 
89  void init( const char* name, const DtEntityIdentifier& id );
90 
93 
96 
97 protected:
98 
102 
103 protected:
104 
105  static DtStateRepCreator theStateRepCreator;
108  char* myName;
109 
110 };
111 
113 {
114  return static_cast<DtActiveSonarStateRepository*>( myStateRep );
115 }
116 
117 #endif

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)