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):
     move_pt, scale_pt, rotate_pt = self.get_move_scale_rotate_pts(viewer)
     points = self.get_data_points()
     return [
         move_pt,
         Point(*points[0]),
         Point(*points[1]),
         scale_pt,
         rotate_pt,
     ]
Beispiel #3
0
    def get_edit_points(self, viewer):
        move_pt, scale_pt, rotate_pt = self.get_move_scale_rotate_pts(viewer)

        points = (
            self.crdmap.offset_pt((self.x, self.y), (self.xradius, 0)),
            self.crdmap.offset_pt((self.x, self.y), (0, self.yradius)),
            self.crdmap.offset_pt((self.x, self.y),
                                  (self.xradius, self.yradius)),
        )
        points = self.get_data_points(points=points)
        return [
            move_pt,  # location
            Point(*points[0]),  # adj xradius
            Point(*points[1]),  # adj yradius
            Point(*points[2]),  # adj both
            scale_pt,
            rotate_pt,
        ]
Beispiel #4
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])
     ]