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

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

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

revision 1.7 by tjl, Mon Nov 4 07:53:15 2002 UTC revision 1.8 by tjl, Mon Nov 4 08:45:58 2002 UTC
# Line 116  public class PPView2 implements View { Line 116  public class PPView2 implements View {
116    
117              // CS from virtualpaper to screen              // CS from virtualpaper to screen
118              final int paper2screen = glc.concat(framecenterCS, panZoom);              final int paper2screen = glc.concat(framecenterCS, panZoom);
119                vs.matcher.addSub(frameCS, paper2screen, "PAPER2S");
120              final int bg2screen = vs.scaleCS(paper2screen, "BGSCA",              final int bg2screen = vs.scaleCS(paper2screen, "BGSCA",
121                                          bgscale, bgscale);                                          bgscale, bgscale);
122                            
# Line 136  public class PPView2 implements View { Line 137  public class PPView2 implements View {
137    
138              // Irregu needs frame 2 paper              // Irregu needs frame 2 paper
139              final int screen2paper = glc.invert(paper2screen);              final int screen2paper = glc.invert(paper2screen);
140                vs.matcher.addSub(paper2screen, screen2paper, "INVER2S");
141              final int frameUnit2paper = glc.concat(screen2paper, frameUnit);              final int frameUnit2paper = glc.concat(screen2paper, frameUnit);
142                vs.matcher.addSub(screen2paper, frameUnit2paper, "f2pap");
143    
144              class Putter implements Runnable {              class Putter implements Runnable {
145                  Vob v;                  Vob v;
# Line 198  public class PPView2 implements View { Line 201  public class PPView2 implements View {
201              final int frameCS = vs.orthoBoxCS(buoycs, "frame", 0,              final int frameCS = vs.orthoBoxCS(buoycs, "frame", 0,
202                      -buoyVPWidth/2, -buoyVPHeight, 1, 1,                      -buoyVPWidth/2, -buoyVPHeight, 1, 1,
203                      buoyVPWidth, buoyVPHeight);                      buoyVPWidth, buoyVPHeight);
204                vs.activate(frameCS);
205              // XXX Pan              // XXX Pan
206              final int c2fCS = vs.coords.ortho(0, 0, 0, 0, buoyZoom, buoyZoom);              final int c2fCS = vs.coords.ortho(0, 0, 0, 0, buoyZoom, buoyZoom);
207              vs.matcher.addSub(buoycs, c2fCS, "C2F");              vs.matcher.addSub(buoycs, c2fCS, "C2F");
# Line 251  public class PPView2 implements View { Line 255  public class PPView2 implements View {
255          int frameCS = vs.orthoBoxCS(mainctr, "frame", 10,          int frameCS = vs.orthoBoxCS(mainctr, "frame", 10,
256                  (-mainWidth)/2, -mainHeight/2, 1, 1,                  (-mainWidth)/2, -mainHeight/2, 1, 1,
257                  mainWidth, mainHeight);                  mainWidth, mainHeight);
258            vs.activate(frameCS);
259    
260          int c2fCS = vs.coords.ortho(0, 0, 0, 0, 10, 10);          int c2fCS = vs.coords.ortho(0, 0, 0, 0, 10, 10);
261          vs.matcher.addSub(mainctr, c2fCS, "C2F");          vs.matcher.addSub(mainctr, c2fCS, "C2F");

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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