Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12861/src/net/sourceforge/bprocessor/gl/view
Modified Files:
AbstractView.java
Log Message:
changed so that vertical and horizontal edges are another color and transparancy is on
Index: AbstractView.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/AbstractView.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** AbstractView.java 17 Aug 2005 10:58:11 -0000 1.7
--- AbstractView.java 17 Aug 2005 17:39:19 -0000 1.8
***************
*** 56,63 ****
/** Surface color for all not selected surfaces */
! public static final double[] SURFACE_COLOR = new double[] {0.93, 0.93, 0.93, 0.7};
/** Used for selected objects */
! public static final double[] SELECTED_COLOR = new double[] {1.0, 0.4, 1.0, 0.7};
/** The view transformation matrix (it is shown transposed) see p. 187 [GL BIBLE]*/
--- 56,63 ----
/** Surface color for all not selected surfaces */
! public static final double[] SURFACE_COLOR = new double[] {0.93, 0.93, 0.93, 0.95};
/** Used for selected objects */
! public static final double[] SELECTED_COLOR = new double[] {1.0, 0.4, 1.0, 0.95};
/** The view transformation matrix (it is shown transposed) see p. 187 [GL BIBLE]*/
***************
*** 160,163 ****
--- 160,165 ----
gl.glEnable(GL.GL_DEPTH_TEST);
+ gl.glEnable(GL.GL_LINE_SMOOTH);
+ gl.glEnable(GL.GL_POINT_SMOOTH);
gl.glEnable(GL.GL_BLEND);
***************
*** 259,280 ****
gl.glInitNames();
if (mode[0] != GL.GL_SELECT) {
- Iterator it = surfaces.iterator();
- gl.glColor4dv(SURFACE_COLOR);
- while (it.hasNext()) {
- Surface s = (Surface)it.next();
- if (!s.equals(selectedSurface)) {
- drawSurface(s);
- }
- }
-
- it = edges.iterator();
- gl.glColor3dv(STD_LINE_COLOR);
- while (it.hasNext()) {
- Edge e = (Edge)it.next();
- if (!e.equals(selectedEdge)) {
- drawEdge(e);
- }
- }
-
// draw activeEdge different if it is parallel with axis
if (activeEdge != null) {
--- 261,264 ----
***************
*** 353,356 ****
--- 337,358 ----
drawSurface(selectedSurface);
}
+
+ Iterator it = surfaces.iterator();
+ gl.glColor4dv(SURFACE_COLOR);
+ while (it.hasNext()) {
+ Surface s = (Surface)it.next();
+ if (!s.equals(selectedSurface)) {
+ drawSurface(s);
+ }
+ }
+
+ it = edges.iterator();
+ gl.glColor3dv(STD_LINE_COLOR);
+ while (it.hasNext()) {
+ Edge e = (Edge)it.next();
+ if (!e.equals(selectedEdge)) {
+ drawEdge(e);
+ }
+ }
} else {
if (selectMode == SURFACES) {
|