VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
designatorPdu.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2013 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #if DtDIS
12 
13 #include "hostStructs.h"
14 #include "stateMsg.h"
15 #include <matrix/vlMath.h>
16 #include "packets/designateP.h"
17 
18 
19 class DtExerciseConn;
20 class DtDesignatorPdu;
21 
23 typedef void (*DtDesignatorPduCb)( DtDesignatorPdu* pdu, void* usr );
24 
29 {
30 public:
32  enum {
33  DtDesignatorStaticSizeVERS5 = 88,
34  DtDesignatorStaticSizeVERS4 = 72
35  };
36 
38  enum { PduStaticSize = DtDesignatorStaticSizeVERS5 };
39 
40 public:
43 
45  DtDesignatorPdu( const DtNetDesignatorPdu* initial,
46  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0 );
47 
50  static DtPdu* create( const DtNetPacket* initial,
51  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0 );
52 
54  static void addCallback( DtExerciseConn* conn,
55  DtDesignatorPduCb cb, void* usr );
56 
58  static void removeCallback( DtExerciseConn* conn,
59  DtDesignatorPduCb cb, void* usr );
60 
62 
63  const DtEntityIdentifier& designatingEntityId() const;
64  void setDesignatingEntityId( const DtEntityIdentifier& id );
66 
68 
69  DtDesignatorCodeName codeName() const;
70  void setCodeName( DtDesignatorCodeName name );
72 
74 
75  const DtEntityIdentifier& designatedEntityId() const;
76  void setDesignatedEntityId( const DtEntityIdentifier& id );
78 
80 
81  DtDesignatorCode designatorCode() const;
82  void setDesignatorCode( DtDesignatorCode code );
84 
86 
87  float power() const;
88  void setPower( float power );
90 
92 
93  float wavelength() const;
94  void setWavelength( float wavelength );
96 
98 
99  const DtVector& designatorSpotRelative() const;
100  void setDesignatorSpotRelative( const DtVector& loc );
102 
104 
105 
106  const DtVector& designatorSpotWorld() const;
107  void setDesignatorSpotWorld( const DtVector& loc );
109 
111 
112  DtDeadReckonTypes deadReckoningAlgorithm() const;
113  void setDeadReckoningAlgorithm( DtDeadReckonTypes alg );
115 
117 
118  const DtVector& linearAcceleration() const;
119  void setLinearAcceleration( const DtVector& acc );
121 
123  virtual void printData() const;
125 
127  virtual void printDataToStream(std::ostream& stream) const;
129 
130 protected:
134 };
135 
136 #endif

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)