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): |