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
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
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
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
def CalcBoundingBox(self): self.BoundingBox = BBox.fromPoints( (self.Object1.GetConnectPoint(), self.Object2.GetConnectPoint())) if self._Canvas: self._Canvas.BoundingBoxDirty = True
def CalcBoundingBox(self): self.BoundingBox = BBox.fromPoints((self.Object1.GetConnectPoint(), self.Object2.GetConnectPoint()) ) if self._Canvas: self._Canvas.BoundingBoxDirty = True