/[gzz]/gzz/gfx/demo/buoyoing.py
ViewVC logotype

Diff of /gzz/gfx/demo/buoyoing.py

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

revision 1.28 by jvk, Sat Feb 15 09:22:45 2003 UTC revision 1.29 by jvk, Sat Feb 15 10:02:49 2003 UTC
# Line 91  def addTrans(span, paper, transX=0, tran Line 91  def addTrans(span, paper, transX=0, tran
91      setPan(trans, transX,transY)      setPan(trans, transX,transY)
92      space.getCellTexter().setEnfilade(      space.getCellTexter().setEnfilade(
93              trans, pagespanNodes.makeEnf(span))              trans, pagespanNodes.makeEnf(span))
94        return trans
95    
96  xulinks = 1  xulinks = 1
97    
# Line 130  if xulinks: Line 131  if xulinks:
131      wholepage = pg0.getCurrent().subSpan(0,1)      wholepage = pg0.getCurrent().subSpan(0,1)
132      span = wholepage.subArea(50, 50, 400, 150)      span = wholepage.subArea(50, 50, 400, 150)
133      paper = newPaper()      paper = newPaper()
134      addTrans(span, paper)      global linkid1
135        linkid1 = addTrans(span, paper)
136      addNote(paper, 'Foobar', -30, 50)      addNote(paper, 'Foobar', -30, 50)
137    
138      paper2 = newPaper()      paper2 = newPaper()
# Line 173  currentScene = Scene() Line 175  currentScene = Scene()
175    
176    
177  def screenshots():  def screenshots():
   
178      frame = 0      frame = 0
       
179      s = Scene()      s = Scene()
180                    
181      # FIXME: move s to initial position      # FIXME: move s to initial position
# Line 184  def screenshots(): Line 184  def screenshots():
184      #    1) notice which buoy was clicked      #    1) notice which buoy was clicked
185      #    2) separate method: move to that buoy      #    2) separate method: move to that buoy
186      #    Then, call the 2nd method from outside.      #    Then, call the 2nd method from outside.
187    
188        s.mainNode.moveTo(50, 200)
189      vs1 = w.createVobScene()      vs1 = w.createVobScene()
190      s.scene(vs1)      s.scene(vs1)
191    
192      # FIXME: move s to final position      s.followLinkByAnchor(linkid1)
     s.followLinkByAnchor('urn:urn-5:xrbHJx-3HfHVW1aW0FMAG0fFWq-h:7')  
193      vs2 = w.createVobScene()      vs2 = w.createVobScene()
194      s.scene(vs2)      s.scene(vs2)
195    
# Line 204  def screenshots(): Line 205  def screenshots():
205      frame += 1      frame += 1
206            
207                    
208  if 0:  if 1:
209      screenshots()      screenshots()

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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