remove not implemented tab "point and shoot"

This commit is contained in:
2022-07-18 11:22:16 +02:00
parent af8a887f2f
commit c056f3f329
4 changed files with 13 additions and 56 deletions

View File

@@ -16,38 +16,6 @@ logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
class Retangulo(ROI):
"""
Rectangular ROI subclass with a single scale handle at the top-right corner.
============== =============================================================
**Arguments**
pos (length-2 sequence) The position of the ROI origin.
See ROI().
size (length-2 sequence) The size of the ROI. See ROI().
centered (bool) If True, scale handles affect the ROI relative to its
center, rather than its origin.
sideScalers (bool) If True, extra scale handles are added at the top and
right edges.
\**args All extra keyword arguments are passed to ROI()
============== =============================================================
"""
def __init__(self, pos, size, centered=False, sideScalers=False, **args):
ROI.__init__(self, pos, size, **args)
if centered:
center = [0.5, 0.5]
else:
center = [0, 0]
self.addScaleRotateHandle([0, 0.5], [1, 0.5])
self.addScaleHandle([1, 1], center)
if sideScalers:
self.addScaleHandle([1, 0.5], [center[0], 0.5])
self.addScaleHandle([0.5, 1], [0.5, center[1]])
class Grid(ROI):
"""a grid"""