/[gzz]/gzz/gfx/libutil/effects.py
ViewVC logotype

Diff of /gzz/gfx/libutil/effects.py

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

revision 1.14 by tjl, Thu Oct 3 17:30:08 2002 UTC revision 1.15 by tjl, Tue Oct 8 10:25:40 2002 UTC
# Line 1  Line 1 
1  from gzz.gfx.gl import GL, GLRen, GLSpans, Paper, GLCache  from gzz.gfx.gl import GL, GLRen, GLSpans, Paper, GLCache
2  from gzz.vob.buoy import NadirAngler  from gzz.vob.buoy import NadirAngler
3  from gzz.vob.buoy import Buoy3Floater  from gzz.vob.buoy import Buoy3Floater, Buoy4Floater
4  import math  import math
5    
6    class CircleFloater4(Buoy4Floater):
7        def __init__(self, vs, parent, center, radius, p):
8            self.__dict__.update(locals())
9        def buoyCoordsys(self, anchorCS, key):
10            cs = self.vs.coords.buoyOnCircle(
11                anchorCS,
12                self.center[0], self.center[1],
13                self.radius,
14                self.p[0], self.p[1],
15                1)
16            self.vs.matcher.add(cs, key)
17            return cs
18        def finishFloating(self):
19            pass
20    
21  # Prototype: project to a semicircle  # Prototype: project to a semicircle
22  # from a point.  # from a point.
23  class NadirCircleFloater(Buoy3Floater):  class NadirCircleFloater(Buoy3Floater):

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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