gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz doc/pegboard/vobcoorder_culling--humppake/p...


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz doc/pegboard/vobcoorder_culling--humppake/p...
Date: Fri, 06 Dec 2002 07:08:28 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        02/12/06 07:08:28

Modified files:
        doc/pegboard/vobcoorder_culling--humppake: peg.rst 
        gzz/vob        : VobCoorder.java VobScene.java 

Log message:
        implement vobcoorder_culling--humppake

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/doc/pegboard/vobcoorder_culling--humppake/peg.rst.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/vob/VobCoorder.java.diff?tr1=1.24&tr2=1.25&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/vob/VobScene.java.diff?tr1=1.21&tr2=1.22&r1=text&r2=text

Patches:
Index: gzz/doc/pegboard/vobcoorder_culling--humppake/peg.rst
diff -u gzz/doc/pegboard/vobcoorder_culling--humppake/peg.rst:1.10 
gzz/doc/pegboard/vobcoorder_culling--humppake/peg.rst:1.11
--- gzz/doc/pegboard/vobcoorder_culling--humppake/peg.rst:1.10  Thu Nov 21 
06:19:01 2002
+++ gzz/doc/pegboard/vobcoorder_culling--humppake/peg.rst       Fri Dec  6 
07:08:28 2002
@@ -4,9 +4,9 @@
 
 :Authors:   Asko Soukka
 :Stakeholders: Tuomas Lukka
-:Last-Modified: $Date: 2002/11/21 11:19:01 $
-:Revision: $Revision: 1.10 $
-:Status:   Accepted
+:Last-Modified: $Date: 2002/12/06 12:08:28 $
+:Revision: $Revision: 1.11 $
+:Status:   Implemented
 :Date-Created: 2002-11-05
 :Scope:    Minor
 :Type:     Feature
Index: gzz/gzz/vob/VobCoorder.java
diff -u gzz/gzz/vob/VobCoorder.java:1.24 gzz/gzz/vob/VobCoorder.java:1.25
--- gzz/gzz/vob/VobCoorder.java:1.24    Thu Nov 21 04:52:35 2002
+++ gzz/gzz/vob/VobCoorder.java Fri Dec  6 07:08:28 2002
@@ -90,6 +90,42 @@
     abstract public int orthoBox(int into, float z, float x, float y, float 
sx, float sy, float w, float h) ;
     abstract public void setOrthoBoxParams(int cs, float z, float x, float y, 
float sx, float sy, float w, float h) ;
 
+    /** Creates a CullingCoordSys with distinct parent and test 
+     * coordinate systems. Exluding the test for drawing, the 
+     * CullingCoordSys works like its parent coordinate system.
+     * E.g. CullingCoordSys returns its parents box. 
+     * <p>
+     * This coordsys will not necessarily be drawn if the boxes
+     * of the test and clip coordinate systems do not intersect.
+     * However, this is not guaranteed; the only thing guaranteed
+     * is that if the boxes of the test and clip coordinate systems
+     * *do* intersect, the CullingCoordsys will be drawn.
+     * <p>
+     * The default implementation (although this may change in the
+     * future) in VobCoorder is to simply return parent.
+     * <p>
+     * @param parent ID of the coordinate system which points 
+     *               will be transformed, if CullingCoordSys 
+     *               is shown
+     * @param test ID of the coordinate system whose box is tested 
+     *             against the clip coordinate system.
+     * @param clip ID of the coordinate system whose box is tested
+     *             against the test coordinate system.
+     */
+    public int cull(int parent, int test, int clip) {
+       return parent;
+    }
+
+    /** Creates a CullingCoordSys using the parent also as the test 
+     * coordinate system. 
+     */
+    public int cull(int parent, int clip) {
+       return cull(parent, parent, clip);
+    }
+
+    
+
+
     /** Get the size of the "unit square" of the given coordinate
      * system. This is the size that the unit square of unitSqCS() 
      * would be in the given coordinate system.
Index: gzz/gzz/vob/VobScene.java
diff -u gzz/gzz/vob/VobScene.java:1.21 gzz/gzz/vob/VobScene.java:1.22
--- gzz/gzz/vob/VobScene.java:1.21      Thu Dec  5 05:57:34 2002
+++ gzz/gzz/vob/VobScene.java   Fri Dec  6 07:08:28 2002
@@ -181,6 +181,13 @@
        return matcher.addSub(into, coords.orthoBox(into, d, x, y, sx, sy, w, 
h), key);
     }
 
+    public int cullCS(int into, Object key, int clip) {
+       return matcher.addSub(into, coords.cull(into, clip), key);
+    }
+    public int cullCS(int into, Object key, int test, int clip) {
+       return matcher.addSub(into, coords.cull(into, test, clip), key);
+    }
+
     /** Determines size of the area designated for the <code>Vob</code>s.
      *  At least at the moment doesn't include margins.
      * Coordinates of the scene's




reply via email to

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