Exemple #1
0
 def CalcBoundingBox(self):
     if self.Scaled:
         self.BoundingBox = BBox.asBBox( ((self.XY-self.Diameter),(self.XY+self.Diameter)) )
     else:
         self.BoundingBox = BBox.asBBox((self.XY, self.XY))
     if self._Canvas:
         self._Canvas.BoundingBoxDirty = True
Exemple #2
0
 def CalcBoundingBox(self):
     if self.Scaled:
         self.BoundingBox = BBox.asBBox(
             ((self.XY - self.Diameter), (self.XY + self.Diameter)))
     else:
         self.BoundingBox = BBox.asBBox((self.XY, self.XY))
     if self._Canvas:
         self._Canvas.BoundingBoxDirty = True
Exemple #3
0
 def CalcBoundingBox(self):
   log.debug("self.LengthPoints = "+str(self.LengthPoints))
   if self.LengthPoints:
     self.BoundingBox = BBox.fromPoints(LengthPoints) # contains 4 points, the locations of the radios and the locations where they are extrapolated to be based on measured signal strength (range)
     
     log.debug("list of points:"+str((self.Object1.GetConnectPoint(),
                                           self.Object2.GetConnectPoint(),
                                           self.LengthPoints[0],
                                           self.LengthPoints[1]) ) )
   else:
     self.BoundingBox = BBox.fromPoints((self.Object1.GetConnectPoint(),
                                          self.Object2.GetConnectPoint()) ) # a tuply containing 2 numpy 2-element arrays
   if self._Canvas:
     self._Canvas.BoundingBoxDirty = True
Exemple #4
0
 def CalcBoundingBox(self):
   self.BoundingBox = BBox.fromPoints((self.Object1.GetConnectPoint(),
                                       self.Object2.GetConnectPoint()) ) # a tuply containing 2 numpy 2-element arrays
   if self._Canvas:
     self._Canvas.BoundingBoxDirty = True
Exemple #5
0
 def CalcBoundingBox(self):
     self.BoundingBox = BBox.fromPoints(
         (self.Object1.GetConnectPoint(), self.Object2.GetConnectPoint()))
     if self._Canvas:
         self._Canvas.BoundingBoxDirty = True
Exemple #6
0
 def CalcBoundingBox(self):
     self.BoundingBox = BBox.fromPoints((self.Object1.GetConnectPoint(),
                                         self.Object2.GetConnectPoint()) )
     if self._Canvas:
         self._Canvas.BoundingBoxDirty = True