gzz-commits
[Top][All Lists]
Advanced

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

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


From: Matti Katila
Subject: [Gzz-commits] gzz/gzz/view CoordinatePlaneView.java
Date: Wed, 22 Jan 2003 09:28:13 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Matti Katila <address@hidden>   03/01/22 09:28:12

Modified files:
        gzz/view       : CoordinatePlaneView.java 

Log message:
        broke view api and made culling work in pp.

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

Patches:
Index: gzz/gzz/view/CoordinatePlaneView.java
diff -u gzz/gzz/view/CoordinatePlaneView.java:1.8 
gzz/gzz/view/CoordinatePlaneView.java:1.9
--- gzz/gzz/view/CoordinatePlaneView.java:1.8   Thu Dec  5 20:03:51 2002
+++ gzz/gzz/view/CoordinatePlaneView.java       Wed Jan 22 09:28:12 2003
@@ -28,6 +28,8 @@
 import gzz.vob.*;
 import gzz.vob.vobs.*;
 
+import gzz.gfx.gl.GLVobCoorder;
+
 /** A view which shows a single rank of cells, at coordinates given
  * in the structure. 
  * For use in PP, but generalizable; possibly a step into floatingworld ideas.
@@ -35,7 +37,7 @@
  */
 
 public class CoordinatePlaneView implements View {
-public static final String rcsid = "$Id: CoordinatePlaneView.java,v 1.8 
2002/12/06 01:03:51 benja Exp $";
+public static final String rcsid = "$Id: CoordinatePlaneView.java,v 1.9 
2003/01/22 14:28:12 mudyc Exp $";
     public static boolean dbg = true;
     private static void pa(String s) { System.err.println(s); }
 
@@ -53,6 +55,9 @@
     public int getCursorBox() { return cursorBox; }
 
     public void render(VobScene vs, int into, ViewContext context) {
+       render(vs, into, context, into);
+    }
+    public void render(VobScene vs, int into, ViewContext context, int cullCS) 
{
        Cell cur = context.getAccursed();
        Cell item = cur.h(d_rank);
        Cell head = item;
@@ -69,6 +74,9 @@
                if(dbg) pa("CPV PLACE: "+place[0]+" "+place[1]+" "+
                                bs[0]+" "+bs[1]);
                int box = vs.orthoBoxCS(into, item, 0, place[0], place[1], 1, 
1, bs[0], bs[1]);
+               int cull = ((GLVobCoorder)vs.coords).cull(box, cullCS);
+               vs.matcher.add(box, cull, item+"cull");
+               box = cull;
 
                cv.place(item, vs, box, context);
                vs.activate(box);




reply via email to

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