[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.244, 1.245 Display.java,
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-10-10 09:27:51
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10069/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Display.java Log Message: Grid on/off Index: Display.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/Display.java,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** Display.java 10 Oct 2007 08:59:02 -0000 1.23 --- Display.java 10 Oct 2007 09:27:53 -0000 1.24 *************** *** 58,61 **** --- 58,62 ---- private static Grid grid; private static boolean intersecting; + private static boolean construction; *************** *** 204,207 **** --- 205,225 ---- /** + * Returns true if construction geometry is visible + * @return true if construction geometry is visible + */ + public static boolean construction() { + return construction; + } + + /** + * Sets the construction flag specifying if construction + * is visible + * @param value new value of construction flag + */ + public static void construction(boolean value) { + construction = value; + } + + /** * Sets the objects table * @param value ArrayList *************** *** 665,669 **** } selectEdges(edges); ! selectConstructors(constructors); } else { if (active) { --- 683,689 ---- } selectEdges(edges); ! if (construction()) { ! selectConstructors(constructors); ! } } else { if (active) { *************** *** 671,678 **** } if (project.getActiveSpace() == space) { ! gl.glDepthMask(false); ! draw(grid); ! paintConstructors(constructors); ! gl.glDepthMask(true); } Collection<Edge> stippled = new LinkedList(); --- 691,700 ---- } if (project.getActiveSpace() == space) { ! if (construction()) { ! gl.glDepthMask(false); ! draw(grid); ! paintConstructors(constructors); ! gl.glDepthMask(true); ! } } Collection<Edge> stippled = new LinkedList(); Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.244 retrieving revision 1.245 diff -C2 -d -r1.244 -r1.245 *** View.java 9 Oct 2007 14:02:10 -0000 1.244 --- View.java 10 Oct 2007 09:27:53 -0000 1.245 *************** *** 696,699 **** --- 696,700 ---- if (UNIFIED_DISPLAY) { Display.selecting(hitdetection); + Display.construction(gridEnabled); initNames(gl); Display.objects(objectTable); |