VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfObjectStateUpdate.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vrfObjectStateUpdate.h,v $ $Revision: 1.10 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DtVrfObjectStateUpdate_H_
10 #define DtVrfObjectStateUpdate_H_
11 
12 #include <vector>
14 #include <vlpi/netStructs.h>
15 
17 {
19  DtNetU32 myPadding;
20 };
21 
23 {
24  // HACK for visual studio 6.0. For some reason, VC6 would not accept this
25  // structure in a std::container class without an operator= defined.
27  {
33  return *this;
34  };
35 
36  DtNet64Vector myGeocentricPosition;
37  DtVector32 myGeocentricVelocity;
39  DtNetEulerAngles myGeocentricOrientation;
40  DtNetU32 myPadding1;
41  DtNetEntityIdentifier myObjectIdentifier;
42  DtNetU16 myPadding;
43 };
44 
45 
46 // class DtVrfObjectStateUpdate:
47 //
48 // Instances of DtVrfObjectStateUpdate are
49 
52 {
53 public:
54 
55  // default constructor
57 
58  // destructor
59  virtual ~DtVrfObjectStateUpdate();
60 
62 
64 
65  // Returns the type of Interface Content; DtVrfObjectStateMessageType.
66  virtual int type() const;
67 
68  virtual DtSimInterfaceContent * clone() const;
69 
70  // Removes all records that have been added to the object state update.
71  virtual void clear();
72 
73  virtual void add(const DtNetVrfObjectStateRecord& record);
74 
75  virtual const std::vector<DtNetVrfObjectStateRecord>& records() const;
76 
77  virtual int netRepSize() const;
78  virtual bool setFromNet(const char* contentBuffer,
79  unsigned contentSize);
80  virtual bool setToNet();
81 
82  virtual void printDataToString(DtString& str);
83 
84  static DtSimInterfaceContent* creator();
85 
86 protected:
87 
88  std::vector<DtNetVrfObjectStateRecord> myRecords;
89 };
90 
91 #endif
DtNetU32 myPadding1
Definition: vrfObjectStateUpdate.h:40
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
Definition: vrfObjectStateUpdate.h:51
virtual int type() const =0
DtNetU32 myPadding
Definition: vrfObjectStateUpdate.h:19
DtNetU16 myPadding
Definition: vrfObjectStateUpdate.h:42
std::vector< DtNetVrfObjectStateRecord > myRecords
Definition: vrfObjectStateUpdate.h:88
virtual void printDataToString(DtString &str)
Definition: vrfObjectStateUpdate.h:22
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DtNetEulerAngles myGeocentricOrientation
Definition: vrfObjectStateUpdate.h:39
DtNetEntityIdentifier myObjectIdentifier
Definition: vrfObjectStateUpdate.h:41
DtNet64Vector myGeocentricPosition
Definition: vrfObjectStateUpdate.h:34
DtVector32 myGeocentricAcceleration
Definition: vrfObjectStateUpdate.h:38
#define DT_DLL_vrfExtProtocol
Definition: vrfExtProtocolDefines.h:23
Definition: vrfObjectStateUpdate.h:16
DtNetVrfObjectStateRecord & operator=(const DtNetVrfObjectStateRecord &other)
Definition: vrfObjectStateUpdate.h:26
virtual bool setToNet()
Definition: simInterfaceContent.h:83
DtVector32 myGeocentricVelocity
Definition: vrfObjectStateUpdate.h:37
Definition: simInterfaceContent.h:45
virtual DtSimInterfaceContent * clone() const =0
DtNetU32 myNumberOfRecords
Definition: vrfObjectStateUpdate.h:18

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)