VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfobjparam
modelSetEntry.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <vlutil/vlString.h>
9
#include <
readerWriter/readerWriter.h
>
10
#include <
readerWriter/rwObjectType.h
>
11
#include <
readerWriter/rwBoolean.h
>
12
#include <
readerWriter/rwString.h
>
13
#include "
vrfutil/rwForces.h
"
14
#include <
readerWriter/rwStringAttributeList.h
>
15
#include <
readerWriter/rwStringAttribute.h
>
16
#include "
vrfutil/rwNLengthStringVector.h
"
17
#include "
vrfobjparam/vrfobjparamDefines.h
"
18
#include "mtl/envValue.h"
19
#include "
vrfXmlTypes.h
"
20
24
class
DT_DLL_vrfobjparam
DtModelSetEntry
:
public
DtReaderWriter
25
{
26
public
:
28
DtModelSetEntry
();
29
31
DtModelSetEntry
(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
32
34
DtModelSetEntry
(
const
DtModelSetEntry
& orig,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
35
37
DtModelSetEntry
&
operator=
(
const
DtModelSetEntry
& orig);
38
39
virtual
~
DtModelSetEntry
();
40
41
virtual
DtModelSetEntry
* clone();
42
43
virtual
const
char
*
readerWriterType
();
44
45
static
DtModelSetEntry
* create(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
46
47
DtString
label()
const
;
48
void
setLabel(
const
DtString
&);
49
50
DtString
platform()
const
;
51
void
setPlatform(
const
DtString
&);
52
53
DtString
uniqueID()
const
;
54
void
setUniqueID(
const
DtString
&);
55
58
void
setIsRandomized(
bool
);
59
bool
isRandomized()
const
;
60
61
bool
canCreate()
const
;
62
void
setCanCreate(
bool
);
63
64
bool
canAggregate()
const
;
65
void
setCanAggregate(
bool
);
66
67
void
setObjectType(
const
DtObjectType
&);
68
const
DtObjectType
& objectType()
const
;
69
72
void
setMatchType(
const
DtObjectType
&);
73
const
DtObjectType
& matchType()
const
;
74
75
DtString
menuIcon()
const
;
76
void
setMenuIcon(
const
DtString
&);
77
78
void
setKeywords(
const
DtString
&);
79
DtString
keywords()
const
;
80
83
void
setIncludeInBVSPCalcs(
bool
);
84
bool
includeInBVSPCalcs()
const
;
85
86
void
setForces(
const
DtRwForces
&);
87
const
DtRwForces
& forces()
const
;
88
DtRwForces
& forces();
89
90
void
setCategories(
const
DtRwNLengthStringVector
&);
91
const
DtRwNLengthStringVector
& categories()
const
;
92
93
void
addOnPalette(
const
DtString
&);
94
void
removeOnPalette(
const
DtString
&);
95
void
setOnlyOnPalette(
const
DtString
&);
96
97
void
setOnPalettes(
const
DtRwNLengthStringVector
&);
98
const
DtRwNLengthStringVector
& onPalettes()
const
;
99
100
void
setDefaultOverlayLayer(
const
DtString
&);
101
DtString
defaultOverlayLayer()
const
;
102
103
void
setDeployableCountries(
const
DtRwNLengthStringVector
&);
104
const
DtRwNLengthStringVector
& deployableCountries()
const
;
105
108
const
DtRwStringAttributeList
& iconLists()
const
;
109
DtRwStringAttributeList
& iconLists();
110
void
setIconLists(
const
DtRwStringAttributeList
&);
111
void
setIconForList(
const
DtString
&,
const
DtString
&);
112
DtString
iconForList(
const
DtString
&)
const
;
113
114
virtual
bool
operator==
(
const
DtModelSetEntry
&)
const
;
115
virtual
bool
operator!=
(
const
DtModelSetEntry
&)
const
;
116
117
virtual
void
getSelf
(DtlObjPtr args,
118
const
DtReaderWriter::SearchPaths
& searchPaths =
DtReaderWriter::SearchPaths
(),
119
const
DtVariableBindingsList
& variableBindings =
nullVariableReference
());
120
124
virtual
void
readFromEnvironment(
DtEnvironmentSP
, DtEnvValueSP objectNode);
125
128
virtual
void
writeToEnvironment(
DtEnvironmentSP
, DtEnvValueSP objectNode)
const
;
129
130
virtual
void
updateImageData(
char
from,
char
to)
const
;
131
132
protected
:
133
DtRwBoolean
myCanCreate
;
134
DtRwBoolean
myCanAggregate
;
135
DtRwString
myLabel
;
136
DtRwString
myUniqueID
;
137
DtRwString
myKeywords
;
138
DtRwString
myMenuIcon
;
139
DtRwString
myDefaultOverlayLayer
;
140
DtRwObjectType
myObjectType
;
141
DtRwForces
myForces
;
142
DtRwNLengthStringVector
myOnPalettes
;
143
DtRwNLengthStringVector
myCategories
;
144
DtRwNLengthStringVector
myDeployableCountries
;
145
DtRwStringAttributeList
myIconLists
;
146
DtRwBoolean
myIncludeInBVSPCalcs
;
147
DtString
myPlatform
;
148
DtRwBoolean
myIsRandomized
;
149
150
DtObjectType
myMatchType
;
151
};
152
153
inline
const
DtRwStringAttributeList
&
DtModelSetEntry::iconLists
()
const
154
{
155
return
myIconLists
;
156
}
157
158
inline
DtRwStringAttributeList
&
DtModelSetEntry::iconLists
()
159
{
160
return
myIconLists
;
161
}
162
163
inline
void
DtModelSetEntry::setIconLists
(
const
DtRwStringAttributeList
& l)
164
{
165
myIconLists
= l;
166
}
167
168
inline
void
DtModelSetEntry::setIconForList
(
const
DtString
& icon,
const
DtString
& list)
169
{
170
myIconLists
.
removeStringAttribute
(list);
171
DtRwStringAttribute
atr(list, list, icon);
172
myIconLists
.
addStringAttribute
(atr);
173
}
174
175
inline
DtString
DtModelSetEntry::iconForList
(
const
DtString
& key)
const
176
{
177
return
myIconLists
.
value
(key);
178
}
179
180
inline
void
DtModelSetEntry::setLabel
(
const
DtString
& s)
181
{
182
myLabel
= s;
183
}
184
185
inline
DtString
DtModelSetEntry::label
()
const
186
{
187
return
myLabel
;
188
}
189
190
inline
void
DtModelSetEntry::setPlatform
(
const
DtString
& s)
191
{
192
myPlatform
= s;
193
}
194
195
inline
DtString
DtModelSetEntry::platform
()
const
196
{
197
return
myPlatform
;
198
}
199
200
inline
void
DtModelSetEntry::setMenuIcon
(
const
DtString
& s)
201
{
202
myMenuIcon
= s;
203
}
204
205
inline
DtString
DtModelSetEntry::menuIcon
()
const
206
{
207
return
myMenuIcon
;
208
}
209
210
inline
void
DtModelSetEntry::setKeywords
(
const
DtString
& s)
211
{
212
myKeywords
= s;
213
}
214
215
inline
DtString
DtModelSetEntry::keywords
()
const
216
{
217
return
myKeywords
;
218
}
219
220
inline
void
DtModelSetEntry::setDefaultOverlayLayer
(
const
DtString
& s)
221
{
222
myDefaultOverlayLayer
= s;
223
}
224
225
inline
DtString
DtModelSetEntry::defaultOverlayLayer
()
const
226
{
227
return
myDefaultOverlayLayer
;
228
}
229
230
inline
void
DtModelSetEntry::setUniqueID
(
const
DtString
& s)
231
{
232
myUniqueID
= s;
233
}
234
235
inline
DtString
DtModelSetEntry::uniqueID
()
const
236
{
237
return
myUniqueID
;
238
}
239
240
inline
void
DtModelSetEntry::setCanCreate
(
bool
b)
241
{
242
myCanCreate
= b;
243
}
244
245
inline
bool
DtModelSetEntry::canCreate
()
const
246
{
247
return
myCanCreate
;
248
}
249
250
inline
void
DtModelSetEntry::setCanAggregate
(
bool
b)
251
{
252
myCanAggregate
= b;
253
}
254
255
inline
bool
DtModelSetEntry::canAggregate
()
const
256
{
257
return
myCanAggregate
;
258
}
259
260
inline
void
DtModelSetEntry::setObjectType
(
const
DtObjectType
& o)
261
{
262
myObjectType
= o;
263
}
264
265
inline
const
DtObjectType
&
DtModelSetEntry::objectType
()
const
266
{
267
return
myObjectType
;
268
}
269
270
inline
void
DtModelSetEntry::setMatchType
(
const
DtObjectType
& o)
271
{
272
myMatchType
= o;
273
}
274
275
inline
const
DtObjectType
&
DtModelSetEntry::matchType
()
const
276
{
277
return
myMatchType
;
278
}
279
280
inline
void
DtModelSetEntry::setForces
(
const
DtRwForces
& f)
281
{
282
myForces
= f;
283
}
284
285
inline
const
DtRwForces
&
DtModelSetEntry::forces
()
const
286
{
287
return
myForces
;
288
}
289
290
inline
DtRwForces
&
DtModelSetEntry::forces
()
291
{
292
return
myForces
;
293
}
294
295
inline
void
DtModelSetEntry::setCategories
(
const
DtRwNLengthStringVector
& c)
296
{
297
myCategories
= c;
298
}
299
300
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::categories
()
const
301
{
302
return
myCategories
;
303
}
304
305
inline
void
DtModelSetEntry::setOnPalettes
(
const
DtRwNLengthStringVector
& c)
306
{
307
myOnPalettes
= c;
308
}
309
310
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::onPalettes
()
const
311
{
312
return
myOnPalettes
;
313
}
314
315
inline
void
DtModelSetEntry::setDeployableCountries
(
const
DtRwNLengthStringVector
& c)
316
{
317
myDeployableCountries
= c;
318
}
319
320
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::deployableCountries
()
const
321
{
322
return
myDeployableCountries
;
323
}
324
325
inline
void
DtModelSetEntry::setIncludeInBVSPCalcs
(
bool
b)
326
{
327
myIncludeInBVSPCalcs
= b;
328
}
329
330
inline
bool
DtModelSetEntry::includeInBVSPCalcs
()
const
331
{
332
return
myIncludeInBVSPCalcs
;
333
}
334
335
inline
void
DtModelSetEntry::setIsRandomized
(
bool
b)
336
{
337
myIsRandomized
= b;
338
}
339
340
inline
bool
DtModelSetEntry::isRandomized
()
const
341
{
342
return
myIsRandomized
;
343
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)