[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.110, 1.111
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-07-18 11:19:03
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14228/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Move origin of constructors Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.110 retrieving revision 1.111 diff -C2 -d -r1.110 -r1.111 *** View.java 17 Jul 2006 14:47:01 -0000 1.110 --- View.java 18 Jul 2006 11:18:58 -0000 1.111 *************** *** 127,135 **** private static final int SURFACES = 1; ! /** Select for for selecting vertices */ private static final int VERTICES = 2; ! /** Select for for selecting clipplanes */ private static final int CLIPPLANES = 3; /** Select mode for selecting ALL **/ --- 127,138 ---- private static final int SURFACES = 1; ! /** Select mode for selecting vertices */ private static final int VERTICES = 2; ! /** Select mode for selecting clipplanes */ private static final int CLIPPLANES = 3; + + /** Select mode for selecting constructors */ + private static final int CONSTRUCTORS = 4; /** Select mode for selecting ALL **/ *************** *** 1560,1565 **** } } - - Iterator tempSurfaceIt = tempSurfaces.iterator(); while (tempSurfaceIt.hasNext()) { --- 1563,1566 ---- *************** *** 1588,1591 **** --- 1589,1603 ---- } } + if (selectMode == CONSTRUCTORS || selectMode == ALL) { + { + Iterator iter = space.getConstructors().iterator(); + while (iter.hasNext()) { + Constructor current = (Constructor) iter.next(); + pushName(gl, current.getOrigin()); + drawVertexHit(current.getOrigin()); + popName(gl); + } + } + } } *************** *** 1653,1657 **** --- 1665,1671 ---- private void drawConstructor(Edge e) { gl.glEnable(GL.GL_LINE_STIPPLE); + gl.glLineWidth(0.5f); drawEdge(e); + gl.glLineWidth(1.0f); gl.glDisable(GL.GL_LINE_STIPPLE); } |