Source Code Cross Referenced for J3dDebug.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $RCSfile: J3dDebug.java,v $
003:         *
004:         * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
005:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
006:         *
007:         * This code is free software; you can redistribute it and/or modify it
008:         * under the terms of the GNU General Public License version 2 only, as
009:         * published by the Free Software Foundation.  Sun designates this
010:         * particular file as subject to the "Classpath" exception as provided
011:         * by Sun in the LICENSE file that accompanied this code.
012:         *
013:         * This code is distributed in the hope that it will be useful, but WITHOUT
014:         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
015:         * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
016:         * version 2 for more details (a copy is included in the LICENSE file that
017:         * accompanied this code).
018:         *
019:         * You should have received a copy of the GNU General Public License version
020:         * 2 along with this work; if not, write to the Free Software Foundation,
021:         * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
022:         *
023:         * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
024:         * CA 95054 USA or visit www.sun.com if you need additional information or
025:         * have any questions.
026:         *
027:         * $Revision: 1.8 $
028:         * $Date: 2008/02/28 20:17:25 $
029:         * $State: Exp $
030:         */
031:
032:        package javax.media.j3d;
033:
034:        class J3dDebug {
035:
036:            // For production release devPhase is set to false.
037:
038:            // Do no debugging.
039:            static final int NO_DEBUG = 0;
040:
041:            // How much debugging information do we want ?
042:            // (LEVEL_1 is very terse, LEVEL_5 is very verbose)
043:            static final int LEVEL_1 = 1;
044:            static final int LEVEL_2 = 2;
045:            static final int LEVEL_3 = 3;
046:            static final int LEVEL_4 = 4;
047:            static final int LEVEL_5 = 5;
048:
049:            // This static final variable is used to turn on/off debugging,
050:            // checking, and initializing codes that may be preferred in
051:            // development phase but not necessarily required in the
052:            // production release.
053:            //
054:            // Beside for debugging, use this variable to do initialization,
055:            // checking objects existence, and other checks that may help in
056:            // uncovering potential bugs during code development. This
057:            // variable should be turned off during production release as it
058:            // may cause performance hit.
059:            static final boolean devPhase = VersionInfo.isDevPhase;
060:
061:            // This is a property variable. It allows a true/false be sent to
062:            // J3d from command line, to on/off code segments.  To avoid
063:            // performance hit in production release, this variable MUST be
064:            // used with devPhase when guarding code segments for execution.
065:            // eg.   if(J3dDebug.devPhase && J3dDebug.debug)
066:            //             do code_segment;
067:            // Note: devPhase is a static final variable and debug isn't. If
068:            // devPhase is put before debug, smart compiler will not include
069:            // code_segment when devPhase is false.
070:            static boolean debug;
071:
072:            // Class debug variable, there is one debug variable per class.
073:            // Set one of the 5 debug levels to the class debug variable when
074:            // debugging.
075:            // For example, alpha = !devPhase?NO_DEBUG:LEVEL_2; will cause
076:            // code segments guarded by LEVEL_1 and LEVEL_2 be executed.  And
077:            // alpha = !devPhase?NO_DEBUG:NO_DEBUG; means do no debug.
078:            static final int alpha = !devPhase ? NO_DEBUG : NO_DEBUG;
079:            static final int alternateAppearance = !devPhase ? NO_DEBUG
080:                    : NO_DEBUG;
081:            static final int ambientLight = !devPhase ? NO_DEBUG : NO_DEBUG;
082:            static final int ambientLightRetained = !devPhase ? NO_DEBUG
083:                    : NO_DEBUG;
084:            static final int appearance = !devPhase ? NO_DEBUG : NO_DEBUG;
085:            static final int appearanceRetained = !devPhase ? NO_DEBUG
086:                    : NO_DEBUG;
087:            static final int assertionFailureException = !devPhase ? NO_DEBUG
088:                    : NO_DEBUG;
089:            static final int attributeBin = !devPhase ? NO_DEBUG : NO_DEBUG;
090:            static final int audioDevice = !devPhase ? NO_DEBUG : NO_DEBUG;
091:            static final int audioDevice3D = !devPhase ? NO_DEBUG : NO_DEBUG;
092:            static final int audioDeviceEnumerator = !devPhase ? NO_DEBUG
093:                    : NO_DEBUG;
094:            static final int auralAttributes = !devPhase ? NO_DEBUG : NO_DEBUG;
095:            static final int auralAttributesRetained = !devPhase ? NO_DEBUG
096:                    : NO_DEBUG;
097:            static final int bHInsertStructure = !devPhase ? NO_DEBUG
098:                    : NO_DEBUG;
099:            static final int bHInternalNode = !devPhase ? NO_DEBUG : NO_DEBUG;
100:            static final int bHLeafInterface = !devPhase ? NO_DEBUG : NO_DEBUG;
101:            static final int bHLeafNode = !devPhase ? NO_DEBUG : NO_DEBUG;
102:            static final int bHNode = !devPhase ? NO_DEBUG : NO_DEBUG;
103:            static final int bHTree = !devPhase ? NO_DEBUG : NO_DEBUG;
104:            static final int background = !devPhase ? NO_DEBUG : NO_DEBUG;
105:            static final int backgroundRetained = !devPhase ? NO_DEBUG
106:                    : NO_DEBUG;
107:            static final int backgroundSound = !devPhase ? NO_DEBUG : NO_DEBUG;
108:            static final int backgroundSoundRetained = !devPhase ? NO_DEBUG
109:                    : NO_DEBUG;
110:            static final int badTransformException = !devPhase ? NO_DEBUG
111:                    : NO_DEBUG;
112:            static final int behavior = !devPhase ? NO_DEBUG : NO_DEBUG;
113:            static final int behaviorRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
114:            static final int behaviorScheduler = !devPhase ? NO_DEBUG
115:                    : NO_DEBUG;
116:            static final int behaviorStructure = !devPhase ? NO_DEBUG
117:                    : NO_DEBUG;
118:            static final int billboard = !devPhase ? NO_DEBUG : NO_DEBUG;
119:            static final int boundingBox = !devPhase ? NO_DEBUG : NO_DEBUG;
120:            static final int boundingLeaf = !devPhase ? NO_DEBUG : NO_DEBUG;
121:            static final int boundingLeafRetained = !devPhase ? NO_DEBUG
122:                    : NO_DEBUG;
123:            static final int boundingPolytope = !devPhase ? NO_DEBUG : NO_DEBUG;
124:            static final int boundingSphere = !devPhase ? NO_DEBUG : NO_DEBUG;
125:            static final int bounds = !devPhase ? NO_DEBUG : NO_DEBUG;
126:            static final int branchGroup = !devPhase ? NO_DEBUG : NO_DEBUG;
127:            static final int branchGroupRetained = !devPhase ? NO_DEBUG
128:                    : NO_DEBUG;
129:            static final int cachedFrustum = !devPhase ? NO_DEBUG : NO_DEBUG;
130:            static final int canvas3D = !devPhase ? NO_DEBUG : NO_DEBUG;
131:            static final int canvasViewCache = !devPhase ? NO_DEBUG : NO_DEBUG;
132:            static final int canvasViewEventCatcher = !devPhase ? NO_DEBUG
133:                    : NO_DEBUG;
134:            static final int capabilityBits = !devPhase ? NO_DEBUG : NO_DEBUG;
135:            static final int capabilityNotSetException = !devPhase ? NO_DEBUG
136:                    : NO_DEBUG;
137:            static final int clip = !devPhase ? NO_DEBUG : NO_DEBUG;
138:            static final int clipRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
139:            static final int colorInterpolator = !devPhase ? NO_DEBUG
140:                    : NO_DEBUG;
141:            static final int coloringAttributes = !devPhase ? NO_DEBUG
142:                    : NO_DEBUG;
143:            static final int coloringAttributesRetained = !devPhase ? NO_DEBUG
144:                    : NO_DEBUG;
145:            static final int compileState = !devPhase ? NO_DEBUG : LEVEL_3;
146:            static final int compressedGeometry = !devPhase ? NO_DEBUG
147:                    : NO_DEBUG;
148:            static final int compressedGeometryHeader = !devPhase ? NO_DEBUG
149:                    : NO_DEBUG;
150:            static final int compressedGeometryRenderMethod = !devPhase ? NO_DEBUG
151:                    : NO_DEBUG;
152:            static final int compressedGeometryRetained = !devPhase ? NO_DEBUG
153:                    : NO_DEBUG;
154:            static final int coneSound = !devPhase ? NO_DEBUG : NO_DEBUG;
155:            static final int coneSoundRetained = !devPhase ? NO_DEBUG
156:                    : NO_DEBUG;
157:            static final int danglingReferenceException = !devPhase ? NO_DEBUG
158:                    : NO_DEBUG;
159:
160:            static final int decalGroup = !devPhase ? NO_DEBUG : NO_DEBUG;
161:            static final int decalGroupRetained = !devPhase ? NO_DEBUG
162:                    : NO_DEBUG;
163:            static final int defaultRenderMethod = !devPhase ? NO_DEBUG
164:                    : NO_DEBUG;
165:            static final int depthComponent = !devPhase ? NO_DEBUG : NO_DEBUG;
166:            static final int depthComponentFloat = !devPhase ? NO_DEBUG
167:                    : NO_DEBUG;
168:            static final int depthComponentFloatRetained = !devPhase ? NO_DEBUG
169:                    : NO_DEBUG;
170:            static final int depthComponentInt = !devPhase ? NO_DEBUG
171:                    : NO_DEBUG;
172:            static final int depthComponentIntRetained = !devPhase ? NO_DEBUG
173:                    : NO_DEBUG;
174:            static final int depthComponentNative = !devPhase ? NO_DEBUG
175:                    : NO_DEBUG;
176:            static final int depthComponentNativeRetained = !devPhase ? NO_DEBUG
177:                    : NO_DEBUG;
178:            static final int depthComponentRetained = !devPhase ? NO_DEBUG
179:                    : NO_DEBUG;
180:            static final int directionalLight = !devPhase ? NO_DEBUG : NO_DEBUG;
181:            static final int directionalLightRetained = !devPhase ? NO_DEBUG
182:                    : NO_DEBUG;
183:            static final int displayListRenderMethod = !devPhase ? NO_DEBUG
184:                    : NO_DEBUG;
185:            static final int distanceLOD = !devPhase ? NO_DEBUG : NO_DEBUG;
186:            static final int environmentSet = !devPhase ? NO_DEBUG : NO_DEBUG;
187:            static final int eventCatcher = !devPhase ? NO_DEBUG : NO_DEBUG;
188:            static final int exponentialFog = !devPhase ? NO_DEBUG : NO_DEBUG;
189:            static final int exponentialFogRetained = !devPhase ? NO_DEBUG
190:                    : NO_DEBUG;
191:            static final int fog = !devPhase ? NO_DEBUG : NO_DEBUG;
192:            static final int fogRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
193:            static final int font3D = !devPhase ? NO_DEBUG : NO_DEBUG;
194:            static final int fontExtrusion = !devPhase ? NO_DEBUG : NO_DEBUG;
195:            static final int generalizedStrip = !devPhase ? NO_DEBUG : NO_DEBUG;
196:            static final int generalizedStripFlags = !devPhase ? NO_DEBUG
197:                    : NO_DEBUG;
198:            static final int generalizedVertexList = !devPhase ? NO_DEBUG
199:                    : NO_DEBUG;
200:            static final int geometry = !devPhase ? NO_DEBUG : NO_DEBUG;
201:            static final int geometryArray = !devPhase ? NO_DEBUG : NO_DEBUG;
202:            static final int geometryArrayRetained = !devPhase ? NO_DEBUG
203:                    : NO_DEBUG;
204:            static final int geometryAtom = !devPhase ? NO_DEBUG : NO_DEBUG;
205:            static final int geometryDecompressor = !devPhase ? NO_DEBUG
206:                    : NO_DEBUG;
207:            static final int geometryDecompressorRetained = !devPhase ? NO_DEBUG
208:                    : NO_DEBUG;
209:            static final int geometryDecompressorShape3D = !devPhase ? NO_DEBUG
210:                    : NO_DEBUG;
211:            static final int geometryLock = !devPhase ? NO_DEBUG : NO_DEBUG;
212:            static final int geometryLockInterface = !devPhase ? NO_DEBUG
213:                    : NO_DEBUG;
214:            static final int geometryRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
215:            static final int geometryStripArray = !devPhase ? NO_DEBUG
216:                    : NO_DEBUG;
217:            static final int geometryStripArrayRetained = !devPhase ? NO_DEBUG
218:                    : NO_DEBUG;
219:            static final int geometryStructure = !devPhase ? NO_DEBUG
220:                    : NO_DEBUG;
221:            static final int geometryUpdater = !devPhase ? NO_DEBUG : NO_DEBUG;
222:            static final int graphicsConfigTemplate3D = !devPhase ? NO_DEBUG
223:                    : NO_DEBUG;
224:            static final int graphicsContext3D = !devPhase ? NO_DEBUG
225:                    : NO_DEBUG;
226:            static final int group = !devPhase ? NO_DEBUG : NO_DEBUG;
227:            static final int groupRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
228:            static final int hashKey = !devPhase ? NO_DEBUG : NO_DEBUG;
229:            static final int hiResCoord = !devPhase ? NO_DEBUG : NO_DEBUG;
230:            static final int illegalRenderingStateException = !devPhase ? NO_DEBUG
231:                    : NO_DEBUG;
232:            static final int illegalSharingException = !devPhase ? NO_DEBUG
233:                    : NO_DEBUG;
234:            static final int imageComponent = !devPhase ? NO_DEBUG : NO_DEBUG;
235:            static final int imageComponent2D = !devPhase ? NO_DEBUG : NO_DEBUG;
236:            static final int imageComponent2DRetained = !devPhase ? NO_DEBUG
237:                    : NO_DEBUG;
238:            static final int imageComponent3D = !devPhase ? NO_DEBUG : NO_DEBUG;
239:            static final int imageComponent3DRetained = !devPhase ? NO_DEBUG
240:                    : NO_DEBUG;
241:            static final int imageComponentRetained = !devPhase ? NO_DEBUG
242:                    : NO_DEBUG;
243:            static final int indexedGeometryArray = !devPhase ? NO_DEBUG
244:                    : NO_DEBUG;
245:            static final int indexedGeometryArrayRetained = !devPhase ? NO_DEBUG
246:                    : NO_DEBUG;
247:            static final int indexedGeometryStripArray = !devPhase ? NO_DEBUG
248:                    : NO_DEBUG;
249:            static final int indexedGeometryStripArrayRetained = !devPhase ? NO_DEBUG
250:                    : NO_DEBUG;
251:            static final int indexedLineArray = !devPhase ? NO_DEBUG : NO_DEBUG;
252:            static final int indexedLineArrayRetained = !devPhase ? NO_DEBUG
253:                    : NO_DEBUG;
254:            static final int indexedLineStripArray = !devPhase ? NO_DEBUG
255:                    : NO_DEBUG;
256:            static final int indexedLineStripArrayRetained = !devPhase ? NO_DEBUG
257:                    : NO_DEBUG;
258:            static final int indexedPointArray = !devPhase ? NO_DEBUG
259:                    : NO_DEBUG;
260:            static final int indexedPointArrayRetained = !devPhase ? NO_DEBUG
261:                    : NO_DEBUG;
262:            static final int indexedQuadArray = !devPhase ? NO_DEBUG : NO_DEBUG;
263:            static final int indexedQuadArrayRetained = !devPhase ? NO_DEBUG
264:                    : NO_DEBUG;
265:            static final int indexedTriangleArray = !devPhase ? NO_DEBUG
266:                    : NO_DEBUG;
267:            static final int indexedTriangleArrayRetained = !devPhase ? NO_DEBUG
268:                    : NO_DEBUG;
269:            static final int indexedTriangleFanArray = !devPhase ? NO_DEBUG
270:                    : NO_DEBUG;
271:            static final int indexedTriangleFanArrayRetained = !devPhase ? NO_DEBUG
272:                    : NO_DEBUG;
273:            static final int indexedTriangleStripArray = !devPhase ? NO_DEBUG
274:                    : NO_DEBUG;
275:            static final int indexedTriangleStripArrayRetained = !devPhase ? NO_DEBUG
276:                    : NO_DEBUG;
277:            static final int inputDevice = !devPhase ? NO_DEBUG : NO_DEBUG;
278:            static final int inputDeviceBlockingThread = !devPhase ? NO_DEBUG
279:                    : NO_DEBUG;
280:            static final int inputDeviceScheduler = !devPhase ? NO_DEBUG
281:                    : NO_DEBUG;
282:            static final int interpolator = !devPhase ? NO_DEBUG : NO_DEBUG;
283:            static final int j3dDataInputStream = !devPhase ? NO_DEBUG
284:                    : NO_DEBUG;
285:            static final int j3dDataOutputStream = !devPhase ? NO_DEBUG
286:                    : NO_DEBUG;
287:            static final int j3dDebug = !devPhase ? NO_DEBUG : NO_DEBUG;
288:            static final int j3dI18N = !devPhase ? NO_DEBUG : NO_DEBUG;
289:            static final int j3dMessage = !devPhase ? NO_DEBUG : NO_DEBUG;
290:            static final int j3dNodeTable = !devPhase ? NO_DEBUG : NO_DEBUG;
291:            static final int j3dQueryProps = !devPhase ? NO_DEBUG : NO_DEBUG;
292:            static final int j3dStructure = !devPhase ? NO_DEBUG : NO_DEBUG;
293:            static final int j3dThread = !devPhase ? NO_DEBUG : NO_DEBUG;
294:            static final int j3dThreadData = !devPhase ? NO_DEBUG : NO_DEBUG;
295:            static final int lOD = !devPhase ? NO_DEBUG : NO_DEBUG;
296:            static final int leaf = !devPhase ? NO_DEBUG : NO_DEBUG;
297:            static final int leafRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
298:            static final int light = !devPhase ? NO_DEBUG : NO_DEBUG;
299:            static final int lightBin = !devPhase ? NO_DEBUG : NO_DEBUG;
300:            static final int lightRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
301:            static final int lightSet = !devPhase ? NO_DEBUG : NO_DEBUG;
302:            static final int lineArray = !devPhase ? NO_DEBUG : NO_DEBUG;
303:            static final int lineArrayRetained = !devPhase ? NO_DEBUG
304:                    : NO_DEBUG;
305:            static final int lineAttributes = !devPhase ? NO_DEBUG : NO_DEBUG;
306:            static final int lineAttributesRetained = !devPhase ? NO_DEBUG
307:                    : NO_DEBUG;
308:            static final int lineStripArray = !devPhase ? NO_DEBUG : NO_DEBUG;
309:            static final int lineStripArrayRetained = !devPhase ? NO_DEBUG
310:                    : NO_DEBUG;
311:            static final int linearFog = !devPhase ? NO_DEBUG : NO_DEBUG;
312:            static final int linearFogRetained = !devPhase ? NO_DEBUG
313:                    : NO_DEBUG;
314:            static final int link = !devPhase ? NO_DEBUG : NO_DEBUG;
315:            static final int linkRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
316:            static final int locale = !devPhase ? NO_DEBUG : NO_DEBUG;
317:            static final int mRSWLock = !devPhase ? NO_DEBUG : NO_DEBUG;
318:            static final int masterControl = !devPhase ? NO_DEBUG : NO_DEBUG;
319:            static final int material = !devPhase ? NO_DEBUG : NO_DEBUG;
320:            static final int materialRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
321:            static final int mediaContainer = !devPhase ? NO_DEBUG : NO_DEBUG;
322:            static final int mediaContainerRetained = !devPhase ? NO_DEBUG
323:                    : NO_DEBUG;
324:            static final int modelClip = !devPhase ? NO_DEBUG : NO_DEBUG;
325:            static final int modelClipRetained = !devPhase ? NO_DEBUG
326:                    : NO_DEBUG;
327:            static final int morph = !devPhase ? NO_DEBUG : NO_DEBUG;
328:            static final int morphRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
329:            static final int multipleParentException = !devPhase ? NO_DEBUG
330:                    : NO_DEBUG;
331:            static final int node = !devPhase ? NO_DEBUG : NO_DEBUG;
332:            static final int nodeComponent = !devPhase ? NO_DEBUG : NO_DEBUG;
333:            static final int nodeComponentRetained = !devPhase ? NO_DEBUG
334:                    : NO_DEBUG;
335:            static final int nodeReferenceTable = !devPhase ? NO_DEBUG
336:                    : NO_DEBUG;
337:            static final int nodeRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
338:            static final int objectUpdate = !devPhase ? NO_DEBUG : NO_DEBUG;
339:            static final int orderedBin = !devPhase ? NO_DEBUG : NO_DEBUG;
340:            static final int orderedCollection = !devPhase ? NO_DEBUG
341:                    : NO_DEBUG;
342:            static final int orderedGroup = !devPhase ? NO_DEBUG : NO_DEBUG;
343:            static final int orderedGroupRetained = !devPhase ? NO_DEBUG
344:                    : NO_DEBUG;
345:            static final int pathInterpolator = !devPhase ? NO_DEBUG : NO_DEBUG;
346:            static final int physicalBody = !devPhase ? NO_DEBUG : NO_DEBUG;
347:            static final int physicalEnvironment = !devPhase ? NO_DEBUG
348:                    : NO_DEBUG;
349:            static final int pickBounds = !devPhase ? NO_DEBUG : NO_DEBUG;
350:            static final int pickCone = !devPhase ? NO_DEBUG : NO_DEBUG;
351:            static final int pickCylinderRay = !devPhase ? NO_DEBUG : NO_DEBUG;
352:            static final int pickCylinderSegment = !devPhase ? NO_DEBUG
353:                    : NO_DEBUG;
354:            static final int pickPoint = !devPhase ? NO_DEBUG : NO_DEBUG;
355:            static final int pickRay = !devPhase ? NO_DEBUG : NO_DEBUG;
356:            static final int pickSegment = !devPhase ? NO_DEBUG : NO_DEBUG;
357:            static final int pickShape = !devPhase ? NO_DEBUG : NO_DEBUG;
358:            static final int picking = !devPhase ? NO_DEBUG : NO_DEBUG;
359:            static final int pointArray = !devPhase ? NO_DEBUG : NO_DEBUG;
360:            static final int pointArrayRetained = !devPhase ? NO_DEBUG
361:                    : NO_DEBUG;
362:            static final int pointAttributes = !devPhase ? NO_DEBUG : NO_DEBUG;
363:            static final int pointAttributesRetained = !devPhase ? NO_DEBUG
364:                    : NO_DEBUG;
365:            static final int pointLight = !devPhase ? NO_DEBUG : NO_DEBUG;
366:            static final int pointLightRetained = !devPhase ? NO_DEBUG
367:                    : NO_DEBUG;
368:            static final int pointSound = !devPhase ? NO_DEBUG : NO_DEBUG;
369:            static final int pointSoundRetained = !devPhase ? NO_DEBUG
370:                    : NO_DEBUG;
371:            static final int polygonAttributes = !devPhase ? NO_DEBUG
372:                    : NO_DEBUG;
373:            static final int polygonAttributesRetained = !devPhase ? NO_DEBUG
374:                    : NO_DEBUG;
375:            static final int positionInterpolator = !devPhase ? NO_DEBUG
376:                    : NO_DEBUG;
377:            static final int positionPathInterpolator = !devPhase ? NO_DEBUG
378:                    : NO_DEBUG;
379:            static final int quadArray = !devPhase ? NO_DEBUG : NO_DEBUG;
380:            static final int quadArrayRetained = !devPhase ? NO_DEBUG
381:                    : NO_DEBUG;
382:            static final int raster = !devPhase ? NO_DEBUG : NO_DEBUG;
383:            static final int rasterRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
384:            static final int renderAtom = !devPhase ? NO_DEBUG : NO_DEBUG;
385:            static final int renderBin = !devPhase ? NO_DEBUG : NO_DEBUG;
386:            static final int renderBinLock = !devPhase ? NO_DEBUG : NO_DEBUG;
387:            static final int renderMethod = !devPhase ? NO_DEBUG : NO_DEBUG;
388:            static final int renderMolecule = !devPhase ? NO_DEBUG : NO_DEBUG;
389:            static final int renderer = !devPhase ? NO_DEBUG : NO_DEBUG;
390:            static final int rendererStructure = !devPhase ? NO_DEBUG
391:                    : NO_DEBUG;
392:            static final int renderingAttributes = !devPhase ? NO_DEBUG
393:                    : NO_DEBUG;
394:            static final int renderingAttributesRetained = !devPhase ? NO_DEBUG
395:                    : NO_DEBUG;
396:            static final int renderingAttributesStructure = !devPhase ? NO_DEBUG
397:                    : NO_DEBUG;
398:            static final int renderingEnvironmentStructure = !devPhase ? NO_DEBUG
399:                    : NO_DEBUG;
400:            static final int restrictedAccessException = !devPhase ? NO_DEBUG
401:                    : NO_DEBUG;
402:            static final int rotPosPathInterpolator = !devPhase ? NO_DEBUG
403:                    : NO_DEBUG;
404:            static final int rotPosScalePathInterpolator = !devPhase ? NO_DEBUG
405:                    : NO_DEBUG;
406:            static final int rotationInterpolator = !devPhase ? NO_DEBUG
407:                    : NO_DEBUG;
408:            static final int rotationPathInterpolator = !devPhase ? NO_DEBUG
409:                    : NO_DEBUG;
410:            static final int scaleInterpolator = !devPhase ? NO_DEBUG
411:                    : NO_DEBUG;
412:            static final int sceneGraphCycleException = !devPhase ? NO_DEBUG
413:                    : NO_DEBUG;
414:            static final int sceneGraphObject = !devPhase ? NO_DEBUG : NO_DEBUG;
415:            static final int sceneGraphObjectRetained = !devPhase ? NO_DEBUG
416:                    : NO_DEBUG;
417:            static final int sceneGraphPath = !devPhase ? NO_DEBUG : NO_DEBUG;
418:            static final int screen3D = !devPhase ? NO_DEBUG : NO_DEBUG;
419:            static final int screenViewCache = !devPhase ? NO_DEBUG : NO_DEBUG;
420:            static final int sensor = !devPhase ? NO_DEBUG : NO_DEBUG;
421:            static final int sensorRead = !devPhase ? NO_DEBUG : NO_DEBUG;
422:            static final int setLiveState = !devPhase ? NO_DEBUG : NO_DEBUG;
423:            static final int shape3D = !devPhase ? NO_DEBUG : NO_DEBUG;
424:            static final int shape3DRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
425:            static final int sharedGroup = !devPhase ? NO_DEBUG : NO_DEBUG;
426:            static final int sharedGroupRetained = !devPhase ? NO_DEBUG
427:                    : NO_DEBUG;
428:            static final int sound = !devPhase ? NO_DEBUG : NO_DEBUG;
429:            static final int soundException = !devPhase ? NO_DEBUG : NO_DEBUG;
430:            static final int soundRenderer = !devPhase ? NO_DEBUG : NO_DEBUG;
431:            static final int soundRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
432:            static final int soundScheduler = !devPhase ? NO_DEBUG : NO_DEBUG;
433:            static final int soundStructure = !devPhase ? NO_DEBUG : NO_DEBUG;
434:            static final int soundscape = !devPhase ? NO_DEBUG : NO_DEBUG;
435:            static final int soundscapeRetained = !devPhase ? NO_DEBUG
436:                    : NO_DEBUG;
437:            static final int spotLight = !devPhase ? NO_DEBUG : NO_DEBUG;
438:            static final int spotLightRetained = !devPhase ? NO_DEBUG
439:                    : NO_DEBUG;
440:            static final int structureUpdateThread = !devPhase ? NO_DEBUG
441:                    : NO_DEBUG;
442:
443:            // switch is a reserved word.
444:            static final int Switch = !devPhase ? NO_DEBUG : NO_DEBUG;
445:            static final int switchRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
446:            static final int switchValueInterpolator = !devPhase ? NO_DEBUG
447:                    : NO_DEBUG;
448:            static final int table = !devPhase ? NO_DEBUG : NO_DEBUG;
449:            static final int texCoordGeneration = !devPhase ? NO_DEBUG
450:                    : NO_DEBUG;
451:            static final int texCoordGenerationRetained = !devPhase ? NO_DEBUG
452:                    : NO_DEBUG;
453:            static final int text3D = !devPhase ? NO_DEBUG : NO_DEBUG;
454:            static final int text3DRenderMethod = !devPhase ? NO_DEBUG
455:                    : NO_DEBUG;
456:            static final int text3DRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
457:            static final int texture = !devPhase ? NO_DEBUG : NO_DEBUG;
458:            static final int texture2D = !devPhase ? NO_DEBUG : NO_DEBUG;
459:            static final int texture2DRetained = !devPhase ? NO_DEBUG
460:                    : NO_DEBUG;
461:            static final int texture3D = !devPhase ? NO_DEBUG : NO_DEBUG;
462:            static final int texture3DRetained = !devPhase ? NO_DEBUG
463:                    : NO_DEBUG;
464:            static final int textureAttributes = !devPhase ? NO_DEBUG
465:                    : NO_DEBUG;
466:            static final int textureAttributesRetained = !devPhase ? NO_DEBUG
467:                    : NO_DEBUG;
468:            static final int textureBin = !devPhase ? NO_DEBUG : NO_DEBUG;
469:            static final int textureRetained = !devPhase ? NO_DEBUG : NO_DEBUG;
470:            static final int textureSetting = !devPhase ? NO_DEBUG : NO_DEBUG;
471:            static final int timerThread = !devPhase ? NO_DEBUG : NO_DEBUG;
472:            static final int transform3D = !devPhase ? NO_DEBUG : NO_DEBUG;
473:            static final int transformGroup = !devPhase ? NO_DEBUG : NO_DEBUG;
474:            static final int transformGroupRetained = !devPhase ? NO_DEBUG
475:                    : NO_DEBUG;
476:            static final int transformStructure = !devPhase ? NO_DEBUG
477:                    : J3dDebug.LEVEL_3;
478:            static final int transparencyAttributes = !devPhase ? NO_DEBUG
479:                    : NO_DEBUG;
480:            static final int transparencyAttributesRetained = !devPhase ? NO_DEBUG
481:                    : NO_DEBUG;
482:            static final int transparencyInterpolator = !devPhase ? NO_DEBUG
483:                    : NO_DEBUG;
484:            static final int triangleArray = !devPhase ? NO_DEBUG : NO_DEBUG;
485:            static final int triangleArrayRetained = !devPhase ? NO_DEBUG
486:                    : NO_DEBUG;
487:            static final int triangleFanArray = !devPhase ? NO_DEBUG : NO_DEBUG;
488:            static final int triangleFanArrayRetained = !devPhase ? NO_DEBUG
489:                    : NO_DEBUG;
490:            static final int triangleStripArray = !devPhase ? NO_DEBUG
491:                    : NO_DEBUG;
492:            static final int triangleStripArrayRetained = !devPhase ? NO_DEBUG
493:                    : NO_DEBUG;
494:            static final int unorderList = !devPhase ? NO_DEBUG : NO_DEBUG;
495:            static final int vertexArrayRenderMethod = !devPhase ? NO_DEBUG
496:                    : NO_DEBUG;
497:            static final int view = !devPhase ? NO_DEBUG : NO_DEBUG;
498:            static final int viewCache = !devPhase ? NO_DEBUG : NO_DEBUG;
499:            static final int viewPlatform = !devPhase ? NO_DEBUG : NO_DEBUG;
500:            static final int viewPlatformRetained = !devPhase ? NO_DEBUG
501:                    : NO_DEBUG;
502:            static final int virtualUniverse = !devPhase ? NO_DEBUG : NO_DEBUG;
503:            static final int wakeupAnd = !devPhase ? NO_DEBUG : NO_DEBUG;
504:            static final int wakeupAndOfOrs = !devPhase ? NO_DEBUG : NO_DEBUG;
505:            static final int wakeupCondition = !devPhase ? NO_DEBUG : NO_DEBUG;
506:            static final int wakeupCriteriaEnumerator = !devPhase ? NO_DEBUG
507:                    : NO_DEBUG;
508:            static final int wakeupCriterion = !devPhase ? NO_DEBUG : NO_DEBUG;
509:            static final int wakeupOnAWTEvent = !devPhase ? NO_DEBUG : NO_DEBUG;
510:            static final int wakeupOnActivation = !devPhase ? NO_DEBUG
511:                    : NO_DEBUG;
512:            static final int wakeupOnBehaviorPost = !devPhase ? NO_DEBUG
513:                    : NO_DEBUG;
514:            static final int wakeupOnCollisionEntry = !devPhase ? NO_DEBUG
515:                    : NO_DEBUG;
516:            static final int wakeupOnCollisionExit = !devPhase ? NO_DEBUG
517:                    : NO_DEBUG;
518:            static final int wakeupOnCollisionMovement = !devPhase ? NO_DEBUG
519:                    : NO_DEBUG;
520:            static final int wakeupOnDeactivation = !devPhase ? NO_DEBUG
521:                    : NO_DEBUG;
522:            static final int wakeupOnElapsedFrames = !devPhase ? NO_DEBUG
523:                    : NO_DEBUG;
524:            static final int wakeupOnElapsedTime = !devPhase ? NO_DEBUG
525:                    : NO_DEBUG;
526:            static final int wakeupOnElapsedTimeHeap = !devPhase ? NO_DEBUG
527:                    : NO_DEBUG;
528:            static final int wakeupOnSensorEntry = !devPhase ? NO_DEBUG
529:                    : NO_DEBUG;
530:            static final int wakeupOnSensorExit = !devPhase ? NO_DEBUG
531:                    : NO_DEBUG;
532:            static final int wakeupOnTransformChange = !devPhase ? NO_DEBUG
533:                    : NO_DEBUG;
534:            static final int wakeupOnViewPlatformEntry = !devPhase ? NO_DEBUG
535:                    : NO_DEBUG;
536:            static final int wakeupOnViewPlatformExit = !devPhase ? NO_DEBUG
537:                    : NO_DEBUG;
538:            static final int wakeupOr = !devPhase ? NO_DEBUG : NO_DEBUG;
539:            static final int wakeupOrOfAnds = !devPhase ? NO_DEBUG : NO_DEBUG;
540:
541:            static boolean doDebug(int j3dClassLevel, int level, String str) {
542:                if (j3dClassLevel >= level) {
543:                    System.err.print(str);
544:                    return true;
545:                }
546:                return false;
547:            }
548:
549:            static boolean doDebug(int j3dClassLevel, int level) {
550:                if (j3dClassLevel >= level) {
551:                    return true;
552:                }
553:                return false;
554:            }
555:
556:            static void doAssert(boolean expr, String str) {
557:                if (!expr) {
558:                    throw new AssertionFailureException("(" + str + ")"
559:                            + "is false");
560:                }
561:            }
562:
563:            static void pkgInfo(ClassLoader classLoader, String pkgName,
564:                    String className) {
565:
566:                try {
567:                    classLoader.loadClass(pkgName + "." + className);
568:
569:                    Package p = Package.getPackage(pkgName);
570:                    if (p == null) {
571:                        System.err.println("WARNING: Package.getPackage("
572:                                + pkgName + ") is null");
573:                    } else {
574:                        if (devPhase && debug) {
575:                            System.err.println(p);
576:                            System.err.println("Specification Title = "
577:                                    + p.getSpecificationTitle());
578:                            System.err.println("Specification Vendor = "
579:                                    + p.getSpecificationVendor());
580:                            System.err.println("Specification Version = "
581:                                    + p.getSpecificationVersion());
582:                            System.err.println("Implementation Vendor = "
583:                                    + p.getImplementationVendor());
584:                            System.err.println("Implementation Version = "
585:                                    + p.getImplementationVersion());
586:                        } else if (devPhase)
587:                            System.err.println(", Java 3D "
588:                                    + p.getImplementationVersion() + ".");
589:                    }
590:                } catch (ClassNotFoundException e) {
591:                    System.err.println("Unable to load " + pkgName);
592:                }
593:
594:                // 	System.err.println();
595:            }
596:
597:            static {
598:                // initialize the debug flag
599:                debug = false;
600:            }
601:
602:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.