/[gzz]/gzz/gzz/view/xubuoy.py
ViewVC logotype

Diff of /gzz/gzz/view/xubuoy.py

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

revision 1.24 by tjl, Sat Oct 19 14:28:06 2002 UTC revision 1.25 by tjl, Sun Oct 20 09:33:17 2002 UTC
# Line 5  import gzz.client Line 5  import gzz.client
5    
6  from gzz.index import XuLink  from gzz.index import XuLink
7  from gzz.gfx.gl import Stencil  from gzz.gfx.gl import Stencil
 from gzz.vob.buoy import NadirAngler  
8    
9  from jarray import array, zeros  from jarray import array, zeros
10    
11    # import gzz.view.pagespanview
12    # import gfx.libutil.effects
13  from gzz.view import pagespanview  from gzz.view import pagespanview
14  from gfx.libutil import effects  from gfx.libutil import effects
15    
# Line 143  class XuPDFBuoy: Line 144  class XuPDFBuoy:
144                          maincs, globalview = None,                          maincs, globalview = None,
145                          globalusefancypaper = 0,                          globalusefancypaper = 0,
146                          globalshowtessel = 0,                          globalshowtessel = 0,
147                          globalspan = None):                          globalspan = None,
148                            nadircs = None):
149          if not self.cell:          if not self.cell:
150              return              return
151          cell = self.cell          cell = self.cell
# Line 168  class XuPDFBuoy: Line 170  class XuPDFBuoy:
170    
171          cs1 = floater.buoyCoordsys(main_end_cs, self.cell.getId())          cs1 = floater.buoyCoordsys(main_end_cs, self.cell.getId())
172    
173            if nadircs != None:
174                cs1_nad = vs.coords.nadirOrigin(cs1, nadircs)
175                vs.matcher.addSub(cs1, cs1_nad, "N")
176                cs1 = cs1_nad
177    
178    
179          # Then, make the buoy coordsys          # Then, make the buoy coordsys
180    
# Line 276  class XuPDFScene_PDFContext: Line 283  class XuPDFScene_PDFContext:
283    
284          self.rad = screensize[0] * 5/12            self.rad = screensize[0] * 5/12  
285    
286          self.nadir = NadirAngler(self.ctrx, screensize[1]*2)          self.nadir = (self.ctrx, screensize[1]*2)
287          self.clip = 0          self.clip = 0
288          self.selectCS = None          self.selectCS = None
289          self.currentvs = None          self.currentvs = None
# Line 480  class XuPDFScene_PDFContext: Line 487  class XuPDFScene_PDFContext:
487      def scene(self, vs):      def scene(self, vs):
488          bg(vs)          bg(vs)
489    
490            nadircs = vs.translateCS(0, "NAD", *self.nadir)
491    
492          # projx = self.ctrx + 1.5*self.rad          # projx = self.ctrx + 1.5*self.rad
493          # fbuoyparams = (self.ctrx, self.ctry, self.rad,          # fbuoyparams = (self.ctrx, self.ctry, self.rad,
494          #                       projx, self.ctry, 1)          #                       projx, self.ctry, 1)
# Line 554  class XuPDFScene_PDFContext: Line 563  class XuPDFScene_PDFContext:
563                          globalview = self.view,                          globalview = self.view,
564                          globalusefancypaper = self.usefancypaper,                          globalusefancypaper = self.usefancypaper,
565                          globalshowtessel = self.showtessel,                          globalshowtessel = self.showtessel,
566                          globalspan = self.span)                          globalspan = self.span,
567                            nadircs = nadircs)
568                  self.buoys.append(b)                  self.buoys.append(b)
569              for backlink in globalback:              for backlink in globalback:
570                  b = XuPDFBuoy(0,(getattr(backlink,"from"), backlink.to),                  b = XuPDFBuoy(0,(getattr(backlink,"from"), backlink.to),
# Line 563  class XuPDFScene_PDFContext: Line 573  class XuPDFScene_PDFContext:
573                          globalview = self.view,                          globalview = self.view,
574                          globalusefancypaper = self.usefancypaper,                          globalusefancypaper = self.usefancypaper,
575                          globalshowtessel = self.showtessel,                          globalshowtessel = self.showtessel,
576                          globalspan = self.span)                          globalspan = self.span,
577                            nadircs = nadircs)
578                  self.buoys.append(b)                  self.buoys.append(b)
579          self.currentvs = vs          self.currentvs = vs
580          self.selectCS = None          self.selectCS = None

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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