VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
entityCreationData.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrfGuiCore/vrfGuiCore.h>
14 
15 #include <matrix/vlVector.h>
16 #include <vlpi/entityType.h>
17 #include <vlpi/appearance.h>
18 #include <vlutil/vlString.h>
21 #include <vrfutil/rwUUID.h>
22 
23 #include <map>
24 
25 namespace makVrf
26 {
28  {
29  public:
30  DtEntityCreationData(const DtEntityType& entType, int force, const DtVector& location,
31  const std::string& name = "", const std::string& label = "", double heading = 0.,
32  const DtAppearance& appearance = DtAppearance::nullAppearance(), bool clampToGround = true,
33  bool createSubordinates = true, int requestId = -1, const std::string& initialFormation = "",
34  int aggregateState = 0, const std::map<std::string, std::string>& extendedData = std::map<std::string, std::string>(),
35  const std::map<int, DtString>& extendedLabels = std::map<int, DtString>(), const std::string& overlayParent = "")
36  : myName(name)
37  , myLabel(label)
38  , myEntityType(entType)
39  , myForce(force)
40  , myLocation(location)
41  , myHeading(heading)
42  , myAppearance(appearance)
43  , myClamp(clampToGround)
44  , myCreateSubordinates(createSubordinates)
45  , myRequestId(requestId)
46  , myInitialFormation(initialFormation)
47  , myAggregateState(aggregateState)
48  , myExtendedData(extendedData)
49  , myExtendedLabels(extendedLabels)
50  , myOverlayParent(overlayParent)
51  , myUUID(DtUUID::nullUUID())
52  {
53  }
54 
56  : myName(orig.myName)
57  , myLabel(orig.myLabel)
58  , myEntityType(orig.myEntityType)
59  , myForce(orig.myForce)
60  , myLocation(orig.myLocation)
61  , myHeading(orig.myHeading)
62  , myAppearance(orig.myAppearance)
63  , myClamp(orig.myClamp)
64  , myCreateSubordinates(orig.myCreateSubordinates)
65  , myRequestId(orig.myRequestId)
66  , myInitialFormation(orig.myInitialFormation)
67  , myAggregateState(orig.myAggregateState)
68  , myExtendedData(orig.myExtendedData)
69  , myExtendedLabels(orig.myExtendedLabels)
70  , myOverlayParent(orig.myOverlayParent)
71  , myUUID(orig.myUUID)
72  {
73  }
74 
75  void setOverlayParent(const std::string& overlayParent)
76  {
77  myOverlayParent = overlayParent;
78  }
79 
80  const std::string& overlayParent() const
81  {
82  return myOverlayParent;
83  }
84 
85  void setExtendedLabels(const std::map<int, DtString>& extendedData)
86  {
87  myExtendedLabels = extendedData;
88  }
89 
90  const std::map<int, DtString>& extendedLabels() const
91  {
92  return myExtendedLabels;
93  }
94 
95  std::map<int, DtString>& extendedLabels()
96  {
97  return myExtendedLabels;
98  }
99 
100  void setExtendedData(const std::map<std::string, std::string>& e)
101  {
102  myExtendedData = e;
103  }
104 
105  const std::map<std::string, std::string>& extendedData() const
106  {
107  return myExtendedData;
108  }
109 
110  std::map<std::string, std::string>& extendedData()
111  {
112  return myExtendedData;
113  }
114 
115  void setName(const std::string& n)
116  {
117  myName = n;
118  }
119 
120  const std::string& name() const
121  {
122  return myName;
123  }
124 
125  void setLabel(const std::string& l)
126  {
127  myLabel = l;
128  }
129 
130  const std::string& label() const
131  {
132  return myLabel;
133  }
134 
135  void setEntityType(const DtEntityType& e)
136  {
137  myEntityType = e;
138  }
139 
140  const DtEntityType& entityType() const
141  {
142  return myEntityType;
143  }
144 
145  void setForce(int f)
146  {
147  myForce = f;
148  }
149 
150  int force() const
151  {
152  return myForce;
153  }
154 
155  void setLocation(const DtVector& v)
156  {
157  myLocation = v;
158  }
159 
160  const DtVector& location() const
161  {
162  return myLocation;
163  }
164 
165  void setHeading(double h)
166  {
167  myHeading = h;
168  }
169 
170  double heading() const
171  {
172  return myHeading;
173  }
174 
175  void setAppearance(const DtAppearance& app)
176  {
177  myAppearance = app;
178  }
179 
180  const DtAppearance& appearance() const
181  {
182  return myAppearance;
183  }
184 
185  void setClampToGround(bool b)
186  {
187  myClamp = b;
188  }
189 
190  bool clampToGround() const
191  {
192  return myClamp;
193  }
194 
195  void setCreateSubordinates(bool b)
196  {
197  myCreateSubordinates = b;
198  }
199 
200  bool createSubordinates() const
201  {
202  return myCreateSubordinates;
203  }
204 
205  void setRequestId(int i)
206  {
207  myRequestId = i;
208  }
209 
210  int requestId() const
211  {
212  return myRequestId;
213  }
214 
215  void setInitialFormation(const std::string& l)
216  {
217  myInitialFormation = l;
218  }
219 
220  const std::string& initialFormation() const
221  {
222  return myInitialFormation;
223  }
224 
225  void setAggregateState(int i)
226  {
227  myAggregateState = i;
228  }
229 
230  int aggregateState() const
231  {
232  return myAggregateState;
233  }
234 
235  void setUUID(const DtUUID& uuid)
236  {
237  myUUID = uuid;
238  }
239 
240  const DtUUID& uuid() const
241  {
242  return myUUID;
243  }
244 
245  protected:
246  DtEntityType myEntityType;
247  int myForce;
249  std::string myName;
250  std::string myLabel;
251  double myHeading;
252  DtAppearance myAppearance;
253  bool myClamp;
256 
257  std::string myInitialFormation;
258  std::map<std::string, std::string> myExtendedData;
259  std::map<int, DtString> myExtendedLabels;
261  std::string myOverlayParent;
262 
264  };
265 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)