[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.156, 1.157
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2006-10-05 13:50:36
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10028/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: experimenting with a new color for constructors to make them stand out more. Constructor color can now be changed in the "GL colors" menu, to make it easier to experiment for yourselfs Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.156 retrieving revision 1.157 diff -C2 -d -r1.156 -r1.157 *** View.java 2 Oct 2006 06:10:21 -0000 1.156 --- View.java 5 Oct 2006 13:50:28 -0000 1.157 *************** *** 87,92 **** /** SUPPORT flag */ public static final int SUPPORT = 4; ! ! /** IGNORE */ public static final boolean IGNORE = true; --- 87,91 ---- /** SUPPORT flag */ public static final int SUPPORT = 4; ! /** IGNORE */ public static final boolean IGNORE = true; *************** *** 138,147 **** /** Used for vertices on edges */ ! public static final float[] EDGE_ON_COLOR = new float[] {0.2f, 0.3f, 0.6f}; ! ! /** Used for constructor objects */ ! public static final float [] CONSTRUCTOR_COLOR = new float[] {0.8f, 0.7f, 0.6f, 0.50f}; /** Front color for surfaces */ --- 137,145 ---- /** Used for vertices on edges */ ! public static final float[] EDGE_ON_COLOR = new float[] {0.2f, 0.3f, 0.6f}; /** Used for constructor objects */ ! public static final float [] CONSTRUCTOR_COLOR = new float[] {0.11f, 0.72f, 0.67f, 0.0f}; ! //new float[] {0.8f, 0.7f, 0.6f, 0.50f}; /** Front color for surfaces */ *************** *** 915,919 **** { ! gl.glColor3fv(CONSTRUCTOR_COLOR); Iterator it = tempVertices.iterator(); while (it.hasNext()) { --- 913,917 ---- { ! gl.glColor3fv(constructorColor); Iterator it = tempVertices.iterator(); while (it.hasNext()) { *************** *** 1237,1246 **** if (constructor instanceof Point) { if (colorize) { ! gl.glColor3fv(CONSTRUCTOR_COLOR); } drawConstructorPoint(((Point)constructor).getOrigin(), dist); } else if (constructor instanceof Line) { if (colorize) { ! gl.glColor3fv(CONSTRUCTOR_COLOR); } Line l = (Line)constructor; --- 1235,1244 ---- if (constructor instanceof Point) { if (colorize) { ! gl.glColor3fv(constructorColor); } drawConstructorPoint(((Point)constructor).getOrigin(), dist); } else if (constructor instanceof Line) { if (colorize) { ! gl.glColor3fv(constructorColor); } Line l = (Line)constructor; *************** *** 1301,1305 **** if (cs.onlyPlane()) { if (colorize) { ! gl.glColor3fv(CONSTRUCTOR_COLOR); } if (cs.isEditable()) { --- 1299,1303 ---- if (cs.onlyPlane()) { if (colorize) { ! gl.glColor3fv(constructorColor); } if (cs.isEditable()) { |