VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
modelSetEntry.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: modelSetEntry.h,v $ $Revision: 1.5 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DtModelSetEntry_H_
13
#define DtModelSetEntry_H_
14
15
#include <vlutil/vlString.h>
16
#include "
vrfutil/rdrWritr.h
"
17
#include "
vrfutil/rwObjType.h
"
18
#include "
vrfutil/rwBoolean.h
"
19
#include "
vrfutil/rwString.h
"
20
#include "
vrfutil/rwForces.h
"
21
#include "
vrfutil/rwNLengthStringVector.h
"
22
#include "
vrfutil/vrfutilDefines.h
"
23
27
class
DT_DLL_vrfutil
DtModelSetEntry
:
public
DtReaderWriter
28
{
29
public
:
31
DtModelSetEntry
();
32
34
DtModelSetEntry
(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
35
37
DtModelSetEntry
(
const
DtModelSetEntry
& orig,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
38
40
DtModelSetEntry
&
operator=
(
const
DtModelSetEntry
& orig);
41
42
virtual
~
DtModelSetEntry
();
43
44
virtual
DtModelSetEntry
* clone();
45
46
virtual
const
char
*
readerWriterType
();
47
48
static
DtModelSetEntry
* create(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
49
50
DtString
label()
const
;
51
void
setLabel(
const
DtString
&);
52
53
DtString
uniqueID()
const
;
54
void
setUniqueID(
const
DtString
&);
55
56
bool
canCreate()
const
;
57
void
setCanCreate(
bool
);
58
59
bool
onOverlayPalette()
const
;
60
void
setOnOverlayPalette(
bool
);
61
62
bool
canAggregate()
const
;
63
void
setCanAggregate(
bool
);
64
65
void
setObjectType(
const
DtObjectType
&);
66
DtObjectType
objectType()
const
;
67
68
DtString
menuIcon()
const
;
69
void
setMenuIcon(
const
DtString
&);
70
71
void
setKeywords(
const
DtString
&);
72
DtString
keywords()
const
;
73
74
void
setForces(
const
DtRwForces
&);
75
const
DtRwForces
& forces()
const
;
76
DtRwForces
& forces();
77
78
void
setCategories(
const
DtRwNLengthStringVector
&);
79
const
DtRwNLengthStringVector
& categories()
const
;
80
81
virtual
bool
operator==
(
const
DtModelSetEntry
&)
const
;
82
virtual
bool
operator!=
(
const
DtModelSetEntry
&)
const
;
83
84
protected
:
85
DtRwBoolean
myCanCreate
;
86
DtRwBoolean
myCanAggregate
;
87
DtRwBoolean
myOnOverlayPalette
;
88
;
89
DtRwString
myLabel
;
90
DtRwString
myUniqueID
;
91
DtRwString
myKeywords
;
92
DtRwString
myMenuIcon
;
93
DtRwObjectType
myObjectType
;
94
DtRwForces
myForces
;
95
DtRwNLengthStringVector
myCategories
;
96
};
97
98
inline
void
DtModelSetEntry::setLabel
(
const
DtString
& s)
99
{
100
myLabel
= s;
101
}
102
103
inline
DtString
DtModelSetEntry::label
()
const
104
{
105
return
myLabel
;
106
}
107
108
inline
void
DtModelSetEntry::setMenuIcon
(
const
DtString
& s)
109
{
110
myMenuIcon
= s;
111
}
112
113
inline
DtString
DtModelSetEntry::menuIcon
()
const
114
{
115
return
myMenuIcon
;
116
}
117
118
inline
void
DtModelSetEntry::setKeywords
(
const
DtString
& s)
119
{
120
myKeywords
= s;
121
}
122
123
inline
DtString
DtModelSetEntry::keywords
()
const
124
{
125
return
myKeywords
;
126
}
127
128
inline
void
DtModelSetEntry::setUniqueID
(
const
DtString
& s)
129
{
130
myUniqueID
= s;
131
}
132
133
inline
DtString
DtModelSetEntry::uniqueID
()
const
134
{
135
return
myUniqueID
;
136
}
137
138
inline
void
DtModelSetEntry::setCanCreate
(
bool
b)
139
{
140
myCanCreate
= b;
141
}
142
143
inline
bool
DtModelSetEntry::canCreate
()
const
144
{
145
return
myCanCreate
;
146
}
147
148
inline
void
DtModelSetEntry::setCanAggregate
(
bool
b)
149
{
150
myCanAggregate
= b;
151
}
152
153
inline
bool
DtModelSetEntry::canAggregate
()
const
154
{
155
return
myCanAggregate
;
156
}
157
158
inline
void
DtModelSetEntry::setOnOverlayPalette
(
bool
b)
159
{
160
myOnOverlayPalette
= b;
161
}
162
163
inline
bool
DtModelSetEntry::onOverlayPalette
()
const
164
{
165
return
myOnOverlayPalette
;
166
}
167
168
inline
void
DtModelSetEntry::setObjectType
(
const
DtObjectType
& o)
169
{
170
myObjectType
= o;
171
}
172
173
inline
DtObjectType
DtModelSetEntry::objectType
()
const
174
{
175
return
myObjectType
;
176
}
177
178
inline
void
DtModelSetEntry::setForces
(
const
DtRwForces
& f)
179
{
180
myForces
= f;
181
}
182
183
inline
const
DtRwForces
&
DtModelSetEntry::forces
()
const
184
{
185
return
myForces
;
186
}
187
188
inline
DtRwForces
&
DtModelSetEntry::forces
()
189
{
190
return
myForces
;
191
}
192
193
inline
void
DtModelSetEntry::setCategories
(
const
DtRwNLengthStringVector
& c)
194
{
195
myCategories
= c;
196
}
197
198
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::categories
()
const
199
{
200
return
myCategories
;
201
}
202
203
#endif
204
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
)