open-dis-cpp
DeadReckoningParameter.h
1 #pragma once
2 
3 #include <dis6/Vector3Float.h>
4 #include <dis6/Vector3Float.h>
5 #include <dis6/utils/DataStream.h>
6 #include <dis6/opendis6_export.h>
7 
8 
9 namespace DIS
10 {
11 // represents values used in dead reckoning algorithms
12 
13 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
14 //
15 // @author DMcG, jkg
16 
17 class OPENDIS6_EXPORT DeadReckoningParameter
18 {
19 protected:
21  unsigned char _deadReckoningAlgorithm;
22 
24  char _otherParameters[15];
25 
28 
31 
32 
33  public:
35  virtual ~DeadReckoningParameter();
36 
37  virtual void marshal(DataStream& dataStream) const;
38  virtual void unmarshal(DataStream& dataStream);
39 
40  unsigned char getDeadReckoningAlgorithm() const;
41  void setDeadReckoningAlgorithm(unsigned char pX);
42 
43  char* getOtherParameters();
44  const char* getOtherParameters() const;
45  void setOtherParameters( const char* pX);
46 
47  Vector3Float& getEntityLinearAcceleration();
48  const Vector3Float& getEntityLinearAcceleration() const;
49  void setEntityLinearAcceleration(const Vector3Float &pX);
50 
51  Vector3Float& getEntityAngularVelocity();
52  const Vector3Float& getEntityAngularVelocity() const;
53  void setEntityAngularVelocity(const Vector3Float &pX);
54 
55 
56 virtual int getMarshalledSize() const;
57 
58  bool operator ==(const DeadReckoningParameter& rhs) const;
59 };
60 }
61 
62 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
63 // Redistribution and use in source and binary forms, with or without
64 // modification, are permitted provided that the following conditions
65 // are met:
66 //
67 // * Redistributions of source code must retain the above copyright
68 // notice, this list of conditions and the following disclaimer.
69 // * Redistributions in binary form must reproduce the above copyright
70 // notice, this list of conditions and the following disclaimer
71 // in the documentation and/or other materials provided with the
72 // distribution.
73 // * Neither the names of the Naval Postgraduate School (NPS)
74 // Modeling Virtual Environments and Simulation (MOVES) Institute
75 // (http://www.nps.edu and http://www.MovesInstitute.org)
76 // nor the names of its contributors may be used to endorse or
77 // promote products derived from this software without specific
78 // prior written permission.
79 //
80 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
81 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
82 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
83 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
84 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
85 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
86 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
87 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
88 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
89 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
90 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
91 // POSSIBILITY OF SUCH DAMAGE.
Vector3Float _entityLinearAcceleration
Linear acceleration of the entity.
Definition: DeadReckoningParameter.h:27
Definition: DeadReckoningParameter.h:17
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
a class to support managing a network buffer.
Definition: DataStream.h:28
unsigned char _deadReckoningAlgorithm
enumeration of what dead reckoning algorighm to use
Definition: DeadReckoningParameter.h:21
Vector3Float _entityAngularVelocity
angular velocity of the entity
Definition: DeadReckoningParameter.h:30
Definition: Vector3Float.h:15