12 |
|
|
13 |
print "LOADING BUOYMANAGER" |
print "LOADING BUOYMANAGER" |
14 |
|
|
15 |
lineconn = GLRen.createLineConnector(0,0) |
lineconn = GLRen.createLineConnector(.5, .5, .5, .5, 0, 0, 0, 0, 0, 1) |
16 |
|
|
17 |
class RealBuoyManager(BuoyLinkListener): |
class RealBuoyManager(BuoyLinkListener): |
18 |
"""Manage buoys through the new APIs |
"""Manage buoys through the new APIs |
65 |
buoy = self.vs.coords.buoyOnCircle(0, anchorCS, |
buoy = self.vs.coords.buoyOnCircle(0, anchorCS, |
66 |
x, self.ctry, r, |
x, self.ctry, r, |
67 |
x-r, self.ctry, |
x-r, self.ctry, |
68 |
0.1) |
1.1) |
69 |
else: |
else: |
70 |
buoy = self.vs.coords.buoyOnCircle(0, anchorCS, |
buoy = self.vs.coords.buoyOnCircle(0, anchorCS, |
71 |
x, self.ctry, r, |
x, self.ctry, r, |
72 |
x+r, self.ctry, |
x+r, self.ctry, |
73 |
0.1) |
1.1) |
74 |
self.vs.matcher.add(buoy, linkId) |
self.vs.matcher.add(buoy, linkId) |
75 |
into = self.vs.orthoBoxCS(buoy, "V", -100, 0, 0, .5, .5, 150, 150) |
into = self.vs.orthoBoxCS(buoy, "V", -100, 0, 0, .5, .5, 150, 150) |
76 |
into = self.nadir(into) |
into = self.nadir(into) |
85 |
Color 0 0 0 0.6 |
Color 0 0 0 0.6 |
86 |
""")) |
""")) |
87 |
|
|
88 |
self.vs.map.put(lineconn, anchorCS, otherAnchorCS) |
self.vs.map.put(lineconn, self.vs.unitSqCS(anchorCS, "UN"), |
89 |
|
self.vs.unitSqCS(otherAnchorCS, "UN")) |
90 |
|
|
91 |
# vs.map.put(filletconn, main_whole_cs, link_whole_cs) |
# vs.map.put(filletconn, main_whole_cs, link_whole_cs) |
92 |
|
|