/[gzz]/gzz/gzz/view/PageSpanCellView.java
ViewVC logotype

Diff of /gzz/gzz/view/PageSpanCellView.java

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

revision 1.21 by tjl, Wed Feb 12 12:47:06 2003 UTC revision 1.22 by tjl, Wed Feb 12 13:58:00 2003 UTC
# Line 185  public class PageSpanCellView extends Ce Line 185  public class PageSpanCellView extends Ce
185              place(vs, scaled, importance, pixelscale);              place(vs, scaled, importance, pixelscale);
186          }          }
187    
188            /** Make a request for loading the textures into memory.
189             */
190            public void request(float x, float y, float radius, float importance, float pixelscale) {
191                pa("Request: "+x+" "+y+" "+radius);
192                float curx = 0;
193                for(int p = 0; p < npages; p++) {
194                    float dx = Math.abs((curx + .5f * scale * xywh[4*p+2]) - x) - .5f*scale * xywh[4*p+2];
195                    float dy = Math.abs((.5f * scale * xywh[4*p+3]) - y) - .5f*scale * xywh[4*p+3];
196                    pa("RequestCoords: "+xywh[4*p+0]+" "+xywh[4*p+1]+" "+
197                                            xywh[4*p+2]+" "+xywh[4*p+3]);
198                    if(dx < radius && dy < radius) {
199                        pa("Request DO: "+dx+" "+dy);
200                        psps[p].request(importance, pixelscale);
201                    }
202                    curx += scale * xywh[4*p + 2];
203                }
204            }
205    
206      }      }
207    

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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