gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/demo xupdf.py


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz/gfx/demo xupdf.py
Date: Fri, 27 Sep 2002 05:53:22 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        02/09/27 05:53:22

Modified files:
        gfx/demo       : xupdf.py 

Log message:
        This parametrization makes adjusting easier...

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/xupdf.py.diff?tr1=1.23&tr2=1.24&r1=text&r2=text

Patches:
Index: gzz/gfx/demo/xupdf.py
diff -c gzz/gfx/demo/xupdf.py:1.23 gzz/gfx/demo/xupdf.py:1.24
*** gzz/gfx/demo/xupdf.py:1.23  Fri Sep 27 05:48:17 2002
--- gzz/gfx/demo/xupdf.py       Fri Sep 27 05:53:22 2002
***************
*** 9,15 ****
  screenctr = (0.9 * screensize[0]/2, screensize[1]/2)
  
  # Slow animation for the demo.
! AbstractUpdateManager.defaultAnimationTime = 3000
  AbstractUpdateManager.fractCalc = AbstractUpdateManager.LinearCalculator()
  
  from test.tools import tools
--- 9,15 ----
  screenctr = (0.9 * screensize[0]/2, screensize[1]/2)
  
  # Slow animation for the demo.
! AbstractUpdateManager.defaultAnimationTime = 2000
  AbstractUpdateManager.fractCalc = AbstractUpdateManager.LinearCalculator()
  
  from test.tools import tools
***************
*** 365,371 ****
  
  class XuPDFScene_PDFZoom:
      def __init__(self):
!       self.mag = [10, 0.4]
      def key(self, key):
        print "Key: ",key
        global currentScene
--- 365,371 ----
  
  class XuPDFScene_PDFZoom:
      def __init__(self):
!       self.mag = [(screensize[1]/2,screensize[1]/2),(screensize[1]*2,20)]
      def key(self, key):
        print "Key: ",key
        global currentScene
***************
*** 390,397 ****
        cs1 = bf.addCentralBuoy(globalcursor.getId())
        # cs1_zoom = vs.coords.affineCoordsys(cs1, 0, 0, 0, 
        #     100, 0, 0, 100)
!       eye = 0.5
!       cs1_zoom= vs.coords.distort(cs1, 0, 0, eye, eye, 700, 20)
        vs.matcher.add(cs1_zoom, globalcursor.getId()+"__bulg") 
        cs1_trans = vs.coords.translateXY(cs1_zoom, -globalx, -globaly)
        vs.matcher.add(cs1_trans, globalcursor.getId()+"__trans") 
--- 390,398 ----
        cs1 = bf.addCentralBuoy(globalcursor.getId())
        # cs1_zoom = vs.coords.affineCoordsys(cs1, 0, 0, 0, 
        #     100, 0, 0, 100)
!       eye = 0.2
!       cs1_zoom= vs.coords.distort(cs1, 0, 0, eye, eye, 
!           *(self.mag[0]))
        vs.matcher.add(cs1_zoom, globalcursor.getId()+"__bulg") 
        cs1_trans = vs.coords.translateXY(cs1_zoom, -globalx, -globaly)
        vs.matcher.add(cs1_trans, globalcursor.getId()+"__trans") 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]