6 private static final HashMap nodeTypes;
7 private static final HashMap fwTypes;
9 public int X3D_Component_Networking = 1;
10 public int X3D_Component_Shape = 2;
11 public int X3D_Component_Geometry2D = 3;
12 public int X3D_Component_Sound = 4;
13 public int X3D_Component_EnvironmentalEffects = 5;
14 public int X3D_Component_Navigation = 6;
15 public int X3D_Component_EventUtilities = 7;
16 public int X3D_Component_Geometry3D = 8;
17 public int X3D_Component_Rendering = 9;
18 public int X3D_Component_Interpolation = 10;
19 public int X3D_Component_Nurbs = 11;
20 public int X3D_Component_PointingDevice = 12;
21 public int X3D_Component_Lighting = 13;
22 public int X3D_Component_Text = 14;
23 public int X3D_Component_Geospatial = 15;
24 public int X3D_Component_Grouping = 16;
25 public int X3D_Component_HAnim = 17;
26 public int X3D_Component_Texturing = 18;
27 public int X3D_Component_EnvironmentalSensor = 19;
28 public int X3D_Component_Scripting = 20;
29 public int X3D_Component_Time = 21;
33 nodeTypes =
new HashMap();
34 nodeTypes.put(
new Integer(X3DBoundedObject),
"X3DBoundedObject");
35 nodeTypes.put(
new Integer(X3DBounded2DObject),
"X3DBounded2DObject");
36 nodeTypes.put(
new Integer(X3DURLObject),
"X3DURLObject");
37 nodeTypes.put(
new Integer(X3DAppearanceNode),
"X3DAppearnaceNode");
38 nodeTypes.put(
new Integer(X3DAppearanceChildNode),
"X3DAppearanceChildNode");
39 nodeTypes.put(
new Integer(X3DMaterialNode),
"X3DMaterialNode");
40 nodeTypes.put(
new Integer(X3DTextureNode),
"X3DTextureNode");
41 nodeTypes.put(
new Integer(X3DTexture2DNode),
"X3DTexture2DNode");
42 nodeTypes.put(
new Integer(X3DTexture3DNode),
"X3DTexture3DNode");
43 nodeTypes.put(
new Integer(X3DTextureTransformNode),
"X3DTextureTransformNode");
44 nodeTypes.put(
new Integer(X3DTextureTransform2DNode),
"X3DTextureTransform2DNode");
45 nodeTypes.put(
new Integer(X3DGeometryNode),
"X3DGeometryNode");
46 nodeTypes.put(
new Integer(X3DTextNode),
"X3DTextNode");
47 nodeTypes.put(
new Integer(X3DParametricGeometryNode),
"X3DParametricGeometryNode");
48 nodeTypes.put(
new Integer(X3DGeometricPropertyNode),
"X3DGeometricPropertyNode");
49 nodeTypes.put(
new Integer(X3DColorNode),
"X3DColorNode");
50 nodeTypes.put(
new Integer(X3DCoordinateNode),
"X3DCoordinateNode");
51 nodeTypes.put(
new Integer(X3DNormalNode),
"X3DNormalNode");
52 nodeTypes.put(
new Integer(X3DTextureCoordinateNode),
"X3DTextureCoordinateNode");
53 nodeTypes.put(
new Integer(X3DFontStyleNode),
"X3DFontStyleNode");
54 nodeTypes.put(
new Integer(X3DProtoInstance),
"X3DProtoInstance");
55 nodeTypes.put(
new Integer(X3DChildNode),
"X3DChildNode");
56 nodeTypes.put(
new Integer(X3DBindableNode),
"X3DBindanbleNode");
57 nodeTypes.put(
new Integer(X3DBackgroundNode),
"X3DBackgroundNode");
58 nodeTypes.put(
new Integer(X3DGroupingNode),
"X3DGroupingNode");
59 nodeTypes.put(
new Integer(X3DShapeNode),
"X3DShapeNode");
60 nodeTypes.put(
new Integer(X3DInterpolatorNode),
"X3DInterpolatorNode");
61 nodeTypes.put(
new Integer(X3DLightNode),
"X3DLightNode");
62 nodeTypes.put(
new Integer(X3DScriptNode),
"X3DScriptNode");
63 nodeTypes.put(
new Integer(X3DSensorNode),
"X3DSensorNode");
64 nodeTypes.put(
new Integer(X3DEnvironmentalSensorNode),
"X3DEnvironmentalSensorNode");
65 nodeTypes.put(
new Integer(X3DKeyDeviceSensorNode),
"X3DKeyDeviceSensorNode");
66 nodeTypes.put(
new Integer(X3DNetworkSensorNode),
"X3DNetworkSensorNode");
67 nodeTypes.put(
new Integer(X3DPointingDeviceSensorNode),
"X3DPointingDeviceSensorNode");
68 nodeTypes.put(
new Integer(X3DDragSensorNode),
"X3DDragSensorNode");
69 nodeTypes.put(
new Integer(X3DTouchSensorNode),
"X3DTouchSensorNode");
70 nodeTypes.put(
new Integer(X3DSequencerNode),
"X3DSequencerNode");
71 nodeTypes.put(
new Integer(X3DTimeDependentNode),
"X3DTimeDependentNode");
72 nodeTypes.put(
new Integer(X3DSoundSourceNode),
"X3DSoundSourceNode");
73 nodeTypes.put(
new Integer(X3DTriggerNode),
"X3DTriggerNode");
74 nodeTypes.put(
new Integer(X3DInfoNode),
"X3DInfoNode");
76 fwTypes =
new HashMap();
79 public static String getStringType(
int type) {
80 return (String) nodeTypes.get(
new Integer(type));