/[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.35 by benja, Sun Nov 24 20:40:49 2002 UTC revision 1.36 by tjl, Sun Dec 1 05:38:51 2002 UTC
# Line 91  def bg(vs): Line 91  def bg(vs):
91          End          End
92          Enable TEXTURE_2D          Enable TEXTURE_2D
93      """ % { "w": screensize[0], "h": screensize[1] } ) )      """ % { "w": screensize[0], "h": screensize[1] } ) )
94      fps = vs.coords.ortho(0, 10, 10, 20, 30.5, 30.5)      #fps = vs.coords.ortho(0, 10, 10, 20, 30.5, 30.5)
95      vs.matcher.add(fps, "FPS")      #vs.matcher.add(fps, "FPS")
96      vs.map.put(fps_text, fps, 0)      #vs.map.put(fps_text, fps, 0)
97            
98  style = gzz.client.GraphicsAPI.getInstance().getTextStyle("SansSerif", java.awt.Font.PLAIN, 10)  style = gzz.client.GraphicsAPI.getInstance().getTextStyle("SansSerif", java.awt.Font.PLAIN, 10)
99  contview = gzz.view.LinebrokenCellContentView(style)  contview = gzz.view.LinebrokenCellContentView(style)
# Line 155  class XuPDFBuoy: Line 155  class XuPDFBuoy:
155              pass              pass
156    
157          self.eye = 0.2          self.eye = 0.2
158          self.buoyscale = 800          self.buoyscale = 1300
159    
160      def add(self, vs, importance, floater,      def add(self, vs, importance, floater,
161                          maincs, globalview = None,                          maincs, globalview = None,
# Line 204  class XuPDFBuoy: Line 204  class XuPDFBuoy:
204              vs.matcher.addSub(cs1, cs1_nad, "N")              vs.matcher.addSub(cs1, cs1_nad, "N")
205              cs1 = cs1_nad              cs1 = cs1_nad
206    
   
         # Then, make the buoy coordsys  
   
         # cs1 = vs.coords.buoyOnCircle(main_end_cs, *buoyparams)  
         #       vs.matcher.add(cs1, cell.getId()+"__buo")  
   
207          if hasattr(self, 'pctr'):          if hasattr(self, 'pctr'):
208              cs1_zoom= vs.coords.distort(cs1, 0, 0, self.eye, self.eye, self.buoyscale, self.buoyscale)              cs1_zoom= vs.coords.distort(cs1, 0, 0, self.eye, self.eye, self.buoyscale, self.buoyscale)
209              vs.matcher.add(cs1_zoom, cell.getId()+"__bulg")              vs.matcher.add(cs1_zoom, cell.getId()+"__bulg")
# Line 250  class XuPDFBuoy: Line 244  class XuPDFBuoy:
244          """))          """))
245    
246          vs.map.put(lineconn, main_end_cs, link_end_cs)          vs.map.put(lineconn, main_end_cs, link_end_cs)
247          vs.map.put(filletconn, main_whole_cs, link_whole_cs)  
248            # vs.map.put(filletconn, main_whole_cs, link_whole_cs)
249    
250          vs.map.put(GLCache.getCallList("""          vs.map.put(GLCache.getCallList("""
251              PopAttrib              PopAttrib

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

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