Debian Codegraph @

lib/database/src/so/upgraders/SoV1Texture2.c++

raw symbols SCIP
1 /*
2 *
3 * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
17 * or the like. Any license provided herein, whether implied or
18 * otherwise, applies only to this software file. Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
27 * Mountain View, CA 94043, or:
28 *
29 * http://www.sgi.com
30 *
31 * For further information regarding this notice, see:
32 *
33 * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
34 *
35 */
36
37 /*
38 * Copyright (C) 1990,91,92 Silicon Graphics, Inc.
39 *
40 _______________________________________________________________________
41 ______________ S I L I C O N G R A P H I C S I N C . ____________
42 |
43 | $Revision: 1.1.1.1 $
44 |
45 | Classes:
46 | SoV1Texture2
47 |
48 | Author(s) : Gavin Bell
49 |
50 ______________ S I L I C O N G R A P H I C S I N C . ____________
51 _______________________________________________________________________
52 */
53
54 #include "SoV1Texture2.h"cxx . . $ `<file>/lib/database/src/so/upgraders/SoV1Texture2.h`/
55 #include <Inventor/SbPList.h>cxx . . $ `<file>/lib/database/include/Inventor/SbPList.h`/
56 #include <Inventor/nodes/SoTexture2.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoTexture2.h`/
57 #include <Inventor/nodes/SoTexture2Transform.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoTexture2Transform.h`/
58 #include <Inventor/sensors/SoNodeSensor.h>cxx . . $ `<file>/lib/database/include/Inventor/sensors/SoNodeSensor.h`/
59
60 SO_NODE_SOURCEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:241:9`!(SoV1Texture2);
61
62 //
63 // List of textures that we've created so we can share textures with
64 // the same filename, just like Inventor 1
65 //
66 SbPListcxx . . $ SbPList# *SoV1Texture2cxx . . $ SoV1Texture2#::textureListcxx . . $ SoV1Texture2#textureList. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
67
68 ////////////////////////////////////////////////////////////////////////
69 //
70 // Description:
71 // Default constructor
72 //
73 // Use: public
74
75 SoV1Texture2cxx . . $ SoV1Texture2#::SoV1Texture2cxx . . $ SoV1Texture2#SoV1Texture2(49f6e7a06ebc5aa8).()
76 //
77 ////////////////////////////////////////////////////////////////////////
78 {
79 SO_NODE_CONSTRUCTORcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:309:9`!(SoV1Texture2);
80
81 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(component, (INTENSITY));
82 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(filename, (""));
83 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(minFilter, (POINT));
84 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(magFilter, (POINT));
85 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(wrapS, (REPEAT));
86 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(wrapT, (REPEAT));
87 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(model, (MODULATE));
88 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(blendColor, (SbColor(1,1,1)));
89 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(translation, (SbVec2f(0., 0.)));
90 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(scaleFactor, (SbVec2f(1., 1.)));
91 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(rotation, (0.0));
92 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(center, (SbVec2f(0.0, 0.0)));
93
94 // Set up static info for enumerated type field
95 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(MinFilter, POINT);
96 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(MinFilter, BILINEAR);
97 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(MinFilter, MIPMAP_POINT);
98 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(MinFilter, MIPMAP_LINEAR);
99 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(MinFilter, MIPMAP_BILINEAR);
100 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(MinFilter, MIPMAP_TRILINEAR);
101
102 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(MagFilter, POINT);
103 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(MagFilter, BILINEAR);
104
105 // Set up enumerations for Texture2 model
106 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(Model, MODULATE);
107 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(Model, DECAL);
108 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(Model, BLEND);
109
110 // Set up enumerations for Texture2 component
111 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(Component, NULL_COMPONENT);
112 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(Component, INTENSITY);
113 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(Component, TRANSPARENCY);
114
115 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(Wrap, REPEAT);
116 SO_NODE_DEFINE_ENUM_VALUEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:378:9`!(Wrap, CLAMP);
117
118 // Set up info in enumerated type field
119 SO_NODE_SET_SF_ENUM_TYPEcxx . . $ `lib/database/include/Inventor/fields/SoSFEnum.h:155:9`!(minFilter, MinFilter);
120 SO_NODE_SET_SF_ENUM_TYPEcxx . . $ `lib/database/include/Inventor/fields/SoSFEnum.h:155:9`!(magFilter, MagFilter);
121 SO_NODE_SET_SF_ENUM_TYPEcxx . . $ `lib/database/include/Inventor/fields/SoSFEnum.h:155:9`!(model, Model);
122 SO_NODE_SET_SF_ENUM_TYPEcxx . . $ `lib/database/include/Inventor/fields/SoSFEnum.h:155:9`!(component, Component);
123 SO_NODE_SET_SF_ENUM_TYPEcxx . . $ `lib/database/include/Inventor/fields/SoSFEnum.h:155:9`!(wrapS, Wrap);
124 SO_NODE_SET_SF_ENUM_TYPEcxx . . $ `lib/database/include/Inventor/fields/SoSFEnum.h:155:9`!(wrapT, Wrap);
125
126 // This upgrader returns a group, but it is an upgrade of a non-group
127 isGroupcxx . . $ SoUpgrader#isGroup. = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
128 }
129
130 ////////////////////////////////////////////////////////////////////////
131 //
132 // Description:
133 // Destructor.
134 //
135 // Use: private
136
137 SoV1Texture2cxx . . $ SoV1Texture2#::~cxx . . $ SoV1Texture2#`~SoV1Texture2`(49f6e7a06ebc5aa8).SoV1Texture2cxx . . $ SoV1Texture2#()
138 //
139 ////////////////////////////////////////////////////////////////////////
140 {
141 }
142
143 ////////////////////////////////////////////////////////////////////////
144 //
145 // Description:
146 // Create a version 2.0 SoTexture2.
147 //
148 // Use: private
149
150 SoNodecxx . . $ SoNode# *
151 SoV1Texture2cxx . . $ SoV1Texture2#::createNewNodecxx . . $ SoV1Texture2#createNewNode(37b0c20759e6fed3).()
152 //
153 ////////////////////////////////////////////////////////////////////////
154 {
155 SoTexture2cxx . . $ SoTexture2# *tex;
156 SbBoolcxx . . $ SbBool# alreadyExists = findTexture2cxx . . $ SoV1Texture2#findTexture2(8cce32a4b84ca939).(tex);
157
158 tex->refcxx . . $ SoBase#ref(83f5f38750778ac8).();
159
160 if (!alreadyExists) {
161 // Convert from old enums to new fields:
162
163 // Easy ones first:
164 SO_UPGRADER_COPY_FIELDcxx . . $ `lib/database/include/Inventor/misc/upgraders/SoUpgrader.h:156:9`!(blendColor, tex);
165
166 // Enum values for model changed between 1.0/2.0:
167 if (!modelcxx . . $ SoV1Texture2#model..isDefaultcxx . . $ SoField#isDefault(455f465bc33b4cdf).()) {
168 switch (modelcxx . . $ SoV1Texture2#model..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).()) {
169 case MODULATEcxx . . $ SoV1Texture2#MODULATE.:
170 tex->modelcxx . . $ SoTexture2#model. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoTexture2cxx . . $ SoTexture2#::MODULATEcxx . . $ SoTexture2#MODULATE.;
171 break;
172 case DECALcxx . . $ SoV1Texture2#DECAL.:
173 tex->modelcxx . . $ SoTexture2#model. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoTexture2cxx . . $ SoTexture2#::DECALcxx . . $ SoTexture2#DECAL.;
174 break;
175 case BLENDcxx . . $ SoV1Texture2#BLEND.:
176 tex->modelcxx . . $ SoTexture2#model. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoTexture2cxx . . $ SoTexture2#::BLENDcxx . . $ SoTexture2#BLEND.;
177 break;
178 }
179 }
180 if (modelcxx . . $ SoV1Texture2#model..isIgnoredcxx . . $ SoField#isIgnored(455f465bc33b4cdf).()) tex->modelcxx . . $ SoTexture2#model..setIgnoredcxx . . $ SoField#setIgnored(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
181
182 // Enum values for wrapS changed between 1.0/2.0:
183 if (!wrapScxx . . $ SoV1Texture2#wrapS..isDefaultcxx . . $ SoField#isDefault(455f465bc33b4cdf).()) {
184 switch (wrapScxx . . $ SoV1Texture2#wrapS..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).()) {
185 case REPEATcxx . . $ SoV1Texture2#REPEAT.:
186 tex->wrapScxx . . $ SoTexture2#wrapS. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoTexture2cxx . . $ SoTexture2#::REPEATcxx . . $ SoTexture2#REPEAT.;
187 break;
188 case CLAMPcxx . . $ SoV1Texture2#CLAMP.:
189 tex->wrapScxx . . $ SoTexture2#wrapS. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoTexture2cxx . . $ SoTexture2#::CLAMPcxx . . $ SoTexture2#CLAMP.;
190 break;
191 }
192 }
193 if (wrapScxx . . $ SoV1Texture2#wrapS..isIgnoredcxx . . $ SoField#isIgnored(455f465bc33b4cdf).()) tex->wrapScxx . . $ SoTexture2#wrapS..setIgnoredcxx . . $ SoField#setIgnored(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
194
195 // Enum values for wrapT changed between 1.0/2.0:
196 if (!wrapTcxx . . $ SoV1Texture2#wrapT..isDefaultcxx . . $ SoField#isDefault(455f465bc33b4cdf).()) {
197 switch (wrapTcxx . . $ SoV1Texture2#wrapT..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).()) {
198 case REPEATcxx . . $ SoV1Texture2#REPEAT.:
199 tex->wrapTcxx . . $ SoTexture2#wrapT. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoTexture2cxx . . $ SoTexture2#::REPEATcxx . . $ SoTexture2#REPEAT.;
200 break;
201 case CLAMPcxx . . $ SoV1Texture2#CLAMP.:
202 tex->wrapTcxx . . $ SoTexture2#wrapT. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoTexture2cxx . . $ SoTexture2#::CLAMPcxx . . $ SoTexture2#CLAMP.;
203 break;
204 }
205 }
206 if (wrapTcxx . . $ SoV1Texture2#wrapT..isIgnoredcxx . . $ SoField#isIgnored(455f465bc33b4cdf).()) tex->wrapTcxx . . $ SoTexture2#wrapT..setIgnoredcxx . . $ SoField#setIgnored(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
207
208
209 // Convert name to string in filename field
210 if (! filenamecxx . . $ SoV1Texture2#filename..isDefaultcxx . . $ SoField#isDefault(455f465bc33b4cdf).())
211 tex->filenamecxx . . $ SoTexture2#filename. =cxx . . $ SoSFString#`operator=`(c81cdb6690d6e8d6). filenamecxx . . $ SbString#SbString(85c52e162fed56f9)..getValuecxx . . $ SoSFName#getValue(96f83ea34e3884f5).().getStringcxx . . $ SbName#getString(a9f41ea0e82d88cf).();
212 if (filenamecxx . . $ SoV1Texture2#filename..isIgnoredcxx . . $ SoField#isIgnored(455f465bc33b4cdf).())
213 tex->filenamecxx . . $ SoTexture2#filename..setIgnoredcxx . . $ SoField#setIgnored(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
214
215 // Ignore component field
216
217 // And ignore min/magFilters; I could create a Complexity node
218 // with textureQuality set and value/type ignored, but I don't
219 // think it is worth the effort...
220 }
221
222 // These require us to create a Texture2Transform also:
223 if (!translationcxx . . $ SoV1Texture2#translation..isDefaultcxx . . $ SoField#isDefault(455f465bc33b4cdf).() || !scaleFactorcxx . . $ SoV1Texture2#scaleFactor..isDefaultcxx . . $ SoField#isDefault(455f465bc33b4cdf).() ||
224 !rotationcxx . . $ SoV1Texture2#rotation..isDefaultcxx . . $ SoField#isDefault(455f465bc33b4cdf).()) {
225
226 SoGroupcxx . . $ SoGroup# *g = SO_UPGRADER_CREATE_NEWcxx . . $ `lib/database/include/Inventor/misc/upgraders/SoUpgrader.h:161:9`!(SoGroup);
227 g->refcxx . . $ SoBase#ref(83f5f38750778ac8).();
228
229 SoTexture2Transformcxx . . $ SoTexture2Transform# *xf = SO_UPGRADER_CREATE_NEWcxx . . $ `lib/database/include/Inventor/misc/upgraders/SoUpgrader.h:161:9`!(SoTexture2Transform);
230 g->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(xf);
231 SO_UPGRADER_COPY_FIELDcxx . . $ `lib/database/include/Inventor/misc/upgraders/SoUpgrader.h:156:9`!(translation, xf);
232 SO_UPGRADER_COPY_FIELDcxx . . $ `lib/database/include/Inventor/misc/upgraders/SoUpgrader.h:156:9`!(scaleFactor, xf);
233 SO_UPGRADER_COPY_FIELDcxx . . $ `lib/database/include/Inventor/misc/upgraders/SoUpgrader.h:156:9`!(rotation, xf);
234 SO_UPGRADER_COPY_FIELDcxx . . $ `lib/database/include/Inventor/misc/upgraders/SoUpgrader.h:156:9`!(center, xf);
235
236 g->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(tex);
237 tex->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).();
238 g->unrefNoDeletecxx . . $ SoBase#unrefNoDelete(83f5f38750778ac8).();
239
240 return g;
241 }
242 tex->unrefNoDeletecxx . . $ SoBase#unrefNoDelete(83f5f38750778ac8).();
243
244 return tex;
245 }
246
247 ////////////////////////////////////////////////////////////////////////
248 //
249 // Description:
250 // Get a texture2 node with the right stuff in it. This imitates
251 // the Inventor 1.0 behavior of sharing GL texture maps by
252 // instancing Texture2 nodes with the same fields. It does this by
253 // maintaining a list of all Texture2 nodes created by the
254 // upgrader, and searching through the list for a match.
255 //
256 // Use: private
257
258 SbBoolcxx . . $ SbBool#
259 SoV1Texture2cxx . . $ SoV1Texture2#::findTexture2cxx . . $ SoV1Texture2#findTexture2(8cce32a4b84ca939).(SoTexture2cxx . . $ SoTexture2# *&tex)
260 //
261 ////////////////////////////////////////////////////////////////////////
262 {
263 if (textureListcxx . . $ SoV1Texture2#textureList. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
264 textureListcxx . . $ SoV1Texture2#textureList. = new SbPListcxx . . $ SbPList#;
265 }
266 for (int i = 0; i < textureListcxx . . $ SoV1Texture2#textureList.->getLengthcxx . . $ SbPList#getLength(455f465bc33b4cdf).(); i++) {
267 tex = (SoTexture2cxx . . $ SoTexture2# *)(*textureListcxx . . $ SoV1Texture2#textureList.)[cxx . . $ SbPList#`operator[]`(5f9a4f363ac2f591).i];
268 if (matchescxx . . $ SoV1Texture2#matches(e2fe609807e1a103).(tex))
269 return TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!;
270 }
271 // Not found, create a new one and add to list:
272 tex = SO_UPGRADER_CREATE_NEWcxx . . $ `lib/database/include/Inventor/misc/upgraders/SoUpgrader.h:161:9`!(SoTexture2);
273 textureListcxx . . $ SoV1Texture2#textureList.->appendcxx . . $ SbPList#append(5d22bdacc48458e8).(tex);
274
275 // And add a node sensor so we can remove the texture from the
276 // list if it is deleted:
277 SoNodeSensorcxx . . $ SoNodeSensor# *sensor = new SoNodeSensorcxx . . $ SoNodeSensor#;
278 sensor->attachcxx . . $ SoNodeSensor#attach(da6c7544ccee32bd).(tex);
279 sensor->setDeleteCallbackcxx . . $ SoDataSensor#setDeleteCallback(2e94453e53abe5a2).(nodeDeletedCBcxx . . $ SoV1Texture2#nodeDeletedCB(c8d298b3e215c027)., tex);
280
281 return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
282 }
283
284 ////////////////////////////////////////////////////////////////////////
285 //
286 // Description:
287 // Returns TRUE if the given Texture2 node's fields match this
288 // upgrader's fields.
289 //
290 // Use: private, static
291
292 SbBoolcxx . . $ SbBool#
293 SoV1Texture2cxx . . $ SoV1Texture2#::matchescxx . . $ SoV1Texture2#matches(e2fe609807e1a103).(SoTexture2cxx . . $ SoTexture2# *compare)
294 //
295 ////////////////////////////////////////////////////////////////////////
296 {
297 if (compare->filenamecxx . . $ SoTexture2#filename..getValuecxx . . $ SoSFString#getValue(fdbd3f046ea86381).() !=cxx . . $ `operator!=`(7399b355b639fe1).
298 filenamecxx . . $ SoV1Texture2#filename..getValuecxx . . $ SoSFName#getValue(96f83ea34e3884f5).().getStringcxx . . $ SbName#getString(a9f41ea0e82d88cf).()) return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
299
300 int compareModel = compare->modelcxx . . $ SoTexture2#model..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).();
301 switch (modelcxx . . $ SoV1Texture2#model..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).()) {
302 case MODULATEcxx . . $ SoV1Texture2#MODULATE.:
303 if (compareModel != SoTexture2cxx . . $ SoTexture2#::MODULATEcxx . . $ SoTexture2#MODULATE.) return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
304 break;
305 case DECALcxx . . $ SoV1Texture2#DECAL.:
306 if (compareModel != SoTexture2cxx . . $ SoTexture2#::DECALcxx . . $ SoTexture2#DECAL.) return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
307 break;
308 case BLENDcxx . . $ SoV1Texture2#BLEND.:
309 if (compareModel != SoTexture2cxx . . $ SoTexture2#::BLENDcxx . . $ SoTexture2#BLEND.) return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
310 break;
311 }
312 int compareWrap = compare->wrapScxx . . $ SoTexture2#wrapS..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).();
313 switch (wrapScxx . . $ SoV1Texture2#wrapS..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).()) {
314 case REPEATcxx . . $ SoV1Texture2#REPEAT.:
315 if (compareWrap != SoTexture2cxx . . $ SoTexture2#::REPEATcxx . . $ SoTexture2#REPEAT.) return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
316 break;
317 case CLAMPcxx . . $ SoV1Texture2#CLAMP.:
318 if (compareWrap != SoTexture2cxx . . $ SoTexture2#::CLAMPcxx . . $ SoTexture2#CLAMP.) return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
319 break;
320 }
321 compareWrap = compare->wrapTcxx . . $ SoTexture2#wrapT..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).();
322 switch (wrapTcxx . . $ SoV1Texture2#wrapT..getValuecxx . . $ SoSFEnum#getValue(455f465bc33b4cdf).()) {
323 case REPEATcxx . . $ SoV1Texture2#REPEAT.:
324 if (compareWrap != SoTexture2cxx . . $ SoTexture2#::REPEATcxx . . $ SoTexture2#REPEAT.) return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
325 break;
326 case CLAMPcxx . . $ SoV1Texture2#CLAMP.:
327 if (compareWrap != SoTexture2cxx . . $ SoTexture2#::CLAMPcxx . . $ SoTexture2#CLAMP.) return FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!;
328 break;
329 }
330 return TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!;
331 }
332
333 ////////////////////////////////////////////////////////////////////////
334 //
335 // Description:
336 // Called by node sensor when a Texture2 we are keeping track of is
337 // deleted. Removes the node from the list and deletes the sensor.
338 //
339 // Use: private, static
340
341 void
342 SoV1Texture2cxx . . $ SoV1Texture2#::nodeDeletedCBcxx . . $ SoV1Texture2#nodeDeletedCB(c8d298b3e215c027).(void *node, SoSensorcxx . . $ SoSensor# *sensor)
343 //
344 ////////////////////////////////////////////////////////////////////////
345 {
346 textureListcxx . . $ SoV1Texture2#textureList.->removecxx . . $ SbPList#remove(d4f767463ce0a6b3).(textureListcxx . . $ SoV1Texture2#textureList.->findcxx . . $ SbPList#find(bca04c809f7da908).(node));
347 delete sensor;
348 }