/[gzz]/gzz/gfx/demo/keymap-test.py
ViewVC logotype

Diff of /gzz/gfx/demo/keymap-test.py

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

revision 1.7 by mudyc, Mon Jan 13 12:41:18 2003 UTC revision 1.8 by mudyc, Mon Jan 13 13:05:25 2003 UTC
# Line 11  from gzz.view import * Line 11  from gzz.view import *
11  from java.awt.event import MouseEvent  from java.awt.event import MouseEvent
12    
13    
14  AbstractUpdateManager.defaultAnimationTime = 2000  AbstractUpdateManager.defaultAnimationTime = 3000
15  obsTrigger = SimpleObsTrigger();  obsTrigger = SimpleObsTrigger();
16  cellTexter = SimpleVStreamTexter(FakeSpanMaker(), Enfilade1DImpl.Enfilade1DImplMaker())  cellTexter = SimpleVStreamTexter(FakeSpanMaker(), Enfilade1DImpl.Enfilade1DImplMaker())
17  cellManager = PlainCellManager()  cellManager = PlainCellManager()
# Line 67  class ViewScene: Line 67  class ViewScene:
67          h = 300          h = 300
68          wi = 300          wi = 300
69                    
70            ctr = vs.orthoCS(0, "ctr", 0,300,600, 1,1)
         ctr = vs.coords.affineCoordsys(0, 100, 300,600, 1,0,0,1);  
71          fr = vs.orthoBoxCS(ctr, "frame", 100, -wi/2, -h/2,  1,1, wi, h)          fr = vs.orthoBoxCS(ctr, "frame", 100, -wi/2, -h/2,  1,1, wi, h)
         vs.matcher.add(ctr, "ctr")  
72          c2f = vs.coords.ortho(0, 11, 0, 0, .8, .8)          c2f = vs.coords.ortho(0, 11, 0, 0, .8, .8)
73          vs.matcher.add(fr, c2f, "C2F")          vs.matcher.add(fr, c2f, "C2F")
74                    
# Line 81  class ViewScene: Line 79  class ViewScene:
79          # Note how we map the OLD cs2 to the NEW cs1          # Note how we map the OLD cs2 to the NEW cs1
80          if self.chg:          if self.chg:
81              print 'AND IT MAKES!'              print 'AND IT MAKES!'
82              vs.matcher.keymapSingleCoordsys(self.NEW, self.OLD)              #vs.matcher.keymapSingleCoordsys(self.NEW, self.OLD)
83              vs.matcher.keymapSingleCoordsys(self.NEW_PAPER, self.OLD)              vs.matcher.keymapSingleCoordsys(self.NEW_PAPER, self.OLD)
84    
85          # and now store the NEW cs2          # and now store the NEW cs2

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