VR-Exchange 2.2 API Documentation
pBaseEntity.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
6 #ifndef pBaseEntity_H_
7 #define pBaseEntity_H_
8 
12 
13 
14 #include <portal/pBaseObject.h> //DtPortalBaseObject
15 #include <vlutil/vlString.h> //DtString
16 #include <vlpi/entityIdentifier.h> //DtEntityIdentifier
17 #include <vlpi/entityType.h> //DtEntityType
18 #include <matrix/vlTaitBryan.h> //DtTaitBryan
19 
20 namespace MAKVrExchange {
21 
25 class DT_DLL_LIBPORTAL DtPortalBaseEntity : public DtPortalBaseObject
26 {
27 
28 public:
29 
32 
34  virtual ~DtPortalBaseEntity();
35 
38 
40  DtPortalBaseEntity &operator=(const DtPortalBaseEntity& other);
41 
42  bool operator!=(const DtPortalBaseEntity& other) const;
43  bool operator==(const DtPortalBaseEntity& other) const;
44 
46  virtual const char* objectKindName() const { return "Base Entity";}
47 
48 
49  virtual unsigned int netSize() const;
50 
51  virtual void writeSelfToBuffer(void *buffer) const ;
52  virtual void readSelfFromBuffer(const void *buffer);
53 
54  virtual std::ostream &printDataToStream(std::ostream &str) const;
55 
59 
63  DtDEC_ATTRIBUTE( DtEntityIdentifier, EntityId, entityId );
64 
68  DtDEC_ATTRIBUTE( DtEntityType, EntityType, entityType );
69 
71  DtDEC_ATTRIBUTE(DtVector, Location, location);
72 
76 
79  DtDEC_ATTRIBUTE(DtVector, Velocity, velocity);
80 
83  DtDEC_ATTRIBUTE(DtVector, Acceleration, acceleration);
84 
87  DtDEC_ATTRIBUTE(DtVector, RotationalVelocity, rotationalVelocity);
88 
90  DtDEC_ATTRIBUTE(DtTaitBryan, Orientation, orientation);
91 
93 
96  DtDEC_ATTRIBUTE(DtU32, Algorithm, algorithm);
97 
99  DtDEC_ATTRIBUTE(bool, Frozen, frozen);
100 
105  //
107 
110  DtDEC_ATTRIBUTE(DtString, HostId, hostId);
111 
114  DtDEC_ATTRIBUTE(DtU32, Nature, nature);
115 
117  DtDEC_ATTRIBUTE(DtU32, PartPosition, partPosition);
118 
121  DtDEC_ATTRIBUTE(DtU32, StationName, stationName);
122 
124  DtDEC_ATTRIBUTE(DtU32, StationNumber, stationNumber);
125 
127  DtDEC_ATTRIBUTE(DtVector, RelativePosition, relativePosition);
128 
130  DtDEC_ATTRIBUTE(DtFloat64, Range, range);
132  DtDEC_ATTRIBUTE(DtFloat64, Bearing, bearing);
133 
136  DtDEC_ATTRIBUTE(DtVector, RelativeLocation, relativeLocation);
137 
139  DtDEC_ATTRIBUTE(DtVector, RelativeVelocity, relativeVelocity);
140 
142  DtDEC_ATTRIBUTE(DtVector, RelativeAcceleration, relativeAcceleration);
143 
145  DtDEC_ATTRIBUTE(bool, RelativeFrozen, relativeFrozen);
146 
149  DtDEC_ATTRIBUTE(DtU32, RelativeAlgorithm, relativeAlgorithm);
150 
151  DtDEC_ATTRIBUTE(DtVector, RelativeRotationalVelocity, relativeRotationalVelocity);
152 
154  DtDEC_ATTRIBUTE(DtTaitBryan, RelativeOrientation, relativeOrientation);
155 
158 
159 public:
160 
162  static DtPortalMessage *create() { return new DtPortalBaseEntity; }
163 
164 protected:
165 
166 
167 };
168 }
169 
170 #endif //end #ifndef pBaseEntity_H_

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)