Beispiel #1
0
 def get_edit_points(self, viewer):
     x1, y1, x2, y2 = self.get_coords()
     return [MovePoint(*self.get_center_pt()),    # location
             Point(x2, (y1 + y2) / 2.),   # width scale
             Point((x1 + x2) / 2., y2),   # height scale
             Point(x2, y2),               # both scale
             ]
Beispiel #2
0
 def get_edit_points(self, viewer):
     points = (
         (self.x, self.y),
         self.crdmap.offset_pt((self.x, self.y), (self.radius, 0)),
         self.crdmap.offset_pt((self.x, self.y),
                               (self.radius + self.width, 0)),
     )
     points = self.get_data_points(points=points)
     return [
         MovePoint(*points[0]),
         ScalePoint(*points[1]),
         Point(*points[2])
     ]
Beispiel #3
0
 def get_edit_points(self, viewer):
     c_pt, n_pt, e_pt = self.get_points()
     return [MovePoint(*c_pt), ScalePoint(*n_pt), ScalePoint(*e_pt)]
Beispiel #4
0
 def get_edit_points(self, viewer):
     return [MovePoint(*self.get_center_pt())]