/[fenfire]/fenfire/org/fenfire/view/AreaSelectingView2D.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/AreaSelectingView2D.java

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

revision 1.5 by mudyc, Fri Jun 27 14:00:34 2003 UTC revision 1.6 by mudyc, Tue Jul 1 16:33:33 2003 UTC
# Line 19  public class AreaSelectingView2D extends Line 19  public class AreaSelectingView2D extends
19          this.x0 = x0; this.y0 = y0;          this.x0 = x0; this.y0 = y0;
20          this.x1 = x1; this.y1 = y1;          this.x1 = x1; this.y1 = y1;
21      }      }
22    
23        private Object current = null;
24        public void setCurrentPlane(Object obj) { current = obj; }
25    
26      private Paper paper;      private Paper paper;
27      private GLRen.FixedPaperQuad pq;      private GLRen.FixedPaperQuad pq;
28    
# Line 41  public class AreaSelectingView2D extends Line 45  public class AreaSelectingView2D extends
45              child.render(vs, plane, matchingParent,              child.render(vs, plane, matchingParent,
46                           box2screen, box2paper);                           box2screen, box2paper);
47    
48            if (current != plane) return;
49    
50          int paper2box = vs.invertCS(box2paper, "areaselectview_INv");          int paper2box = vs.invertCS(box2paper, "areaselectview_INv");
51          int paper2screen = vs.concatCS(box2screen, "areaselectview_conc",          int paper2screen = vs.concatCS(box2screen, "areaselectview_conc",
52                                     paper2box);                                     paper2box);
53          int cs = vs.orthoCS(paper2screen, "selection", 0, x0,y0,x1,y1);          int cs = vs.orthoCS(paper2screen, "selection", 0, x0,y0,x1,y1);
54          vs.put(pq, cs);          vs.put(pq, cs);
55    
56      }      }

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

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