From 4510536bf9500afbf23df88d861d82ac9de11572 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Tue, 3 Jan 2012 23:17:08 -0800 Subject: j3dcore: add type annotations to RenderBin.rmUpdateList and.aBinUpdateList Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/RenderBin.java | 27 +++++++++++------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/classes/share/javax/media/j3d/RenderBin.java b/src/classes/share/javax/media/j3d/RenderBin.java index e29b3da..655be4b 100644 --- a/src/classes/share/javax/media/j3d/RenderBin.java +++ b/src/classes/share/javax/media/j3d/RenderBin.java @@ -64,13 +64,12 @@ ArrayList lightMessageList = new ArrayList(5); // Messges retrieved when a message is sent to RenderingEnv Structure J3dMessage[] m; - /** - * List of renderMolecules that are soleUser - * have to do a 2 pass, first update values - * then sort based on equivalent material - */ - ArrayList rmUpdateList = new ArrayList(); - ArrayList aBinUpdateList = new ArrayList(); +/** + * List of renderMolecules that are soleUser have to do a 2 pass, first update + * values then sort based on equivalent material + */ +ArrayList rmUpdateList = new ArrayList(); +ArrayList aBinUpdateList = new ArrayList(); /** * List of ShaderBin that are soleUser that @@ -409,7 +408,6 @@ ArrayList lightMessageList = new ArrayList(5); */ public void updateObject() { int i, j, k; - RenderMolecule rm; RenderAtomListInfo ra; LightBin tmp; float radius; @@ -540,7 +538,7 @@ ArrayList lightMessageList = new ArrayList(5); if ((size = aBinUpdateList.size()) > 0) { for (i = 0; i < size; i++) { - AttributeBin abin = (AttributeBin)aBinUpdateList.get(i); + AttributeBin abin = aBinUpdateList.get(i); abin.updateNodeComponent(); } } @@ -582,7 +580,7 @@ ArrayList lightMessageList = new ArrayList(5); // of new RMs is based on the updated ones if ((size = rmUpdateList.size()) > 0) { for (i = 0; i < size; i++) { - rm = (RenderMolecule)rmUpdateList.get(i); + RenderMolecule rm = rmUpdateList.get(i); boolean changeLists = rm.updateNodeComponent(); // If an existing rm went from opaque to transparent or vice-versa @@ -591,10 +589,9 @@ ArrayList lightMessageList = new ArrayList(5); rm.textureBin.changeLists(rm); } } - for (i = 0; i < size; i++) { - rm = (RenderMolecule)rmUpdateList.get(i); - rm.reEvaluateEquivalence(); - } + for (i = 0; i < size; i++) { + rmUpdateList.get(i).reEvaluateEquivalence(); + } } @@ -965,7 +962,7 @@ ArrayList lightMessageList = new ArrayList(5); // and just toggle? size = dirtyRenderMoleculeList.size(); for (i = 0; i < size; i++) { - rm = (RenderMolecule)dirtyRenderMoleculeList.get(i); + RenderMolecule rm = (RenderMolecule)dirtyRenderMoleculeList.get(i); rm.onUpdateList = 0; ra = rm.primaryRenderAtomList; while (ra != null) { -- cgit v1.2.3