VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ifAggregateAs.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: ifAggregateAs.h,v $ $Revision: 1.14 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtIfAggregateAs_H_
13 #define DtIfAggregateAs_H_
14 
15 #include <vrfExtProtocol/simInterfaceContent.h>
16 #include <vl/hostStructs.h>
17 #include <vlutil/vlList.h>
18 
19 
22 
24 {
25  DtNetEntityType myEntityType;
26  DtNet64Vector myPosition;
27  DtNetFloat64 myHeading;
28  DtNetU32 myRequestId;
29  DtNetU16 myNumSubordinates;
30  DtNetU8 myForceType;
32 };
33 
50 #include "vrfmsgs/vrfmsgsDefines.h"
52 {
53 public:
54 
57 
59  virtual ~DtIfAggregateAs();
60 
62  DtIfAggregateAs(const DtIfAggregateAs& orig);
63 
65  DtIfAggregateAs& operator=(const DtIfAggregateAs& orig);
66 
68  virtual int type() const;
69 
70  virtual DtSimInterfaceContent * clone() const;
71 
73  virtual DtForceType forceType() const;
74  virtual void setForceType(DtForceType force);
75 
77  virtual const DtEntityType & entityType() const;
78  virtual void setEntityType(const DtEntityType & type);
79 
81  virtual void setPosition(const DtVector& position);
82  virtual const DtVector& position() const;
83 
85  virtual DtReal heading() const;
86  virtual void setHeading(DtReal heading);
87 
90  virtual unsigned long requestId() const;
91  virtual void setRequestId(unsigned long id);
92 
94  virtual void addSubordinate(const DtString& name);
95 
98  virtual DtList* subordinates();
99 
103  virtual DtAggregateState initialAggregateState() const;
104  virtual void setInitialAggregateState(DtAggregateState aggregateState);
105 
106  virtual int netRepSize() const;
107  virtual bool setFromNet(const char* contentBuffer,
108  unsigned contentSize);
109  virtual bool setToNet();
110 
111  virtual void printDataToString(DtString& str);
112 
113  static DtSimInterfaceContent* creator();
114 
115 protected:
116 
117  DtForceType myForceType;
118  DtEntityType myEntityType;
120  DtReal myHeading;
122  DtU32 myRequestId;
124 };
125 
126 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)