/[gzz]/gzz/gzz/modules/pp/demotest.py
ViewVC logotype

Diff of /gzz/gzz/modules/pp/demotest.py

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

revision 1.10 by tjl, Sat Oct 19 14:27:44 2002 UTC revision 1.11 by tjl, Sat Nov 2 20:32:48 2002 UTC
# Line 4  from gzz import * Line 4  from gzz import *
4  from gzz.impl import *  from gzz.impl import *
5  from gzz.media.impl import *  from gzz.media.impl import *
6  from gzz.modules.pp import *  from gzz.modules.pp import *
7    from gzz.view import *
8  import math  import math
9  from java.lang import Math  from java.lang import Math
10  from java.awt.event import MouseEvent  from java.awt.event import MouseEvent
# Line 20  slicer = SingleSlicer("foo") Line 21  slicer = SingleSlicer("foo")
21  space = ModularSpace(cellTexter, cellManager, dimManager, identityManager, slicer, obsTrigger)  space = ModularSpace(cellTexter, cellManager, dimManager, identityManager, slicer, obsTrigger)
22    
23  ppactions = gzz.modules.pp.PPActionsImpl(space)  ppactions = gzz.modules.pp.PPActionsImpl(space)
 Win.initDims(space)  
24    
25  id = ppactions.newPaper()  id = ppactions.newPaper()
26    
# Line 114  class PlaneViewScene: Line 114  class PlaneViewScene:
114                     -self.scale*self.offset[1]+.5,                     -self.scale*self.offset[1]+.5,
115                  self.scale, 0, 0, self.scale)                  self.scale, 0, 0, self.scale)
116    
117  currentScene = PlaneViewScene()  class PPView2Scene:
118        def scene(self, vs):
119            vs.map.put(background((0.4,0.5,0.8)))
120            avc = gzz.view.AbstractViewContext()
121            avc.setAccursed(space.getCell(n1))
122            ppv = PPView2(space)
123            ppv.render(vs, 0, avc)
124    
125    # currentScene = PlaneViewScene()
126    currentScene = PPView2Scene()

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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