gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gzz/view CoordinatePlaneMultiView.java
Date: Fri, 14 Feb 2003 07:58:38 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        03/02/14 07:58:37

Modified files:
        gzz/view       : CoordinatePlaneMultiView.java 

Log message:
        frames for transclusions

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/CoordinatePlaneMultiView.java.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: gzz/gzz/view/CoordinatePlaneMultiView.java
diff -u gzz/gzz/view/CoordinatePlaneMultiView.java:1.6 
gzz/gzz/view/CoordinatePlaneMultiView.java:1.7
--- gzz/gzz/view/CoordinatePlaneMultiView.java:1.6      Fri Feb 14 07:31:16 2003
+++ gzz/gzz/view/CoordinatePlaneMultiView.java  Fri Feb 14 07:58:37 2003
@@ -31,6 +31,7 @@
 import gzz.media.impl.*;
 
 import gzz.gfx.gl.GLVobCoorder;
+import gzz.gfx.gl.GLRen;
 
 /** A view which shows a single rank of cells, at coordinates given
  * in the structure. 
@@ -41,7 +42,7 @@
  */
 
 public class CoordinatePlaneMultiView {
-public static final String rcsid = "$Id: CoordinatePlaneMultiView.java,v 1.6 
2003/02/14 12:31:16 jvk Exp $";
+public static final String rcsid = "$Id: CoordinatePlaneMultiView.java,v 1.7 
2003/02/14 12:58:37 jvk Exp $";
     public static boolean dbg = true;
     private static void pa(String s) { 
System.out.println("CoordinatePlaneMultiView"+s); }
 
@@ -50,9 +51,25 @@
 
     private int cursorBox;
 
+    private Vob frame;
+
     public CoordinatePlaneMultiView(Dim d_rank, Dim d_coords) {
        this.d_rank = d_rank;
        this.d_coords = d_coords;
+
+       this.frame = GLRen.createCallListBoxCoorded(
+           "PushAttrib ENABLE_BIT\n" +
+           "Color 0 0 0\n" +
+           "Disable TEXTURE_2D\n" +
+           "LineWidth 1\n" +
+           "Begin LINE_LOOP\n" +
+           "Vertex 0 0\n" +
+           "Vertex 0 1\n" +
+           "Vertex 1 1\n" +
+           "Vertex 1 0\n" +
+           "End\n" +
+           "PopAttrib\n"
+        );
     }
     /** Get the box into which the cursor cell was placed.
      */
@@ -86,8 +103,7 @@
                    context.setCellView(new CellViewPlugin(orig_cv, hook));
                else
                    context.setCellView(orig_cv);
-           }
-           else {
+           } else {
                if(hook != null)
                    context.setCellView(
                        new CellViewPlugin(new PageSpanCellView(), hook));
@@ -114,7 +130,8 @@
                                    place[0]-bs[0]/2, place[1]-bs[1]/2,
                                    1, 1, bs[0], bs[1]);
 
-               //vs.map.put(, box);
+               if (drawFrame)
+                   vs.map.put(frame, box);
 
                if (vs.coords instanceof GLVobCoorder && cullCS > 0) {
                    int cull = ((GLVobCoorder)vs.coords).cull(box, cullCS);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]