/[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.58 by mudyc, Mon Jan 13 08:01:17 2003 UTC revision 1.59 by mudyc, Mon Jan 13 08:33:53 2003 UTC
# Line 158  public static final String rcsid = "$Id$ Line 158  public static final String rcsid = "$Id$
158      public void addInterp(Object key, Object o) { interps.put(key, o); }      public void addInterp(Object key, Object o) { interps.put(key, o); }
159      public void clearInterps() { interps.clear(); }      public void clearInterps() { interps.clear(); }
160    
161        /* Coordsys */
162      private int MAIN_CS = -1;      private int MAIN_CS = -1;
163        private int NADIR_PT = -1;
164            
165    
166      Vob black = GLCache.getCallList("Color 0 0 0\n");      Vob black = GLCache.getCallList("Color 0 0 0\n");
# Line 302  public static final String rcsid = "$Id$ Line 304  public static final String rcsid = "$Id$
304                  }                  }
305                  count *= 0.5;                  count *= 0.5;
306              }              }
307              actr = vs.translateCS(actr, "SHIFT_"+count, 0, count * 1.8f);              actr = vs.translateCS(actr, "SHIFT_"+connectedFrom, 0, count * 1.8f);
308    
309              int buoycs = floater.buoyCoordsys(actr, key);              int buoycs = floater.buoyCoordsys(actr, key);
310    
             // Nadir CS  
             final int nadir_point_cs;  
             nadir_point_cs =  vs.orthoBoxCS(0, "nadir_point"+c, 0,  
                                            leftPanelRealWidth + 0.5f*mainWidth,  
                                            mainHeight*2.0f,  
                                            1, 1, 2, 2);  
311              final int nadir_buoy =              final int nadir_buoy =
312                  ((GLVobCoorder)vs.coords).nadirOrigin(buoycs, nadir_point_cs);                  ((GLVobCoorder)vs.coords).nadirOrigin(buoycs, NADIR_PT);
313              vs.matcher.add(nadir_buoy, "NADIR"+c.toString() );              vs.matcher.add(nadir_buoy, "NADIR"+connectedFrom.toString() );
314    
315              final int frameCS = vs.orthoBoxCS(nadir_buoy, "frame", 0,              final int frameCS = vs.orthoBoxCS(nadir_buoy, "frame", 0,
316                      -buoyVPWidth/2, -buoyVPHeight/2, 1, 1,                      -buoyVPWidth/2, -buoyVPHeight/2, 1, 1,
# Line 366  public static final String rcsid = "$Id$ Line 362  public static final String rcsid = "$Id$
362      }      }
363    
364      TextStyle style = GraphicsAPI.getInstance().getTextStyle("Sans", 0, 20);      TextStyle style = GraphicsAPI.getInstance().getTextStyle("Sans", 0, 20);
     //CellView cellview = new ImageCell(new TextCellContentView(style));  
     //CellView cellview = new ImageCell(new LinebrokenCellContentView(style));  
365      CellView cellview = new ImageCell(new PPCellView(style,      CellView cellview = new ImageCell(new PPCellView(style,
366          "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"));          "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"));
367    
# Line 380  public static final String rcsid = "$Id$ Line 374  public static final String rcsid = "$Id$
374              "LineWidth 2\nColor 0 0 0\nEnable TEXTURE_2D");              "LineWidth 2\nColor 0 0 0\nEnable TEXTURE_2D");
375    
376      public void render(VobScene vs, int intoCS, ViewContext context) {      public void render(VobScene vs, int intoCS, ViewContext context) {
377            // Nadir CS
378            NADIR_PT =  vs.orthoBoxCS(0, "nadir_point", 0,
379                                      leftPanelRealWidth + 0.5f*mainWidth,
380                                      mainHeight*2.0f,
381                                      1, 1, 2, 2);
382          ev_handler.cleanCallers();          ev_handler.cleanCallers();
383    
384          buoy_vc.setCellView(cellview);          buoy_vc.setCellView(cellview);

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

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