/[gzz]/gzz/gzz/vob/Box.java
ViewVC logotype

Diff of /gzz/gzz/vob/Box.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Mon Oct 28 15:28:18 2002 UTC revision 1.5 by tjl, Tue Oct 29 14:09:32 2002 UTC
# Line 50  public class Box { Line 50  public class Box {
50      /** The key used to put the unitcoordsys under whcoordsys.      /** The key used to put the unitcoordsys under whcoordsys.
51       */       */
52      static public final Object UNITCOORDSYSKEY = new Object();      static public final Object UNITCOORDSYSKEY = new Object();
53        static public final Object CULLEDCOORDSYSKEY = new Object();
54    
55        int cullTo = -1;
56    
57      VobScene vs;      VobScene vs;
58      float w, h;      float w, h;
59      int whcoordsys;      int whcoordsys;
60        int culledwhcoordsys;
61      int unitcoordsys;      int unitcoordsys;
62    
63    
# Line 68  public class Box { Line 71  public class Box {
71          this.vs = vs;          this.vs = vs;
72          this.whcoordsys = whcoordsys;          this.whcoordsys = whcoordsys;
73          this.unitcoordsys = -1;          this.unitcoordsys = -1;
74            this.culledwhcoordsys = -1;
75          this.w = w;          this.w = w;
76          this.h = h;          this.h = h;
77      }      }
78    
79        public void setCull(int cull) {
80            this.cullTo = cull;
81        }
82    
83    
84      /** Create the unit square coordsys.      /** Create the unit square coordsys.
85       */       */
86      private void createUnitCoordsys() {      private void createUnitCoordsys() {
# Line 89  public class Box { Line 98  public class Box {
98      /** Return the standardized coordinate system in which      /** Return the standardized coordinate system in which
99       * the rectangle (0,w)x(0,h) maps onto the final box.       * the rectangle (0,w)x(0,h) maps onto the final box.
100       */       */
101      public int getWHCoordsys() { return whcoordsys;}      public int getWHCoordsys() {
102            if(cullTo >= 0) {
103                // XXX Fill in when three-component cull is done
104    //          if(culledwhcoordsys < 0)
105    //              culledwhcoordsys = vs.
106            }
107            return whcoordsys;
108        }
109      /** Return the unit square coordinate system in which      /** Return the unit square coordinate system in which
110       * the rectangle (0,1)x(0,1) maps onto the final box.       * the rectangle (0,1)x(0,1) maps onto the final box.
111       */       */

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26