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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)