VR-Forces 4.1 Class Documentation
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"
22 #include "vrfutil/vrfutilDefines.h"
23 
28 {
29 public:
32 
34  DtModelSetEntry(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
35 
37  DtModelSetEntry(const DtModelSetEntry& orig, DtReaderWriterRegistry* const parentRegistry = NULL);
38 
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:
88  ;
96 };
97 
98 inline void DtModelSetEntry::setLabel(const DtString& s)
99 {
100  myLabel = s;
101 }
102 
104 {
105  return myLabel;
106 }
107 
109 {
110  myMenuIcon = s;
111 }
112 
114 {
115  return myMenuIcon;
116 }
117 
119 {
120  myKeywords = s;
121 }
122 
124 {
125  return myKeywords;
126 }
127 
129 {
130  myUniqueID = s;
131 }
132 
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 
149 {
150  myCanAggregate = b;
151 }
152 
153 inline bool DtModelSetEntry::canAggregate() const
154 {
155  return myCanAggregate;
156 }
157 
159 {
160  myOnOverlayPalette = b;
161 }
162 
164 {
165  return myOnOverlayPalette;
166 }
167 
169 {
170  myObjectType = o;
171 }
172 
174 {
175  return myObjectType;
176 }
177 
179 {
180  myForces = f;
181 }
182 
183 inline const DtRwForces& DtModelSetEntry::forces() const
184 {
185  return myForces;
186 }
187 
189 {
190  return myForces;
191 }
192 
194 {
195  myCategories = c;
196 }
197 
199 {
200  return myCategories;
201 }
202 
203 #endif
204 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)