diff options
author | Harvey Harrison <[email protected]> | 2012-06-26 22:22:54 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-06-26 22:22:54 -0700 |
commit | d48d2ddeaf465424b2b53c406dd3f10c746744b2 (patch) | |
tree | 97ac2d6b52900f95da63c2c736be71dbd540b812 /src/classes/share | |
parent | 9f85113f85983cd287f9d9e91b1da32addaeee5b (diff) |
j3dcore: annotate some structures in RenderingEnvironmentStructure with types
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-rw-r--r-- | src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java | 91 |
1 files changed, 44 insertions, 47 deletions
diff --git a/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java b/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java index 122c33a..7b116ce 100644 --- a/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java +++ b/src/classes/share/javax/media/j3d/RenderingEnvironmentStructure.java @@ -38,47 +38,47 @@ import javax.vecmath.Vector3d; */ class RenderingEnvironmentStructure extends J3dStructure implements ObjectUpdate { - /** - * The list of light nodes - */ - ArrayList nonViewScopedLights = new ArrayList(); - HashMap viewScopedLights = new HashMap(); - int numberOfLights = 0; +/** + * The list of light nodes + */ +ArrayList<LightRetained> nonViewScopedLights = new ArrayList<LightRetained>(); +HashMap<View, ArrayList<LightRetained>> viewScopedLights = new HashMap<View, ArrayList<LightRetained>>(); +int numberOfLights = 0; - /** - * The list of fog nodes - */ - ArrayList nonViewScopedFogs = new ArrayList(); - HashMap viewScopedFogs = new HashMap(); - int numberOfFogs = 0; +/** + * The list of fog nodes + */ +ArrayList<FogRetained> nonViewScopedFogs = new ArrayList<FogRetained>(); +HashMap<View, ArrayList<FogRetained>> viewScopedFogs = new HashMap<View, ArrayList<FogRetained>>(); +int numberOfFogs = 0; - /** - * The list of alternate app nodes - */ - ArrayList nonViewScopedAltAppearances = new ArrayList(); - HashMap viewScopedAltAppearances = new HashMap(); - int numberOfAltApps = 0; +/** + * The list of alternate app nodes + */ +ArrayList<AlternateAppearanceRetained> nonViewScopedAltAppearances = new ArrayList<AlternateAppearanceRetained>(); +HashMap<View, ArrayList<AlternateAppearanceRetained>> viewScopedAltAppearances = new HashMap<View, ArrayList<AlternateAppearanceRetained>>(); +int numberOfAltApps = 0; - /** - * The list of model clip nodes - */ - ArrayList nonViewScopedModelClips = new ArrayList(); - HashMap viewScopedModelClips = new HashMap(); - int numberOfModelClips = 0; +/** + * The list of model clip nodes + */ +ArrayList<ModelClipRetained> nonViewScopedModelClips = new ArrayList<ModelClipRetained>(); +HashMap<View, ArrayList<ModelClipRetained>> viewScopedModelClips = new HashMap<View, ArrayList<ModelClipRetained>>(); +int numberOfModelClips = 0; - /** - * The list of background nodes - */ - ArrayList nonViewScopedBackgrounds = new ArrayList(); - HashMap viewScopedBackgrounds = new HashMap(); - int numberOfBgs = 0; +/** + * The list of background nodes + */ +ArrayList<BackgroundRetained> nonViewScopedBackgrounds = new ArrayList<BackgroundRetained>(); +HashMap<View, ArrayList<BackgroundRetained>> viewScopedBackgrounds = new HashMap<View, ArrayList<BackgroundRetained>>(); +int numberOfBgs = 0; - /** - * The list of clip nodes - */ - ArrayList nonViewScopedClips = new ArrayList(); - HashMap viewScopedClips = new HashMap(); - int numberOfClips = 0; +/** + * The list of clip nodes + */ +ArrayList<ClipRetained> nonViewScopedClips = new ArrayList<ClipRetained>(); +HashMap<View, ArrayList<ClipRetained>> viewScopedClips = new HashMap<View, ArrayList<ClipRetained>>(); +int numberOfClips = 0; // For closest Background selection BackgroundRetained[] intersectedBacks = new BackgroundRetained[1]; @@ -368,15 +368,12 @@ class RenderingEnvironmentStructure extends J3dStructure implements ObjectUpdate int i; GeometryAtom ga; int num; - LightRetained lt; - FogRetained fg; - ModelClipRetained mc; ArrayList list; for (i=0; i<nodes.length; i++) { n = nodes[i]; if (n instanceof LightRetained) { - lt = (LightRetained)n; + LightRetained lt = (LightRetained)n; numberOfLights++; // If this particulat light is not scoped, added it @@ -387,7 +384,7 @@ class RenderingEnvironmentStructure extends J3dStructure implements ObjectUpdate nonViewScopedLights.add(lt); } else if (n instanceof FogRetained) { - fg = (FogRetained)n; + FogRetained fg = (FogRetained)n; numberOfFogs++; // If the fog is scoped to a view , then .. @@ -403,25 +400,25 @@ class RenderingEnvironmentStructure extends J3dStructure implements ObjectUpdate numberOfAltApps++; - nonViewScopedAltAppearances.add(n); + nonViewScopedAltAppearances.add(altApp); } else if (n instanceof BackgroundRetained) { BackgroundRetained bg = (BackgroundRetained)n; numberOfBgs++; - nonViewScopedBackgrounds.add(n); + nonViewScopedBackgrounds.add(bg); } else if (n instanceof ClipRetained) { ClipRetained cl = (ClipRetained)n; numberOfClips++; - nonViewScopedClips.add(n); + nonViewScopedClips.add(cl); } else if (n instanceof ModelClipRetained) { - mc = (ModelClipRetained)n; + ModelClipRetained mc = (ModelClipRetained)n; numberOfModelClips++; - nonViewScopedModelClips.add(n); + nonViewScopedModelClips.add(mc); } @@ -546,7 +543,7 @@ class RenderingEnvironmentStructure extends J3dStructure implements ObjectUpdate lt.geometryBackground.lights.remove(lt); } else { - nonViewScopedLights.remove(nonViewScopedLights.indexOf(n)); + nonViewScopedLights.remove(lt); } numberOfLights--; |