VR-Forces 4.1.1 Class Documentation
DtEntityCreationData.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtEntityCreationData.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrfGuiCore/vrfGuiCore.h>
17 
18 #include <matrix/vlVector.h>
19 #include <vlpi/entityType.h>
20 #include <vlpi/appearance.h>
21 
22 namespace makVrf
23 {
25  {
26  public:
27  DtEntityCreationData(const DtEntityType& entType, int force, const DtVector& location,
28  const std::string& name = "", const std::string& label = "", double heading = 0.,
29  const DtAppearance& appearance = DtAppearance::nullAppearance(), bool clampToGround = true,
30  bool createSubordinates = true, int requestId = -1, const std::string& initialFormation = "",
31  int aggregateState = 0)
32  : myName(name)
33  , myLabel(label)
34  , myEntityType(entType)
35  , myForce(force)
36  , myLocation(location)
37  , myHeading(heading)
38  , myAppearance(appearance)
39  , myClamp(clampToGround)
40  , myCreateSubordinates(createSubordinates)
41  , myRequestId(requestId)
42  , myInitialFormation(initialFormation)
43  , myAggregateState(aggregateState)
44  {
45  }
46 
48  : myName(orig.myName)
49  , myLabel(orig.myLabel)
50  , myEntityType(orig.myEntityType)
51  , myForce(orig.myForce)
52  , myLocation(orig.myLocation)
53  , myHeading(orig.myHeading)
54  , myAppearance(orig.myAppearance)
55  , myClamp(orig.myClamp)
56  , myCreateSubordinates(orig.myCreateSubordinates)
57  , myRequestId(orig.myRequestId)
58  , myInitialFormation(orig.myInitialFormation)
59  , myAggregateState(orig.myAggregateState)
60  {
61  }
62 
63  void setName(const std::string& n)
64  {
65  myName = n;
66  }
67 
68  const std::string& name() const
69  {
70  return myName;
71  }
72 
73  void setLabel(const std::string& l)
74  {
75  myLabel = l;
76  }
77 
78  const std::string& label() const
79  {
80  return myLabel;
81  }
82 
83  void setEntityType(const DtEntityType& e)
84  {
85  myEntityType = e;
86  }
87 
88  const DtEntityType& entityType() const
89  {
90  return myEntityType;
91  }
92 
93  void setForce(int f)
94  {
95  myForce = f;
96  }
97 
98  int force() const
99  {
100  return myForce;
101  }
102 
103  void setLocation(const DtVector& v)
104  {
105  myLocation = v;
106  }
107 
108  const DtVector& location() const
109  {
110  return myLocation;
111  }
112 
113  void setHeading(double h)
114  {
115  myHeading = h;
116  }
117 
118  double heading() const
119  {
120  return myHeading;
121  }
122 
123  void setAppearance(const DtAppearance& app)
124  {
125  myAppearance = app;
126  }
127 
128  const DtAppearance& appearance() const
129  {
130  return myAppearance;
131  }
132 
133  void setClampToGround(bool b)
134  {
135  myClamp = b;
136  }
137 
138  bool clampToGround() const
139  {
140  return myClamp;
141  }
142 
143  void setCreateSubordinates(bool b)
144  {
145  myCreateSubordinates = b;
146  }
147 
148  bool createSubordinates() const
149  {
150  return myCreateSubordinates;
151  }
152 
153  void setRequestId(int i)
154  {
155  myRequestId = i;
156  }
157 
158  int requestId() const
159  {
160  return myRequestId;
161  }
162 
163  void setInitialFormation(const std::string& l)
164  {
165  myInitialFormation = l;
166  }
167 
168  const std::string& initialFormation() const
169  {
170  return myInitialFormation;
171  }
172 
173  void setAggregateState(int i)
174  {
175  myAggregateState = i;
176  }
177 
178  int aggregateState() const
179  {
180  return myAggregateState;
181  }
182 
183  protected:
184  DtEntityType myEntityType;
185  int myForce;
187  std::string myName;
188  std::string myLabel;
189  double myHeading;
190  DtAppearance myAppearance;
191  bool myClamp;
194 
195  std::string myInitialFormation;
197  };
198 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)