/[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.4 by tjl, Wed Feb 5 09:44:32 2003 UTC revision 1.5 by tjl, Wed Feb 5 12:27:36 2003 UTC
# Line 27  class RealBuoyManager(BuoyLinkListener): Line 27  class RealBuoyManager(BuoyLinkListener):
27          self.mainNode = initBuoyviewnodetype.createMainNode(          self.mainNode = initBuoyviewnodetype.createMainNode(
28                              initLinkId, initAnchor, self)                              initLinkId, initAnchor, self)
29      def nadir(self, cs):      def nadir(self, cs):
30          n =  self.vs.coords.nadir(cs, self.nadirCS)          n =  self.vs.coords.nadirUnitSq(cs, self.nadirCS)
31          self.vs.matcher.add(cs, n, "NADIR")          self.vs.matcher.add(cs, n, "NADIR")
32          return n          return n
33      def scene(self, vs):      def scene(self, vs):
# Line 60  class RealBuoyManager(BuoyLinkListener): Line 60  class RealBuoyManager(BuoyLinkListener):
60                                  x+r, 300,                                  x+r, 300,
61                                  0.1)                                  0.1)
62          self.vs.matcher.add(buoy, linkId)          self.vs.matcher.add(buoy, linkId)
         buoy = self.nadir(buoy)  
63          into = self.vs.orthoBoxCS(buoy, "V", 0, 0, 0, .5, .5, 1, 1)          into = self.vs.orthoBoxCS(buoy, "V", 0, 0, 0, .5, .5, 1, 1)
64            into = self.nadir(into)
65          otherNode.renderBuoy(self.vs, into, linkId, otherAnchor)          otherNode.renderBuoy(self.vs, into, linkId, otherAnchor)
66    
67      def key(self, key):      def key(self, key):

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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