/[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.63 by mudyc, Wed Jan 22 14:31:33 2003 UTC revision 1.64 by mudyc, Mon Jan 27 15:58:22 2003 UTC
# Line 154  public static final String rcsid = "$Id$ Line 154  public static final String rcsid = "$Id$
154      public Space space;      public Space space;
155      public PPDims d;      public PPDims d;
156    
157    
158        /** Demo - Animations
159         */
160        private TreeMap animationTree = new TreeMap();
161        private void addAnim(Object o, int key) {
162            animationTree.put(o, new Integer(key));
163        }
164        public int getAnimCS(Object o) {
165            Object obj = animationTree.get(o);
166            if (obj == null) return -1;
167            return ((Integer)obj).intValue();
168        }
169    
170        /** Interpolations
171         */
172      private TreeMap interps = new TreeMap();      private TreeMap interps = new TreeMap();
173        public void addInterp(Object key, int i) { addInterp(key, new Integer(i)); }
174      public void addInterp(Object key, Object o) { interps.put(key, o); }      public void addInterp(Object key, Object o) { interps.put(key, o); }
175      public void clearInterps() { interps.clear(); }      public void clearInterps() { interps.clear(); }
176    
# Line 320  public static final String rcsid = "$Id$ Line 336  public static final String rcsid = "$Id$
336                      -pan[0]*buoyZoom, -pan[1]*buoyZoom, buoyZoom, buoyZoom);                      -pan[0]*buoyZoom, -pan[1]*buoyZoom, buoyZoom, buoyZoom);
337              vs.matcher.add(frameCS, c2fCS, "C2F");              vs.matcher.add(frameCS, c2fCS, "C2F");
338    
339                addAnim(""+c, frameCS);
340              if (viewMode == LINK_KILLING) {              if (viewMode == LINK_KILLING) {
341                  ev_handler.onClick(frameCS, "Kill link",                  ev_handler.onClick(frameCS, "Kill link",
342                     new Object[]{ c, connectedFrom, new Integer(dir)});                     new Object[]{ c, connectedFrom, new Integer(dir)});
# Line 372  public static final String rcsid = "$Id$ Line 389  public static final String rcsid = "$Id$
389              "LineWidth 2\nColor 0 0 0\nEnable TEXTURE_2D");              "LineWidth 2\nColor 0 0 0\nEnable TEXTURE_2D");
390    
391      public void render(VobScene vs, int intoCS, ViewContext context) {      public void render(VobScene vs, int intoCS, ViewContext context) {
392            ev_handler.cleanCallers();
393            animationTree.clear();
394    
395          // Nadir CS          // Nadir CS
396          NADIR_PT =  vs.orthoBoxCS(0, "nadir_point", 0,          NADIR_PT =  vs.orthoBoxCS(0, "nadir_point", 0,
397                                    leftPanelRealWidth + 0.5f*mainWidth,                                    leftPanelRealWidth + 0.5f*mainWidth,
398                                    mainHeight*2.0f,                                    mainHeight*2.0f,
399                                    1, 1, 2, 2);                                    1, 1, 2, 2);
         ev_handler.cleanCallers();  
   
400          buoy_vc.setCellView(cellview);          buoy_vc.setCellView(cellview);
401    
402          buoy_singlePlane = new SinglePlane();          buoy_singlePlane = new SinglePlane();
# Line 421  public static final String rcsid = "$Id$ Line 439  public static final String rcsid = "$Id$
439          vs.matcher.add(frameCS, c2fCS, "C2F");          vs.matcher.add(frameCS, c2fCS, "C2F");
440    
441          MAIN_CS = frameCS;          MAIN_CS = frameCS;
442            addAnim(""+context.getAccursed(), MAIN_CS);
443    
444          ev_handler.onClick(frameCS, "Click MAINVP",          ev_handler.onClick(frameCS, "Click MAINVP",
445              new Object[]{ new Integer(mainctr), new Integer(frameCS)});              new Object[]{ new Integer(mainctr), new Integer(frameCS)});

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

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