/[gzz]/gzz/gzz/modules/pp/PlaneView.java
ViewVC logotype

Diff of /gzz/gzz/modules/pp/PlaneView.java

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

revision 1.53 by tjl, Wed Oct 9 14:38:41 2002 UTC revision 1.54 by tjl, Tue Oct 15 13:29:18 2002 UTC
# Line 75  public static final String rcsid = "$Id$ Line 75  public static final String rcsid = "$Id$
75          Cell note = plane.s(Win.d_contains);          Cell note = plane.s(Win.d_contains);
76    
77          BgVob bg = BgVob.create(plane);          BgVob bg = BgVob.create(plane);
78          int bginto = vs.coords.coordsys(viewport2screen, 500, 0, 0, 1, 1);          int bginto = vs.coords.ortho(viewport2screen, 500, 0, 0, 1, 1);
79          int bgpap = vs.coords.coordsys(paper2viewport, 0, 0, 0, 100, 100);          int bgpap = vs.coords.ortho(paper2viewport, 0, 0, 0, 100, 100);
80          vs.matcher.addSub(viewport2screen, bginto, "BGTRANS");          vs.matcher.addSub(viewport2screen, bginto, "BGTRANS");
81          vs.matcher.addSub(paper2viewport, bgpap, "BGPAP");          vs.matcher.addSub(paper2viewport, bgpap, "BGPAP");
82          vs.map.put(bg, bginto, bgpap);          vs.map.put(bg, bginto, bgpap);
# Line 102  public static final String rcsid = "$Id$ Line 102  public static final String rcsid = "$Id$
102    
103              Vob v = new TextVob(style, note.t(), true);              Vob v = new TextVob(style, note.t(), true);
104    
105              int cs = vs.coordsys(into, note, 5, notex, notey, 10, 10);              int cs = vs.orthoCS(into, note, 5, notex, notey, 10, 10);
106              vs.map.put(v, cs);              vs.map.put(v, cs);
107    
108              if(note.equals(cursor) &&              if(note.equals(cursor) &&
# Line 189  public static final String rcsid = "$Id$ Line 189  public static final String rcsid = "$Id$
189    
190      public void placeBuoyContents(VobScene vs, int cs, Cell center) {      public void placeBuoyContents(VobScene vs, int cs, Cell center) {
191          int w = 200, h = 200;          int w = 200, h = 200;
192          int magcs = vs.matcher.addSub(cs,          int magcs = vs.orthoCS(cs, "Mag", -10, -w/2, -h/2, w, h);
                 vs.coords.coordsys(cs, -10, -w/2, -h/2, w, h),  
                 "Mag");  
193          center = center.getRootclone();          center = center.getRootclone();
194          int place[] = Params.getInts(center.s(Win.d_pan, 1), Win.d_pan, 2, null);          int place[] = Params.getInts(center.s(Win.d_pan, 1), Win.d_pan, 2, null);
195          float scale = 0.01f;          float scale = 0.01f;
196          int p2v = vs.matcher.addSub(cs,          int p2v = vs.matcher.addSub(
197                  vs.coords.coordsys(0, 0,                          cs,
198                    vs.coords.ortho(0, 0,
199                      -scale*place[0]+0.5f, -scale*place[1]+0.5f,                      -scale*place[0]+0.5f, -scale*place[1]+0.5f,
200                          scale, scale),                          scale, scale), "Trans");
             "Trans");  
201          renderPaper(vs, center, -1, magcs, p2v, false);          renderPaper(vs, center, -1, magcs, p2v, false);
202    
203      }      }

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

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