001: /*
002: * $RCSfile: CapabilityBits.java,v $
003: *
004: * Copyright 1998-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.6 $
028: * $Date: 2008/02/28 20:17:20 $
029: * $State: Exp $
030: */
031:
032: package javax.media.j3d;
033:
034: /**
035: * This CapabilityBits class provides a global namespace for all
036: * capability bits
037: */
038: class CapabilityBits extends Object {
039:
040: // SceneGraphObject
041:
042: // Node extends SceneGraphObject
043: static final int NODE_ENABLE_COLLISION_REPORTING = 0;
044: static final int NODE_ENABLE_PICK_REPORTING = 1;
045: private static final int NODE_UNUSED_BIT = 2;
046: static final int NODE_ALLOW_BOUNDS_READ = 3;
047: static final int NODE_ALLOW_BOUNDS_WRITE = 4;
048: static final int NODE_ALLOW_PICKABLE_READ = 5;
049: static final int NODE_ALLOW_PICKABLE_WRITE = 6;
050: static final int NODE_ALLOW_COLLIDABLE_READ = 7;
051: static final int NODE_ALLOW_COLLIDABLE_WRITE = 8;
052: static final int NODE_ALLOW_AUTO_COMPUTE_BOUNDS_READ = 9;
053: static final int NODE_ALLOW_AUTO_COMPUTE_BOUNDS_WRITE = 10;
054: static final int NODE_ALLOW_LOCAL_TO_VWORLD_READ = 11;
055:
056: // Group extends Node
057: static final int GROUP_ALLOW_CHILDREN_READ = 12;
058: static final int GROUP_ALLOW_CHILDREN_WRITE = 13;
059: static final int GROUP_ALLOW_CHILDREN_EXTEND = 14;
060: static final int GROUP_ALLOW_COLLISION_BOUNDS_READ = 15;
061: static final int GROUP_ALLOW_COLLISION_BOUNDS_WRITE = 16;
062:
063: // BranchGroup extends Group
064: static final int BRANCH_GROUP_ALLOW_DETACH = 17;
065:
066: // SharedGroup extends Group
067: static final int SHARED_GROUP_ALLOW_LINK_READ = 17;
068:
069: // TransformGroup extends Group
070: static final int TRANSFORM_GROUP_ALLOW_TRANSFORM_READ = 17;
071: static final int TRANSFORM_GROUP_ALLOW_TRANSFORM_WRITE = 18;
072:
073: // Switch extends Group
074: static final int SWITCH_ALLOW_SWITCH_READ = 17;
075: static final int SWITCH_ALLOW_SWITCH_WRITE = 18;
076:
077: // ViewSpecificGroup extends Group
078: static final int VIEW_SPECIFIC_GROUP_ALLOW_VIEW_READ = 17;
079: static final int VIEW_SPECIFIC_GROUP_ALLOW_VIEW_WRITE = 18;
080:
081: // OrderedGroup extends Group
082: static final int ORDERED_GROUP_ALLOW_CHILD_INDEX_ORDER_READ = 17;
083: static final int ORDERED_GROUP_ALLOW_CHILD_INDEX_ORDER_WRITE = 18;
084:
085: // Leaf extends Node
086:
087: // Background extends Leaf
088: static final int BACKGROUND_ALLOW_APPLICATION_BOUNDS_READ = 12;
089: static final int BACKGROUND_ALLOW_APPLICATION_BOUNDS_WRITE = 13;
090: static final int BACKGROUND_ALLOW_IMAGE_READ = 14;
091: static final int BACKGROUND_ALLOW_IMAGE_WRITE = 15;
092: static final int BACKGROUND_ALLOW_COLOR_READ = 16;
093: static final int BACKGROUND_ALLOW_COLOR_WRITE = 17;
094: static final int BACKGROUND_ALLOW_GEOMETRY_READ = 18;
095: static final int BACKGROUND_ALLOW_GEOMETRY_WRITE = 19;
096: static final int BACKGROUND_ALLOW_IMAGE_SCALE_MODE_READ = 20;
097: static final int BACKGROUND_ALLOW_IMAGE_SCALE_MODE_WRITE = 21;
098:
099: // BoundingLeaf extends Leaf
100: static final int BOUNDING_LEAF_ALLOW_REGION_READ = 12;
101: static final int BOUNDING_LEAF_ALLOW_REGION_WRITE = 13;
102:
103: // Clip extends Leaf
104: static final int CLIP_ALLOW_APPLICATION_BOUNDS_READ = 12;
105: static final int CLIP_ALLOW_APPLICATION_BOUNDS_WRITE = 13;
106: static final int CLIP_ALLOW_BACK_DISTANCE_READ = 14;
107: static final int CLIP_ALLOW_BACK_DISTANCE_WRITE = 15;
108:
109: // Morph extends Leaf
110: static final int MORPH_ALLOW_GEOMETRY_ARRAY_READ = 12;
111: static final int MORPH_ALLOW_GEOMETRY_ARRAY_WRITE = 13;
112: static final int MORPH_ALLOW_APPEARANCE_READ = 14;
113: static final int MORPH_ALLOW_APPEARANCE_WRITE = 15;
114: static final int MORPH_ALLOW_WEIGHTS_READ = 16;
115: static final int MORPH_ALLOW_WEIGHTS_WRITE = 17;
116: static final int MORPH_ALLOW_COLLISION_BOUNDS_READ = 18;
117: static final int MORPH_ALLOW_COLLISION_BOUNDS_WRITE = 19;
118: static final int MORPH_ALLOW_APPEARANCE_OVERRIDE_READ = 20;
119: static final int MORPH_ALLOW_APPEARANCE_OVERRIDE_WRITE = 21;
120:
121: // Link extends Leaf
122: static final int LINK_ALLOW_SHARED_GROUP_READ = 12;
123: static final int LINK_ALLOW_SHARED_GROUP_WRITE = 13;
124:
125: // Shape3D extends Leaf
126: static final int SHAPE3D_ALLOW_GEOMETRY_READ = 12;
127: static final int SHAPE3D_ALLOW_GEOMETRY_WRITE = 13;
128: static final int SHAPE3D_ALLOW_APPEARANCE_READ = 14;
129: static final int SHAPE3D_ALLOW_APPEARANCE_WRITE = 15;
130: static final int SHAPE3D_ALLOW_COLLISION_BOUNDS_READ = 16;
131: static final int SHAPE3D_ALLOW_COLLISION_BOUNDS_WRITE = 17;
132: static final int SHAPE3D_ALLOW_APPEARANCE_OVERRIDE_READ = 18;
133: static final int SHAPE3D_ALLOW_APPEARANCE_OVERRIDE_WRITE = 19;
134:
135: // OrientedShape3D extends Shape3D
136: static final int ORIENTED_SHAPE3D_ALLOW_MODE_READ = 20;
137: static final int ORIENTED_SHAPE3D_ALLOW_MODE_WRITE = 21;
138: static final int ORIENTED_SHAPE3D_ALLOW_AXIS_READ = 22;
139: static final int ORIENTED_SHAPE3D_ALLOW_AXIS_WRITE = 23;
140: static final int ORIENTED_SHAPE3D_ALLOW_POINT_READ = 24;
141: static final int ORIENTED_SHAPE3D_ALLOW_POINT_WRITE = 25;
142: static final int ORIENTED_SHAPE3D_ALLOW_SCALE_READ = 26;
143: static final int ORIENTED_SHAPE3D_ALLOW_SCALE_WRITE = 27;
144:
145: // Soundscape extends Leaf
146: static final int SOUNDSCAPE_ALLOW_APPLICATION_BOUNDS_READ = 12;
147: static final int SOUNDSCAPE_ALLOW_APPLICATION_BOUNDS_WRITE = 13;
148: static final int SOUNDSCAPE_ALLOW_ATTRIBUTES_READ = 14;
149: static final int SOUNDSCAPE_ALLOW_ATTRIBUTES_WRITE = 15;
150:
151: // ViewPlatform extends Leaf
152: static final int VIEW_PLATFORM_ALLOW_POLICY_READ = 12;
153: static final int VIEW_PLATFORM_ALLOW_POLICY_WRITE = 13;
154:
155: // Fog extends Leaf
156: static final int FOG_ALLOW_INFLUENCING_BOUNDS_READ = 12;
157: static final int FOG_ALLOW_INFLUENCING_BOUNDS_WRITE = 13;
158: static final int FOG_ALLOW_COLOR_READ = 14;
159: static final int FOG_ALLOW_COLOR_WRITE = 15;
160:
161: // ExponentialFog extends Fog
162: static final int EXPONENTIAL_FOG_ALLOW_DENSITY_READ = 16;
163: static final int EXPONENTIAL_FOG_ALLOW_DENSITY_WRITE = 17;
164:
165: // LinearFog extends Fog
166: static final int LINEAR_FOG_ALLOW_DISTANCE_READ = 16;
167: static final int LINEAR_FOG_ALLOW_DISTANCE_WRITE = 17;
168:
169: // Additional Fog bits (must go after LinearFog bits)
170: static final int FOG_ALLOW_SCOPE_READ = 18;
171: static final int FOG_ALLOW_SCOPE_WRITE = 19;
172:
173: // Light extends Leaf
174: static final int LIGHT_ALLOW_STATE_READ = 12;
175: static final int LIGHT_ALLOW_STATE_WRITE = 13;
176: static final int LIGHT_ALLOW_COLOR_READ = 14;
177: static final int LIGHT_ALLOW_COLOR_WRITE = 15;
178: static final int LIGHT_ALLOW_INFLUENCING_BOUNDS_READ = 16;
179: static final int LIGHT_ALLOW_INFLUENCING_BOUNDS_WRITE = 17;
180:
181: // DirectionalLight extends Light
182: static final int DIRECTIONAL_LIGHT_ALLOW_DIRECTION_READ = 18;
183: static final int DIRECTIONAL_LIGHT_ALLOW_DIRECTION_WRITE = 19;
184:
185: // PointLight extends Light
186: static final int POINT_LIGHT_ALLOW_POSITION_READ = 18;
187: static final int POINT_LIGHT_ALLOW_POSITION_WRITE = 19;
188: static final int POINT_LIGHT_ALLOW_ATTENUATION_READ = 20;
189: static final int POINT_LIGHT_ALLOW_ATTENUATION_WRITE = 21;
190:
191: // SpotLight extends PointLight
192: static final int SPOT_LIGHT_ALLOW_SPREAD_ANGLE_WRITE = 22;
193: static final int SPOT_LIGHT_ALLOW_SPREAD_ANGLE_READ = 23;
194: static final int SPOT_LIGHT_ALLOW_CONCENTRATION_WRITE = 24;
195: static final int SPOT_LIGHT_ALLOW_CONCENTRATION_READ = 25;
196: static final int SPOT_LIGHT_ALLOW_DIRECTION_WRITE = 26;
197: static final int SPOT_LIGHT_ALLOW_DIRECTION_READ = 27;
198:
199: // Additional Light bits (must go after SpotLight bits)
200: static final int LIGHT_ALLOW_SCOPE_READ = 28;
201: static final int LIGHT_ALLOW_SCOPE_WRITE = 29;
202:
203: // Sound extends Leaf
204: static final int SOUND_ALLOW_SOUND_DATA_READ = 12;
205: static final int SOUND_ALLOW_SOUND_DATA_WRITE = 13;
206: static final int SOUND_ALLOW_INITIAL_GAIN_READ = 14;
207: static final int SOUND_ALLOW_INITIAL_GAIN_WRITE = 15;
208: static final int SOUND_ALLOW_LOOP_READ = 16;
209: static final int SOUND_ALLOW_LOOP_WRITE = 17;
210: static final int SOUND_ALLOW_RELEASE_READ = 18;
211: static final int SOUND_ALLOW_RELEASE_WRITE = 19;
212: static final int SOUND_ALLOW_CONT_PLAY_READ = 20;
213: static final int SOUND_ALLOW_CONT_PLAY_WRITE = 21;
214: static final int SOUND_ALLOW_ENABLE_READ = 22;
215: static final int SOUND_ALLOW_ENABLE_WRITE = 23;
216: static final int SOUND_ALLOW_SCHEDULING_BOUNDS_READ = 24;
217: static final int SOUND_ALLOW_SCHEDULING_BOUNDS_WRITE = 25;
218: static final int SOUND_ALLOW_PRIORITY_READ = 26;
219: static final int SOUND_ALLOW_PRIORITY_WRITE = 27;
220: static final int SOUND_ALLOW_DURATION_READ = 28;
221: static final int SOUND_ALLOW_IS_READY_READ = 29;
222: static final int SOUND_ALLOW_IS_PLAYING_READ = 30;
223: static final int SOUND_ALLOW_CHANNELS_USED_READ = 31;
224: static final int SOUND_ALLOW_MUTE_READ = 40;
225: static final int SOUND_ALLOW_MUTE_WRITE = 41;
226: static final int SOUND_ALLOW_PAUSE_READ = 42;
227: static final int SOUND_ALLOW_PAUSE_WRITE = 43;
228: static final int SOUND_ALLOW_RATE_SCALE_FACTOR_READ = 44;
229: static final int SOUND_ALLOW_RATE_SCALE_FACTOR_WRITE = 45;
230:
231: // PointSound extends Sound
232: static final int POINT_SOUND_ALLOW_POSITION_READ = 32;
233: static final int POINT_SOUND_ALLOW_POSITION_WRITE = 33;
234: static final int POINT_SOUND_ALLOW_DISTANCE_GAIN_READ = 34;
235: static final int POINT_SOUND_ALLOW_DISTANCE_GAIN_WRITE = 35;
236:
237: // ConeSound extends PointSound
238: static final int CONE_SOUND_ALLOW_DIRECTION_READ = 36;
239: static final int CONE_SOUND_ALLOW_DIRECTION_WRITE = 37;
240: static final int CONE_SOUND_ALLOW_ANGULAR_ATTENUATION_READ = 38;
241: static final int CONE_SOUND_ALLOW_ANGULAR_ATTENUATION_WRITE = 39;
242:
243: // ModelClip extends Leaf
244: static final int MODEL_CLIP_ALLOW_INFLUENCING_BOUNDS_READ = 12;
245: static final int MODEL_CLIP_ALLOW_INFLUENCING_BOUNDS_WRITE = 13;
246: static final int MODEL_CLIP_ALLOW_PLANE_READ = 14;
247: static final int MODEL_CLIP_ALLOW_PLANE_WRITE = 15;
248: static final int MODEL_CLIP_ALLOW_ENABLE_READ = 16;
249: static final int MODEL_CLIP_ALLOW_ENABLE_WRITE = 17;
250: static final int MODEL_CLIP_ALLOW_SCOPE_READ = 18;
251: static final int MODEL_CLIP_ALLOW_SCOPE_WRITE = 19;
252:
253: // AlternateAppearance extends Leaf
254: static final int ALTERNATE_APPEARANCE_ALLOW_INFLUENCING_BOUNDS_READ = 12;
255: static final int ALTERNATE_APPEARANCE_ALLOW_INFLUENCING_BOUNDS_WRITE = 13;
256: static final int ALTERNATE_APPEARANCE_ALLOW_APPEARANCE_READ = 14;
257: static final int ALTERNATE_APPEARANCE_ALLOW_APPEARANCE_WRITE = 15;
258: static final int ALTERNATE_APPEARANCE_ALLOW_SCOPE_READ = 16;
259: static final int ALTERNATE_APPEARANCE_ALLOW_SCOPE_WRITE = 17;
260:
261: // Additional Node bits (must go after all existing Node subclass bits)
262: static final int NODE_ALLOW_PARENT_READ = 46;
263: static final int NODE_ALLOW_LOCALE_READ = 47;
264:
265: // NodeComponent extends SceneGraphObject
266:
267: // Appearance extends NodeComponent
268: static final int APPEARANCE_ALLOW_MATERIAL_READ = 0;
269: static final int APPEARANCE_ALLOW_MATERIAL_WRITE = 1;
270: static final int APPEARANCE_ALLOW_TEXTURE_READ = 2;
271: static final int APPEARANCE_ALLOW_TEXTURE_WRITE = 3;
272: static final int APPEARANCE_ALLOW_TEXGEN_READ = 4;
273: static final int APPEARANCE_ALLOW_TEXGEN_WRITE = 5;
274: static final int APPEARANCE_ALLOW_TEXTURE_ATTRIBUTES_READ = 6;
275: static final int APPEARANCE_ALLOW_TEXTURE_ATTRIBUTES_WRITE = 7;
276: static final int APPEARANCE_ALLOW_COLORING_ATTRIBUTES_READ = 8;
277: static final int APPEARANCE_ALLOW_COLORING_ATTRIBUTES_WRITE = 9;
278: static final int APPEARANCE_ALLOW_TRANSPARENCY_ATTRIBUTES_READ = 10;
279: static final int APPEARANCE_ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE = 11;
280: static final int APPEARANCE_ALLOW_RENDERING_ATTRIBUTES_READ = 12;
281: static final int APPEARANCE_ALLOW_RENDERING_ATTRIBUTES_WRITE = 13;
282: static final int APPEARANCE_ALLOW_POLYGON_ATTRIBUTES_READ = 14;
283: static final int APPEARANCE_ALLOW_POLYGON_ATTRIBUTES_WRITE = 15;
284: static final int APPEARANCE_ALLOW_LINE_ATTRIBUTES_READ = 16;
285: static final int APPEARANCE_ALLOW_LINE_ATTRIBUTES_WRITE = 17;
286: static final int APPEARANCE_ALLOW_POINT_ATTRIBUTES_READ = 18;
287: static final int APPEARANCE_ALLOW_POINT_ATTRIBUTES_WRITE = 19;
288: static final int APPEARANCE_ALLOW_TEXTURE_UNIT_STATE_READ = 20;
289: static final int APPEARANCE_ALLOW_TEXTURE_UNIT_STATE_WRITE = 21;
290:
291: // ShaderAppearance extends Appearance
292: static final int SHADER_APPEARANCE_ALLOW_SHADER_PROGRAM_READ = 22;
293: static final int SHADER_APPEARANCE_ALLOW_SHADER_PROGRAM_WRITE = 23;
294: static final int SHADER_APPEARANCE_ALLOW_SHADER_ATTRIBUTE_SET_READ = 24;
295: static final int SHADER_APPEARANCE_ALLOW_SHADER_ATTRIBUTE_SET_WRITE = 25;
296:
297: // AuralAttributes extends NodeComponent
298: static final int AURAL_ATTRIBUTES_ALLOW_ATTRIBUTE_GAIN_READ = 0;
299: static final int AURAL_ATTRIBUTES_ALLOW_ATTRIBUTE_GAIN_WRITE = 1;
300: static final int AURAL_ATTRIBUTES_ALLOW_ROLLOFF_READ = 2;
301: static final int AURAL_ATTRIBUTES_ALLOW_ROLLOFF_WRITE = 3;
302: static final int AURAL_ATTRIBUTES_ALLOW_REFLECTION_COEFFICIENT_READ = 4;
303: static final int AURAL_ATTRIBUTES_ALLOW_REFLECTION_COEFFICIENT_WRITE = 5;
304: static final int AURAL_ATTRIBUTES_ALLOW_REVERB_DELAY_READ = 6;
305: static final int AURAL_ATTRIBUTES_ALLOW_REVERB_DELAY_WRITE = 7;
306: static final int AURAL_ATTRIBUTES_ALLOW_REVERB_ORDER_READ = 8;
307: static final int AURAL_ATTRIBUTES_ALLOW_REVERB_ORDER_WRITE = 9;
308: static final int AURAL_ATTRIBUTES_ALLOW_DISTANCE_FILTER_READ = 10;
309: static final int AURAL_ATTRIBUTES_ALLOW_DISTANCE_FILTER_WRITE = 11;
310: static final int AURAL_ATTRIBUTES_ALLOW_FREQUENCY_SCALE_FACTOR_READ = 12;
311: static final int AURAL_ATTRIBUTES_ALLOW_FREQUENCY_SCALE_FACTOR_WRITE = 13;
312: static final int AURAL_ATTRIBUTES_ALLOW_VELOCITY_SCALE_FACTOR_READ = 14;
313: static final int AURAL_ATTRIBUTES_ALLOW_VELOCITY_SCALE_FACTOR_WRITE = 15;
314: static final int AURAL_ATTRIBUTES_ALLOW_REFLECTION_DELAY_READ = 16;
315: static final int AURAL_ATTRIBUTES_ALLOW_REFLECTION_DELAY_WRITE = 17;
316: static final int AURAL_ATTRIBUTES_ALLOW_REVERB_COEFFICIENT_READ = 18;
317: static final int AURAL_ATTRIBUTES_ALLOW_REVERB_COEFFICIENT_WRITE = 19;
318: static final int AURAL_ATTRIBUTES_ALLOW_DECAY_TIME_READ = 20;
319: static final int AURAL_ATTRIBUTES_ALLOW_DECAY_TIME_WRITE = 21;
320: static final int AURAL_ATTRIBUTES_ALLOW_DECAY_FILTER_READ = 22;
321: static final int AURAL_ATTRIBUTES_ALLOW_DECAY_FILTER_WRITE = 23;
322: static final int AURAL_ATTRIBUTES_ALLOW_DIFFUSION_READ = 24;
323: static final int AURAL_ATTRIBUTES_ALLOW_DIFFUSION_WRITE = 25;
324: static final int AURAL_ATTRIBUTES_ALLOW_DENSITY_READ = 26;
325: static final int AURAL_ATTRIBUTES_ALLOW_DENSITY_WRITE = 27;
326:
327: // ColoringAttributes extends NodeComponent
328: static final int COLORING_ATTRIBUTES_ALLOW_COLOR_READ = 0;
329: static final int COLORING_ATTRIBUTES_ALLOW_COLOR_WRITE = 1;
330: static final int COLORING_ATTRIBUTES_ALLOW_SHADE_MODEL_READ = 2;
331: static final int COLORING_ATTRIBUTES_ALLOW_SHADE_MODEL_WRITE = 3;
332:
333: // DepthComponent extends NodeComponent
334: static final int DEPTH_COMPONENT_ALLOW_SIZE_READ = 0;
335: static final int DEPTH_COMPONENT_ALLOW_DATA_READ = 1;
336:
337: // ImageComponent extends NodeComponent
338: static final int IMAGE_COMPONENT_ALLOW_SIZE_READ = 0;
339: static final int IMAGE_COMPONENT_ALLOW_FORMAT_READ = 1;
340: static final int IMAGE_COMPONENT_ALLOW_IMAGE_READ = 2;
341: static final int IMAGE_COMPONENT_ALLOW_IMAGE_WRITE = 3;
342:
343: // LineAttributes extends NodeComponent
344: static final int LINE_ATTRIBUTES_ALLOW_WIDTH_READ = 0;
345: static final int LINE_ATTRIBUTES_ALLOW_WIDTH_WRITE = 1;
346: static final int LINE_ATTRIBUTES_ALLOW_PATTERN_READ = 2;
347: static final int LINE_ATTRIBUTES_ALLOW_PATTERN_WRITE = 3;
348: static final int LINE_ATTRIBUTES_ALLOW_ANTIALIASING_READ = 4;
349: static final int LINE_ATTRIBUTES_ALLOW_ANTIALIASING_WRITE = 5;
350:
351: // Material extends NodeComponent
352: static final int MATERIAL_ALLOW_COMPONENT_READ = 0;
353: static final int MATERIAL_ALLOW_COMPONENT_WRITE = 1;
354:
355: // MediaContainer extends NodeComponent
356: static final int MEDIA_CONTAINER_ALLOW_CACHE_READ = 0;
357: static final int MEDIA_CONTAINER_ALLOW_CACHE_WRITE = 1;
358: static final int MEDIA_CONTAINER_ALLOW_URL_READ = 2;
359: static final int MEDIA_CONTAINER_ALLOW_URL_WRITE = 3;
360:
361: // PointAttributes extends NodeComponent
362: static final int POINT_ATTRIBUTES_ALLOW_SIZE_READ = 0;
363: static final int POINT_ATTRIBUTES_ALLOW_SIZE_WRITE = 1;
364: static final int POINT_ATTRIBUTES_ALLOW_ANTIALIASING_READ = 2;
365: static final int POINT_ATTRIBUTES_ALLOW_ANTIALIASING_WRITE = 3;
366:
367: // PolygonAttributes extends NodeComponent
368: static final int POLYGON_ATTRIBUTES_ALLOW_CULL_FACE_READ = 0;
369: static final int POLYGON_ATTRIBUTES_ALLOW_CULL_FACE_WRITE = 1;
370: static final int POLYGON_ATTRIBUTES_ALLOW_MODE_READ = 2;
371: static final int POLYGON_ATTRIBUTES_ALLOW_MODE_WRITE = 3;
372: static final int POLYGON_ATTRIBUTES_ALLOW_OFFSET_READ = 4;
373: static final int POLYGON_ATTRIBUTES_ALLOW_OFFSET_WRITE = 5;
374: static final int POLYGON_ATTRIBUTES_ALLOW_NORMAL_FLIP_READ = 6;
375: static final int POLYGON_ATTRIBUTES_ALLOW_NORMAL_FLIP_WRITE = 7;
376:
377: // RenderingAttributes extends NodeComponent
378: static final int RENDERING_ATTRIBUTES_ALLOW_ALPHA_TEST_VALUE_READ = 0;
379: static final int RENDERING_ATTRIBUTES_ALLOW_ALPHA_TEST_VALUE_WRITE = 1;
380: static final int RENDERING_ATTRIBUTES_ALLOW_ALPHA_TEST_FUNCTION_READ = 2;
381: static final int RENDERING_ATTRIBUTES_ALLOW_ALPHA_TEST_FUNCTION_WRITE = 3;
382: static final int RENDERING_ATTRIBUTES_ALLOW_DEPTH_ENABLE_READ = 4;
383: static final int RENDERING_ATTRIBUTES_ALLOW_VISIBLE_READ = 5;
384: static final int RENDERING_ATTRIBUTES_ALLOW_VISIBLE_WRITE = 6;
385: static final int RENDERING_ATTRIBUTES_ALLOW_RASTER_OP_READ = 7;
386: static final int RENDERING_ATTRIBUTES_ALLOW_RASTER_OP_WRITE = 8;
387: static final int RENDERING_ATTRIBUTES_ALLOW_IGNORE_VERTEX_COLORS_READ = 9;
388: static final int RENDERING_ATTRIBUTES_ALLOW_IGNORE_VERTEX_COLORS_WRITE = 10;
389: static final int RENDERING_ATTRIBUTES_ALLOW_DEPTH_ENABLE_WRITE = 11;
390: static final int RENDERING_ATTRIBUTES_ALLOW_DEPTH_TEST_FUNCTION_READ = 12;
391: static final int RENDERING_ATTRIBUTES_ALLOW_DEPTH_TEST_FUNCTION_WRITE = 13;
392: static final int RENDERING_ATTRIBUTES_ALLOW_STENCIL_ATTRIBUTES_READ = 14;
393: static final int RENDERING_ATTRIBUTES_ALLOW_STENCIL_ATTRIBUTES_WRITE = 15;
394:
395: // TexCoordGeneration extends NodeComponent
396: static final int TEX_COORD_GENERATION_ALLOW_ENABLE_READ = 0;
397: static final int TEX_COORD_GENERATION_ALLOW_ENABLE_WRITE = 1;
398: static final int TEX_COORD_GENERATION_ALLOW_FORMAT_READ = 2;
399: static final int TEX_COORD_GENERATION_ALLOW_MODE_READ = 3;
400: static final int TEX_COORD_GENERATION_ALLOW_PLANE_READ = 4;
401: static final int TEX_COORD_GENERATION_ALLOW_PLANE_WRITE = 5;
402:
403: // Texture extends NodeComponent
404: static final int TEXTURE_ALLOW_ENABLE_READ = 0;
405: static final int TEXTURE_ALLOW_ENABLE_WRITE = 1;
406: static final int TEXTURE_ALLOW_BOUNDARY_MODE_READ = 2;
407: static final int TEXTURE_ALLOW_FILTER_READ = 3;
408: static final int TEXTURE_ALLOW_IMAGE_READ = 4;
409: static final int TEXTURE_ALLOW_MIPMAP_MODE_READ = 5;
410: static final int TEXTURE_ALLOW_BOUNDARY_COLOR_READ = 6;
411: static final int TEXTURE_ALLOW_IMAGE_WRITE = 7;
412: static final int TEXTURE_ALLOW_SIZE_READ = 8;
413: static final int TEXTURE_ALLOW_FORMAT_READ = 9;
414: static final int TEXTURE_ALLOW_LOD_RANGE_READ = 10;
415: static final int TEXTURE_ALLOW_LOD_RANGE_WRITE = 11;
416: static final int TEXTURE_ALLOW_ANISOTROPIC_FILTER_READ = 12;
417: static final int TEXTURE_ALLOW_SHARPEN_TEXTURE_READ = 13;
418: static final int TEXTURE_ALLOW_FILTER4_READ = 14;
419:
420: // Texture2D extends Texture
421: static final int TEXTURE2D_ALLOW_DETAIL_TEXTURE_READ = 15;
422:
423: // TextureAttributes extends NodeComponent
424: static final int TEXTURE_ATTRIBUTES_ALLOW_MODE_READ = 0;
425: static final int TEXTURE_ATTRIBUTES_ALLOW_MODE_WRITE = 1;
426: static final int TEXTURE_ATTRIBUTES_ALLOW_BLEND_COLOR_READ = 2;
427: static final int TEXTURE_ATTRIBUTES_ALLOW_BLEND_COLOR_WRITE = 3;
428: static final int TEXTURE_ATTRIBUTES_ALLOW_TRANSFORM_READ = 4;
429: static final int TEXTURE_ATTRIBUTES_ALLOW_TRANSFORM_WRITE = 5;
430: static final int TEXTURE_ATTRIBUTES_ALLOW_COLOR_TABLE_READ = 6;
431: static final int TEXTURE_ATTRIBUTES_ALLOW_COLOR_TABLE_WRITE = 7;
432: static final int TEXTURE_ATTRIBUTES_ALLOW_COMBINE_READ = 8;
433: static final int TEXTURE_ATTRIBUTES_ALLOW_COMBINE_WRITE = 9;
434:
435: // TransparencyAttributes extends NodeComponent
436: static final int TRANSPARENCY_ATTRIBUTES_ALLOW_MODE_READ = 0;
437: static final int TRANSPARENCY_ATTRIBUTES_ALLOW_MODE_WRITE = 1;
438: static final int TRANSPARENCY_ATTRIBUTES_ALLOW_VALUE_READ = 2;
439: static final int TRANSPARENCY_ATTRIBUTES_ALLOW_VALUE_WRITE = 3;
440: static final int TRANSPARENCY_ATTRIBUTES_ALLOW_BLEND_FUNCTION_READ = 4;
441: static final int TRANSPARENCY_ATTRIBUTES_ALLOW_BLEND_FUNCTION_WRITE = 5;
442:
443: // TextureUnitState extends NodeComponent
444: static final int TEXTURE_UNIT_STATE_ALLOW_STATE_READ = 0;
445: static final int TEXTURE_UNIT_STATE_ALLOW_STATE_WRITE = 1;
446:
447: // ShaderProgram extends NodeComponent
448: static final int SHADER_PROGRAM_ALLOW_SHADERS_READ = 0;
449: static final int SHADER_PROGRAM_ALLOW_NAMES_READ = 1;
450:
451: // ShaderAttributeSet extends NodeComponent
452: static final int SHADER_ATTRIBUTE_SET_ALLOW_ATTRIBUTES_READ = 0;
453: static final int SHADER_ATTRIBUTE_SET_ALLOW_ATTRIBUTES_WRITE = 1;
454:
455: // ShaderAttribute extends NodeComponent
456:
457: // ShaderAttributeObject extends ShaderAttribute
458: static final int SHADER_ATTRIBUTE_OBJECT_ALLOW_VALUE_READ = 0;
459: static final int SHADER_ATTRIBUTE_OBJECT_ALLOW_VALUE_WRITE = 1;
460:
461: // Geometry extends NodeComponent
462: // NOTE: additional bits are below the subclasses
463:
464: // GeometryArray extends Geometry
465: static final int GEOMETRY_ARRAY_ALLOW_COORDINATE_READ = 0;
466: static final int GEOMETRY_ARRAY_ALLOW_COORDINATE_WRITE = 1;
467: static final int GEOMETRY_ARRAY_ALLOW_COLOR_READ = 2;
468: static final int GEOMETRY_ARRAY_ALLOW_COLOR_WRITE = 3;
469: static final int GEOMETRY_ARRAY_ALLOW_NORMAL_READ = 4;
470: static final int GEOMETRY_ARRAY_ALLOW_NORMAL_WRITE = 5;
471: static final int GEOMETRY_ARRAY_ALLOW_TEXCOORD_READ = 6;
472: static final int GEOMETRY_ARRAY_ALLOW_TEXCOORD_WRITE = 7;
473: static final int GEOMETRY_ARRAY_ALLOW_COUNT_READ = 8;
474:
475: // IndexedGeometryArray extends GeometryArray
476: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_COORDINATE_INDEX_READ = 9;
477: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_COORDINATE_INDEX_WRITE = 10;
478: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_COLOR_INDEX_READ = 11;
479: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_COLOR_INDEX_WRITE = 12;
480: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_NORMAL_INDEX_READ = 13;
481: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_NORMAL_INDEX_WRITE = 14;
482: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_TEXCOORD_INDEX_READ = 15;
483: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_TEXCOORD_INDEX_WRITE = 16;
484:
485: // Additional GeometryArray bits (must go after IndexedGeometryArray bits)
486: static final int GEOMETRY_ARRAY_ALLOW_FORMAT_READ = 17;
487: static final int J3D_1_2_GEOMETRY_ARRAY_ALLOW_REF_DATA_READ = 18;
488: static final int GEOMETRY_ARRAY_ALLOW_REF_DATA_WRITE = 19;
489: static final int GEOMETRY_ARRAY_ALLOW_COUNT_WRITE = 20;
490: static final int GEOMETRY_ARRAY_ALLOW_REF_DATA_READ = 21;
491: static final int GEOMETRY_ARRAY_ALLOW_VERTEX_ATTR_READ = 22;
492: static final int GEOMETRY_ARRAY_ALLOW_VERTEX_ATTR_WRITE = 23;
493:
494: // Additional GeometryArray bits (must go after IndexedGeometryArray bits)
495: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_VERTEX_ATTR_INDEX_READ = 24;
496: static final int INDEXED_GEOMETRY_ARRAY_ALLOW_VERTEX_ATTR_INDEX_WRITE = 25;
497:
498: // CompressedGeometry extends Geometry
499: static final int COMPRESSED_GEOMETRY_ALLOW_COUNT_READ = 0;
500: static final int COMPRESSED_GEOMETRY_ALLOW_HEADER_READ = 1;
501: static final int COMPRESSED_GEOMETRY_ALLOW_GEOMETRY_READ = 2;
502: static final int COMPRESSED_GEOMETRY_ALLOW_REF_DATA_READ = 3;
503:
504: // Raster extends Geometry
505: static final int RASTER_ALLOW_POSITION_READ = 0;
506: static final int RASTER_ALLOW_POSITION_WRITE = 1;
507: static final int RASTER_ALLOW_OFFSET_READ = 2;
508: static final int RASTER_ALLOW_OFFSET_WRITE = 3;
509: static final int RASTER_ALLOW_IMAGE_READ = 4;
510: static final int RASTER_ALLOW_IMAGE_WRITE = 5;
511: static final int RASTER_ALLOW_DEPTH_COMPONENT_READ = 6;
512: static final int RASTER_ALLOW_DEPTH_COMPONENT_WRITE = 7;
513: static final int RASTER_ALLOW_SIZE_READ = 8;
514: static final int RASTER_ALLOW_SIZE_WRITE = 9;
515: static final int RASTER_ALLOW_TYPE_READ = 10;
516: static final int RASTER_ALLOW_CLIP_MODE_READ = 11;
517: static final int RASTER_ALLOW_CLIP_MODE_WRITE = 12;
518:
519: // Text3D extends Geometry
520: static final int TEXT3D_ALLOW_FONT3D_READ = 0;
521: static final int TEXT3D_ALLOW_FONT3D_WRITE = 1;
522: static final int TEXT3D_ALLOW_STRING_READ = 2;
523: static final int TEXT3D_ALLOW_STRING_WRITE = 3;
524: static final int TEXT3D_ALLOW_POSITION_READ = 4;
525: static final int TEXT3D_ALLOW_POSITION_WRITE = 5;
526: static final int TEXT3D_ALLOW_ALIGNMENT_READ = 6;
527: static final int TEXT3D_ALLOW_ALIGNMENT_WRITE = 7;
528: static final int TEXT3D_ALLOW_PATH_READ = 8;
529: static final int TEXT3D_ALLOW_PATH_WRITE = 9;
530: static final int TEXT3D_ALLOW_CHARACTER_SPACING_READ = 10;
531: static final int TEXT3D_ALLOW_CHARACTER_SPACING_WRITE = 11;
532: static final int TEXT3D_ALLOW_BOUNDING_BOX_READ = 12;
533:
534: // Additional geometry bits (must go after GeometryArray bits)
535: // NOTE: ALLOW_INTERSECT was duplicated by the old value of
536: // ALLOW_REF_DATA_READ in Java 3D 1.2.
537: static final int GEOMETRY_ALLOW_INTERSECT = 18;
538:
539: // NOTE: any further additional Geometry bits must come after the
540: // last GeometryArray bit
541: }
|