/[libvob]/libvob/vob/buoy/buoymanager.py
ViewVC logotype

Diff of /libvob/vob/buoy/buoymanager.py

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

revision 1.67 by tjl, Tue Aug 26 08:59:18 2003 UTC revision 1.68 by tjl, Tue Aug 26 09:04:28 2003 UTC
# Line 236  class MultiBuoyManager: Line 236  class MultiBuoyManager:
236          hit = jarray.zeros(1, 'f')          hit = jarray.zeros(1, 'f')
237          theTopMostMainNode = None          theTopMostMainNode = None
238          depth = None          depth = None
239            print "Topmost:"
240          for single in self.singles:          for single in self.singles:
241                print "look at:",single, single.mainNode
242              if single.mainNode.hasMouseHit(vs, x, y, hit):              if single.mainNode.hasMouseHit(vs, x, y, hit):
243                  if not depth:                  print "hit:",hit[0]
244                    if depth == None or depth < hit[0]:
245                      depth = hit[0]                      depth = hit[0]
246                      theTopMostMainNode = single.mainNode                      theTopMostMainNode = single.mainNode
247                  else:          print "Ret: ", theTopMostMainNode
                     if depth < hit[0]:  
                         theTopMostMainNode = single.mainNode  
248          return theTopMostMainNode          return theTopMostMainNode
249                    
250      def findIfBuoyHit(self, vs, x, y):      def findIfBuoyHit(self, vs, x, y):

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

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