open-dis-cpp
AntennaLocation.h
1 #pragma once
2 
3 #include <dis6/Vector3Double.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 // 5.2.3: location of the radiating portion of the antenna, specified in world coordinates and entity coordinates.
12 
13 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
14 //
15 // @author DMcG, jkg
16 
17 class OPENDIS6_EXPORT AntennaLocation
18 {
19 protected:
22 
25 
26 
27  public:
29  virtual ~AntennaLocation();
30 
31  virtual void marshal(DataStream& dataStream) const;
32  virtual void unmarshal(DataStream& dataStream);
33 
34  Vector3Double& getAntennaLocation();
35  const Vector3Double& getAntennaLocation() const;
36  void setAntennaLocation(const Vector3Double &pX);
37 
38  Vector3Float& getRelativeAntennaLocation();
39  const Vector3Float& getRelativeAntennaLocation() const;
40  void setRelativeAntennaLocation(const Vector3Float &pX);
41 
42 
43 virtual int getMarshalledSize() const;
44 
45  bool operator ==(const AntennaLocation& rhs) const;
46 };
47 }
48 
49 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
50 // Redistribution and use in source and binary forms, with or without
51 // modification, are permitted provided that the following conditions
52 // are met:
53 //
54 // * Redistributions of source code must retain the above copyright
55 // notice, this list of conditions and the following disclaimer.
56 // * Redistributions in binary form must reproduce the above copyright
57 // notice, this list of conditions and the following disclaimer
58 // in the documentation and/or other materials provided with the
59 // distribution.
60 // * Neither the names of the Naval Postgraduate School (NPS)
61 // Modeling Virtual Environments and Simulation (MOVES) Institute
62 // (http://www.nps.edu and http://www.MovesInstitute.org)
63 // nor the names of its contributors may be used to endorse or
64 // promote products derived from this software without specific
65 // prior written permission.
66 //
67 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
68 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
69 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
70 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
71 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
72 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
73 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
74 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
75 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
76 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
77 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
78 // POSSIBILITY OF SUCH DAMAGE.
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
a class to support managing a network buffer.
Definition: DataStream.h:28
Vector3Float _relativeAntennaLocation
Location of the radiating portion of the antenna in entity coordinates.
Definition: AntennaLocation.h:24
Vector3Double _antennaLocation
Location of the radiating portion of the antenna in world coordinates.
Definition: AntennaLocation.h:21
Definition: Vector3Float.h:15
Definition: Vector3Double.h:15
Definition: AntennaLocation.h:17