/[gzz]/gzz/gzz/view/buoy/buoymanager.py
ViewVC logotype

Diff of /gzz/gzz/view/buoy/buoymanager.py

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

revision 1.12 by tjl, Fri Feb 7 10:49:59 2003 UTC revision 1.13 by tjl, Fri Feb 7 12:49:28 2003 UTC
# Line 12  import gzz Line 12  import gzz
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
# Line 65  class RealBuoyManager(BuoyLinkListener): Line 65  class RealBuoyManager(BuoyLinkListener):
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)
# Line 85  class RealBuoyManager(BuoyLinkListener): Line 85  class RealBuoyManager(BuoyLinkListener):
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    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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