[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.196, 1.197
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2007-03-21 11:52:07
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27547/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: got rid of iterator Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.196 retrieving revision 1.197 diff -C2 -d -r1.196 -r1.197 *** View.java 21 Mar 2007 11:43:57 -0000 1.196 --- View.java 21 Mar 2007 11:51:58 -0000 1.197 *************** *** 643,659 **** //draw the clipping planes ! Iterator clipit = Project.getInstance().getCurrentCamera().getClipplanes().iterator(); ! while (clipit.hasNext()) { ! ClippingPlane cp = (ClippingPlane)clipit.next(); Collection selection = Selection.primary(); ! if (cp == target) { ! drawObject(cp); } else { ! if (selection.contains(cp)) { gl.glColor3fv(SELECTED_COLOR, 0); } else { gl.glColor3fv(CLIP_PLANE_COLOR, 0); } ! drawClipplane(cp); } } --- 643,660 ---- //draw the clipping planes ! Collection<ClippingPlane> clips ! = Project.getInstance().getCurrentCamera().getClipplanes(); ! ! for (ClippingPlane current : clips) { Collection selection = Selection.primary(); ! if (current == target) { ! drawObject(current); } else { ! if (selection.contains(current)) { gl.glColor3fv(SELECTED_COLOR, 0); } else { gl.glColor3fv(CLIP_PLANE_COLOR, 0); } ! drawClipplane(current); } } |