rotatecrop

The rotatecrop module provides a dialog box providing essential GUI elements for rotating (arbitrary angle) and cropping an image:

Reference

class plotpy.widgets.rotatecrop.RotateCropDialog(parent, wintitle=None, options=None, resize_to=None)[source]

Rotate & Crop Dialog

Rotate and crop a plotpy.image.TrImageItem plot item

class RenderFlags(QWidget.RenderFlags)

QWidget.RenderFlags(int) QWidget.RenderFlags()

RotateCropDialog.accept()
RotateCropDialog.acceptDrops() → bool
RotateCropDialog.accept_changes()

Computed rotated/cropped array and apply changes to item

RotateCropDialog.accepted

QDialog.accepted [signal]

RotateCropDialog.accessibleDescription() → str
RotateCropDialog.accessibleName() → str
RotateCropDialog.actions() → list-of-QAction
RotateCropDialog.activateWindow()
RotateCropDialog.activate_default_tool()

Activate default tool

RotateCropDialog.addAction(QAction)
RotateCropDialog.addActions(list-of-QAction)
RotateCropDialog.add_apply_button(layout)

Add the standard apply button

RotateCropDialog.add_buttons_to_layout(layout)

Add tool buttons to layout

RotateCropDialog.add_panel(panel)

Register a panel to the plot manager

Plot manager’s registration sequence is the following:
  1. add plots
  2. add panels
  3. add tools
RotateCropDialog.add_plot(plot, plot_id=<class 'plotpy.plot.DefaultPlotID'>)
Register a plot to the plot manager:
  • plot: plotpy.curve.CurvePlot or plotpy.image.ImagePlot object
  • plot_id (default id is the plot object’s id: id(plot)): unique ID identifying the plot (any Python object), this ID will be asked by the manager to access this plot later.
Plot manager’s registration sequence is the following:
  1. add plots
  2. add panels
  3. add tools
RotateCropDialog.add_reset_button(layout)

Add the standard reset button

RotateCropDialog.add_separator_tool(toolbar_id=None)

Register a separator tool to the plot manager: the separator tool is just a tool which insert a separator in the plot context menu

RotateCropDialog.add_tool(ToolKlass, *args, **kwargs)
Register a tool to the manager
  • ToolKlass: tool’s class (plotpy builtin tools are defined in module plotpy.tools)
  • args: arguments sent to the tool’s class
  • kwargs: keyword arguments sent to the tool’s class
Plot manager’s registration sequence is the following:
  1. add plots
  2. add panels
  3. add tools
RotateCropDialog.add_toolbar(toolbar, toolbar_id='default')
Add toolbar to the plot manager
toolbar: a QToolBar object toolbar_id: toolbar’s id (default id is string “default”)
RotateCropDialog.adjustSize()
RotateCropDialog.apply_transformation()

Apply transformation, e.g. crop or rotate

RotateCropDialog.autoFillBackground() → bool
RotateCropDialog.backgroundRole() → QPalette.ColorRole
RotateCropDialog.baseSize() → QSize
RotateCropDialog.blockSignals(bool) → bool
RotateCropDialog.childAt(QPoint) → QWidget

QWidget.childAt(int, int) -> QWidget

RotateCropDialog.children() → list-of-QObject
RotateCropDialog.childrenRect() → QRect
RotateCropDialog.childrenRegion() → QRegion
RotateCropDialog.clearFocus()
RotateCropDialog.clearMask()
RotateCropDialog.close() → bool
RotateCropDialog.closeEvent(QCloseEvent)
RotateCropDialog.colorCount() → int
RotateCropDialog.compute_transformation()

Compute transformation, return compute output array

RotateCropDialog.configure_panels()

Call all the registred panels ‘configure_panel’ methods to finalize the object construction (this allows to use tools registered to the same plot manager as the panel itself with breaking the registration sequence: “add plots, then panels, then tools”)

RotateCropDialog.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection) → bool

QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool

RotateCropDialog.contentsMargins() → QMargins
RotateCropDialog.contentsRect() → QRect
RotateCropDialog.contextMenuEvent(QContextMenuEvent)
RotateCropDialog.contextMenuPolicy() → Qt.ContextMenuPolicy
RotateCropDialog.create_action(title, triggered=None, toggled=None, shortcut=None, icon=None, tip=None, checkable=None, context=1, enabled=None)

Create a new QAction

RotateCropDialog.create_plot(options, row=0, column=0, rowspan=1, columnspan=1)

Create the plotting widget (which is an instance of class plotpy.plot.BaseImageWidget), add it to the dialog box main layout (plotpy.plot.CurveDialog.plot_layout) and then add the item list, contrast adjustment and X/Y axes cross section panels.

May be overriden to customize the plot layout (plotpy.plot.CurveDialog.plot_layout)

RotateCropDialog.cursor() → QCursor
RotateCropDialog.customContextMenuRequested

QWidget.customContextMenuRequested[QPoint] [signal]

RotateCropDialog.deleteLater()
RotateCropDialog.depth() → int
RotateCropDialog.destroyed

QObject.destroyed[QObject] [signal] QObject.destroyed [signal]

RotateCropDialog.devType() → int
RotateCropDialog.disconnect(QObject, SIGNAL(), QObject, SLOT()) → bool

QObject.disconnect(QObject, SIGNAL(), callable) -> bool

RotateCropDialog.done(int)
RotateCropDialog.dumpObjectInfo()
RotateCropDialog.dumpObjectTree()
RotateCropDialog.dynamicPropertyNames() → list-of-QByteArray
RotateCropDialog.effectiveWinId() → sip.voidptr
RotateCropDialog.emit(SIGNAL(), ...)
RotateCropDialog.ensurePolished()
RotateCropDialog.eventFilter(QObject, QEvent) → bool
RotateCropDialog.exec() → int
RotateCropDialog.exec_() → int
RotateCropDialog.extension() → QWidget
RotateCropDialog.find(sip.voidptr) → QWidget
RotateCropDialog.findChild(type, str name='') → QObject

QObject.findChild(tuple, str name=’‘) -> QObject

RotateCropDialog.findChildren(type, str name='') → list-of-QObject

QObject.findChildren(tuple, str name=’‘) -> list-of-QObject QObject.findChildren(type, QRegExp) -> list-of-QObject QObject.findChildren(tuple, QRegExp) -> list-of-QObject

RotateCropDialog.finished

QDialog.finished[int] [signal]

RotateCropDialog.focusPolicy() → Qt.FocusPolicy
RotateCropDialog.focusProxy() → QWidget
RotateCropDialog.focusWidget() → QWidget
RotateCropDialog.font() → QFont
RotateCropDialog.fontInfo() → QFontInfo
RotateCropDialog.fontMetrics() → QFontMetrics
RotateCropDialog.foregroundRole() → QPalette.ColorRole
RotateCropDialog.frameGeometry() → QRect
RotateCropDialog.frameSize() → QSize
RotateCropDialog.geometry() → QRect
RotateCropDialog.getContentsMargins() -> (int, int, int, int)
RotateCropDialog.get_active_plot()

Return the active plot

The active plot is the plot whose canvas has the focus otherwise it’s the “default” plot

RotateCropDialog.get_active_tool()

Return active tool

RotateCropDialog.get_context_menu(plot=None)

Return widget context menu – built using active tools

RotateCropDialog.get_contrast_panel()

Convenience function to get the contrast adjustment panel

Return None if the contrast adjustment panel has not been added to this manager

RotateCropDialog.get_default_plot()

Return default plot

The default plot is the plot on which tools and panels will act.

RotateCropDialog.get_default_tool()

Get default tool

RotateCropDialog.get_default_toolbar()

Return default toolbar

RotateCropDialog.get_itemlist_panel()

Convenience function to get the item list panel

Return None if the item list panel has not been added to this manager

RotateCropDialog.get_main()

Return the main (parent) widget

Note that for py:class:plotpy.plot.CurveWidget or plotpy.plot.ImageWidget objects, this method will return the widget itself because the plot manager is integrated to it.

RotateCropDialog.get_panel(panel_id)

Return panel from its ID Panel IDs are listed in module plotpy.panels

RotateCropDialog.get_plot(plot_id=<class 'plotpy.plot.DefaultPlotID'>)

Return plot associated to plot_id (if method is called without specifying the plot_id parameter, return the default plot)

RotateCropDialog.get_plots()

Return all registered plots

RotateCropDialog.get_tool(ToolKlass)

Return tool instance from its class

RotateCropDialog.get_toolbar(toolbar_id='default')
Return toolbar from its ID
toolbar_id: toolbar’s id (default id is string “default”)
RotateCropDialog.get_xcs_panel()

Convenience function to get the X-axis cross section panel

Return None if the X-axis cross section panel has not been added to this manager

RotateCropDialog.get_ycs_panel()

Convenience function to get the Y-axis cross section panel

Return None if the Y-axis cross section panel has not been added to this manager

RotateCropDialog.grabGesture(Qt.GestureType, Qt.GestureFlags flags=Qt.GestureFlags(0))
RotateCropDialog.grabKeyboard()
RotateCropDialog.grabMouse()

QWidget.grabMouse(QCursor)

RotateCropDialog.grabShortcut(QKeySequence, Qt.ShortcutContext context=Qt.WindowShortcut) → int
RotateCropDialog.graphicsEffect() → QGraphicsEffect
RotateCropDialog.graphicsProxyWidget() → QGraphicsProxyWidget
RotateCropDialog.hasFocus() → bool
RotateCropDialog.hasMouseTracking() → bool
RotateCropDialog.height() → int
RotateCropDialog.heightForWidth(int) → int
RotateCropDialog.heightMM() → int
RotateCropDialog.hide()
RotateCropDialog.inherits(str) → bool
RotateCropDialog.inputContext() → QInputContext
RotateCropDialog.inputMethodHints() → Qt.InputMethodHints
RotateCropDialog.inputMethodQuery(Qt.InputMethodQuery) → object
RotateCropDialog.insertAction(QAction, QAction)
RotateCropDialog.insertActions(QAction, list-of-QAction)
RotateCropDialog.installEventFilter(QObject)
RotateCropDialog.install_button_layout()

Reimplemented ImageDialog method

RotateCropDialog.isActiveWindow() → bool
RotateCropDialog.isAncestorOf(QWidget) → bool
RotateCropDialog.isEnabled() → bool
RotateCropDialog.isEnabledTo(QWidget) → bool
RotateCropDialog.isEnabledToTLW() → bool
RotateCropDialog.isFullScreen() → bool
RotateCropDialog.isHidden() → bool
RotateCropDialog.isLeftToRight() → bool
RotateCropDialog.isMaximized() → bool
RotateCropDialog.isMinimized() → bool
RotateCropDialog.isModal() → bool
RotateCropDialog.isRightToLeft() → bool
RotateCropDialog.isSizeGripEnabled() → bool
RotateCropDialog.isTopLevel() → bool
RotateCropDialog.isVisible() → bool
RotateCropDialog.isVisibleTo(QWidget) → bool
RotateCropDialog.isWidgetType() → bool
RotateCropDialog.isWindow() → bool
RotateCropDialog.isWindowModified() → bool
RotateCropDialog.keyPressEvent(QKeyEvent)
RotateCropDialog.keyboardGrabber() → QWidget
RotateCropDialog.killTimer(int)
RotateCropDialog.layout() → QLayout
RotateCropDialog.layoutDirection() → Qt.LayoutDirection
RotateCropDialog.locale() → QLocale
RotateCropDialog.logicalDpiX() → int
RotateCropDialog.logicalDpiY() → int
RotateCropDialog.lower()
RotateCropDialog.mapFrom(QWidget, QPoint) → QPoint
RotateCropDialog.mapFromGlobal(QPoint) → QPoint
RotateCropDialog.mapFromParent(QPoint) → QPoint
RotateCropDialog.mapTo(QWidget, QPoint) → QPoint
RotateCropDialog.mapToGlobal(QPoint) → QPoint
RotateCropDialog.mapToParent(QPoint) → QPoint
RotateCropDialog.mask() → QRegion
RotateCropDialog.maximumHeight() → int
RotateCropDialog.maximumSize() → QSize
RotateCropDialog.maximumWidth() → int
RotateCropDialog.metaObject() → QMetaObject
RotateCropDialog.minimumHeight() → int
RotateCropDialog.minimumSize() → QSize
RotateCropDialog.minimumSizeHint() → QSize
RotateCropDialog.minimumWidth() → int
RotateCropDialog.mouseGrabber() → QWidget
RotateCropDialog.move(QPoint)

QWidget.move(int, int)

RotateCropDialog.moveToThread(QThread)
RotateCropDialog.nativeParentWidget() → QWidget
RotateCropDialog.nextInFocusChain() → QWidget
RotateCropDialog.normalGeometry() → QRect
RotateCropDialog.numColors() → int
RotateCropDialog.objectName() → str
RotateCropDialog.open()
RotateCropDialog.orientation() → Qt.Orientation
RotateCropDialog.overrideWindowFlags(Qt.WindowFlags)
RotateCropDialog.overrideWindowState(Qt.WindowStates)
RotateCropDialog.paintEngine() → QPaintEngine
RotateCropDialog.paintingActive() → bool
RotateCropDialog.palette() → QPalette
RotateCropDialog.parent() → QObject
RotateCropDialog.parentWidget() → QWidget
RotateCropDialog.physicalDpiX() → int
RotateCropDialog.physicalDpiY() → int
RotateCropDialog.pos() → QPoint
RotateCropDialog.previousInFocusChain() → QWidget
RotateCropDialog.property(str) → object
RotateCropDialog.pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

RotateCropDialog.raise_()
RotateCropDialog.rect() → QRect
RotateCropDialog.register_all_curve_tools()

Register standard, curve-related and other tools

RotateCropDialog.register_all_image_tools()

Register standard, image-related and other tools

RotateCropDialog.register_curve_tools()

Register only curve-related tools

RotateCropDialog.register_image_tools()

Register only image-related tools

RotateCropDialog.register_other_tools()

Register other common tools

RotateCropDialog.register_standard_tools()

Registering basic tools for standard plot dialog –> top of the context-menu

RotateCropDialog.register_tools()

Register the plotting dialog box tools: the base implementation provides standard, image-related and other tools - i.e. calling this method is exactly the same as calling plotpy.plot.CurveDialog.register_all_image_tools()

This method may be overriden to provide a fully customized set of tools

RotateCropDialog.reject()
RotateCropDialog.reject_changes()

Restore item original transform settings

RotateCropDialog.rejected

QDialog.rejected [signal]

RotateCropDialog.releaseKeyboard()
RotateCropDialog.releaseMouse()
RotateCropDialog.releaseShortcut(int)
RotateCropDialog.removeAction(QAction)
RotateCropDialog.removeEventFilter(QObject)
RotateCropDialog.render(QPaintDevice, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)

QWidget.render(QPainter, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)

RotateCropDialog.repaint()

QWidget.repaint(int, int, int, int) QWidget.repaint(QRect) QWidget.repaint(QRegion)

RotateCropDialog.reset()

Reset crop/transform image settings

RotateCropDialog.reset_transformation()

Reset transformation

RotateCropDialog.resize(QSize)

QWidget.resize(int, int)

RotateCropDialog.resizeEvent(QResizeEvent)
RotateCropDialog.restoreGeometry(QByteArray) → bool
RotateCropDialog.restore_original_state()

Restore item original state

RotateCropDialog.result() → int
RotateCropDialog.saveGeometry() → QByteArray
RotateCropDialog.scroll(int, int)

QWidget.scroll(int, int, QRect)

RotateCropDialog.setAcceptDrops(bool)
RotateCropDialog.setAccessibleDescription(str)
RotateCropDialog.setAccessibleName(str)
RotateCropDialog.setAttribute(Qt.WidgetAttribute, bool on=True)
RotateCropDialog.setAutoFillBackground(bool)
RotateCropDialog.setBackgroundRole(QPalette.ColorRole)
RotateCropDialog.setBaseSize(int, int)

QWidget.setBaseSize(QSize)

RotateCropDialog.setContentsMargins(int, int, int, int)

QWidget.setContentsMargins(QMargins)

RotateCropDialog.setContextMenuPolicy(Qt.ContextMenuPolicy)
RotateCropDialog.setCursor(QCursor)
RotateCropDialog.setDisabled(bool)
RotateCropDialog.setEnabled(bool)
RotateCropDialog.setExtension(QWidget)
RotateCropDialog.setFixedHeight(int)
RotateCropDialog.setFixedSize(QSize)

QWidget.setFixedSize(int, int)

RotateCropDialog.setFixedWidth(int)
RotateCropDialog.setFocus()

QWidget.setFocus(Qt.FocusReason)

RotateCropDialog.setFocusPolicy(Qt.FocusPolicy)
RotateCropDialog.setFocusProxy(QWidget)
RotateCropDialog.setFont(QFont)
RotateCropDialog.setForegroundRole(QPalette.ColorRole)
RotateCropDialog.setGeometry(QRect)

QWidget.setGeometry(int, int, int, int)

RotateCropDialog.setGraphicsEffect(QGraphicsEffect)
RotateCropDialog.setHidden(bool)
RotateCropDialog.setInputContext(QInputContext)
RotateCropDialog.setInputMethodHints(Qt.InputMethodHints)
RotateCropDialog.setLayout(QLayout)
RotateCropDialog.setLayoutDirection(Qt.LayoutDirection)
RotateCropDialog.setLocale(QLocale)
RotateCropDialog.setMask(QBitmap)

QWidget.setMask(QRegion)

RotateCropDialog.setMaximumHeight(int)
RotateCropDialog.setMaximumSize(int, int)

QWidget.setMaximumSize(QSize)

RotateCropDialog.setMaximumWidth(int)
RotateCropDialog.setMinimumHeight(int)
RotateCropDialog.setMinimumSize(int, int)

QWidget.setMinimumSize(QSize)

RotateCropDialog.setMinimumWidth(int)
RotateCropDialog.setModal(bool)
RotateCropDialog.setMouseTracking(bool)
RotateCropDialog.setObjectName(str)
RotateCropDialog.setOrientation(Qt.Orientation)
RotateCropDialog.setPalette(QPalette)
RotateCropDialog.setParent(QWidget)

QWidget.setParent(QWidget, Qt.WindowFlags)

RotateCropDialog.setProperty(str, object) → bool
RotateCropDialog.setResult(int)
RotateCropDialog.setShortcutAutoRepeat(int, bool enabled=True)
RotateCropDialog.setShortcutEnabled(int, bool enabled=True)
RotateCropDialog.setShown(bool)
RotateCropDialog.setSizeGripEnabled(bool)
RotateCropDialog.setSizeIncrement(int, int)

QWidget.setSizeIncrement(QSize)

RotateCropDialog.setSizePolicy(QSizePolicy)

QWidget.setSizePolicy(QSizePolicy.Policy, QSizePolicy.Policy)

RotateCropDialog.setStatusTip(str)
RotateCropDialog.setStyle(QStyle)
RotateCropDialog.setStyleSheet(str)
RotateCropDialog.setTabOrder(QWidget, QWidget)
RotateCropDialog.setToolTip(str)
RotateCropDialog.setUpdatesEnabled(bool)
RotateCropDialog.setVisible(bool)
RotateCropDialog.setWhatsThis(str)
RotateCropDialog.setWindowFilePath(str)
RotateCropDialog.setWindowFlags(Qt.WindowFlags)
RotateCropDialog.setWindowIcon(QIcon)
RotateCropDialog.setWindowIconText(str)
RotateCropDialog.setWindowModality(Qt.WindowModality)
RotateCropDialog.setWindowModified(bool)
RotateCropDialog.setWindowOpacity(float)
RotateCropDialog.setWindowRole(str)
RotateCropDialog.setWindowState(Qt.WindowStates)
RotateCropDialog.setWindowTitle(str)
RotateCropDialog.set_active_tool(tool=None)

Set active tool (if tool argument is None, the active tool will be the default tool)

RotateCropDialog.set_contrast_range(zmin, zmax)

Convenience function to set the contrast adjustment panel range

This is strictly equivalent to the following:

# Here, *widget* is for example a CurveWidget instance
# (the same apply for CurvePlot, ImageWidget, ImagePlot or any 
#  class deriving from PlotManager)
widget.get_contrast_panel().set_range(zmin, zmax)
RotateCropDialog.set_default_plot(plot)

Set default plot

The default plot is the plot on which tools and panels will act.

RotateCropDialog.set_default_tool(tool)

Set default tool

RotateCropDialog.set_default_toolbar(toolbar)

Set default toolbar

RotateCropDialog.set_item(item)

Set associated item – must be a TrImageItem object

RotateCropDialog.show()
RotateCropDialog.showEvent(QShowEvent)
RotateCropDialog.showExtension(bool)
RotateCropDialog.showFullScreen()
RotateCropDialog.showMaximized()
RotateCropDialog.showMinimized()
RotateCropDialog.showNormal()
RotateCropDialog.show_crop_rect(state)

Show/hide cropping rectangle shape

RotateCropDialog.signalsBlocked() → bool
RotateCropDialog.size() → QSize
RotateCropDialog.sizeHint() → QSize
RotateCropDialog.sizeIncrement() → QSize
RotateCropDialog.sizePolicy() → QSizePolicy
RotateCropDialog.stackUnder(QWidget)
RotateCropDialog.startTimer(int) → int
RotateCropDialog.statusTip() → str
RotateCropDialog.style() → QStyle
RotateCropDialog.styleSheet() → str
RotateCropDialog.testAttribute(Qt.WidgetAttribute) → bool
RotateCropDialog.thread() → QThread
RotateCropDialog.toolTip() → str
RotateCropDialog.topLevelWidget() → QWidget
RotateCropDialog.tr(str, str disambiguation=None, int n=-1) → str
RotateCropDialog.trUtf8(str, str disambiguation=None, int n=-1) → str
RotateCropDialog.underMouse() → bool
RotateCropDialog.ungrabGesture(Qt.GestureType)
RotateCropDialog.unsetCursor()
RotateCropDialog.unsetLayoutDirection()
RotateCropDialog.unsetLocale()
RotateCropDialog.unset_item()

Unset the associated item, freeing memory

RotateCropDialog.update()

QWidget.update(QRect) QWidget.update(QRegion) QWidget.update(int, int, int, int)

RotateCropDialog.updateGeometry()
RotateCropDialog.update_cross_sections()

Convenience function to update the cross section panels at once

This is strictly equivalent to the following:

# Here, *widget* is for example a CurveWidget instance
# (the same apply for CurvePlot, ImageWidget, ImagePlot or any 
#  class deriving from PlotManager)
widget.get_xcs_panel().update_plot()
widget.get_ycs_panel().update_plot()
RotateCropDialog.update_tools_status(plot=None)

Update tools for current plot

RotateCropDialog.updatesEnabled() → bool
RotateCropDialog.visibleRegion() → QRegion
RotateCropDialog.whatsThis() → str
RotateCropDialog.width() → int
RotateCropDialog.widthMM() → int
RotateCropDialog.winId() → sip.voidptr
RotateCropDialog.window() → QWidget
RotateCropDialog.windowFilePath() → str
RotateCropDialog.windowFlags() → Qt.WindowFlags
RotateCropDialog.windowIcon() → QIcon
RotateCropDialog.windowIconText() → str
RotateCropDialog.windowModality() → Qt.WindowModality
RotateCropDialog.windowOpacity() → float
RotateCropDialog.windowRole() → str
RotateCropDialog.windowState() → Qt.WindowStates
RotateCropDialog.windowTitle() → str
RotateCropDialog.windowType() → Qt.WindowType
RotateCropDialog.x() → int
RotateCropDialog.y() → int
class plotpy.widgets.rotatecrop.RotateCropWidget(parent, options=None)[source]

Rotate & Crop Widget

Rotate and crop a plotpy.image.TrImageItem plot item

class RenderFlags(QWidget.RenderFlags)

QWidget.RenderFlags(int) QWidget.RenderFlags()

RotateCropWidget.acceptDrops() → bool
RotateCropWidget.accept_changes()

Computed rotated/cropped array and apply changes to item

RotateCropWidget.accessibleDescription() → str
RotateCropWidget.accessibleName() → str
RotateCropWidget.actionEvent(QActionEvent)
RotateCropWidget.actions() → list-of-QAction
RotateCropWidget.activateWindow()
RotateCropWidget.addAction(QAction)
RotateCropWidget.addActions(list-of-QAction)
RotateCropWidget.add_apply_button(layout)

Add the standard apply button

RotateCropWidget.add_buttons_to_layout(layout)

Add tool buttons to layout

RotateCropWidget.add_reset_button(layout)

Add the standard reset button

RotateCropWidget.adjustSize()
RotateCropWidget.apply_transformation()

Apply transformation, e.g. crop or rotate

RotateCropWidget.autoFillBackground() → bool
RotateCropWidget.backgroundRole() → QPalette.ColorRole
RotateCropWidget.baseSize() → QSize
RotateCropWidget.blockSignals(bool) → bool
RotateCropWidget.changeEvent(QEvent)
RotateCropWidget.childAt(QPoint) → QWidget

QWidget.childAt(int, int) -> QWidget

RotateCropWidget.children() → list-of-QObject
RotateCropWidget.childrenRect() → QRect
RotateCropWidget.childrenRegion() → QRegion
RotateCropWidget.clearFocus()
RotateCropWidget.clearMask()
RotateCropWidget.close() → bool
RotateCropWidget.closeEvent(QCloseEvent)
RotateCropWidget.colorCount() → int
RotateCropWidget.compute_transformation()

Compute transformation, return compute output array

RotateCropWidget.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection) → bool

QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool

RotateCropWidget.contentsMargins() → QMargins
RotateCropWidget.contentsRect() → QRect
RotateCropWidget.contextMenuEvent(QContextMenuEvent)
RotateCropWidget.contextMenuPolicy() → Qt.ContextMenuPolicy
RotateCropWidget.create(sip.voidptr window=None, bool initializeWindow=True, bool destroyOldWindow=True)
RotateCropWidget.cursor() → QCursor
RotateCropWidget.customContextMenuRequested

QWidget.customContextMenuRequested[QPoint] [signal]

RotateCropWidget.deleteLater()
RotateCropWidget.depth() → int
RotateCropWidget.destroy(bool destroyWindow=True, bool destroySubWindows=True)
RotateCropWidget.destroyed

QObject.destroyed[QObject] [signal] QObject.destroyed [signal]

RotateCropWidget.devType() → int
RotateCropWidget.disconnect(QObject, SIGNAL(), QObject, SLOT()) → bool

QObject.disconnect(QObject, SIGNAL(), callable) -> bool

RotateCropWidget.dragEnterEvent(QDragEnterEvent)
RotateCropWidget.dragLeaveEvent(QDragLeaveEvent)
RotateCropWidget.dragMoveEvent(QDragMoveEvent)
RotateCropWidget.dropEvent(QDropEvent)
RotateCropWidget.dumpObjectInfo()
RotateCropWidget.dumpObjectTree()
RotateCropWidget.dynamicPropertyNames() → list-of-QByteArray
RotateCropWidget.effectiveWinId() → sip.voidptr
RotateCropWidget.emit(SIGNAL(), ...)
RotateCropWidget.enabledChange(bool)
RotateCropWidget.ensurePolished()
RotateCropWidget.enterEvent(QEvent)
RotateCropWidget.event(QEvent) → bool
RotateCropWidget.eventFilter(QObject, QEvent) → bool
RotateCropWidget.find(sip.voidptr) → QWidget
RotateCropWidget.findChild(type, str name='') → QObject

QObject.findChild(tuple, str name=’‘) -> QObject

RotateCropWidget.findChildren(type, str name='') → list-of-QObject

QObject.findChildren(tuple, str name=’‘) -> list-of-QObject QObject.findChildren(type, QRegExp) -> list-of-QObject QObject.findChildren(tuple, QRegExp) -> list-of-QObject

RotateCropWidget.focusInEvent(QFocusEvent)
RotateCropWidget.focusNextChild() → bool
RotateCropWidget.focusNextPrevChild(bool) → bool
RotateCropWidget.focusOutEvent(QFocusEvent)
RotateCropWidget.focusPolicy() → Qt.FocusPolicy
RotateCropWidget.focusPreviousChild() → bool
RotateCropWidget.focusProxy() → QWidget
RotateCropWidget.focusWidget() → QWidget
RotateCropWidget.font() → QFont
RotateCropWidget.fontChange(QFont)
RotateCropWidget.fontInfo() → QFontInfo
RotateCropWidget.fontMetrics() → QFontMetrics
RotateCropWidget.foregroundRole() → QPalette.ColorRole
RotateCropWidget.frameGeometry() → QRect
RotateCropWidget.frameSize() → QSize
RotateCropWidget.geometry() → QRect
RotateCropWidget.getContentsMargins() -> (int, int, int, int)
RotateCropWidget.get_plot()

Required for BaseTransformMixin

RotateCropWidget.grabGesture(Qt.GestureType, Qt.GestureFlags flags=Qt.GestureFlags(0))
RotateCropWidget.grabKeyboard()
RotateCropWidget.grabMouse()

QWidget.grabMouse(QCursor)

RotateCropWidget.grabShortcut(QKeySequence, Qt.ShortcutContext context=Qt.WindowShortcut) → int
RotateCropWidget.graphicsEffect() → QGraphicsEffect
RotateCropWidget.graphicsProxyWidget() → QGraphicsProxyWidget
RotateCropWidget.hasFocus() → bool
RotateCropWidget.hasMouseTracking() → bool
RotateCropWidget.height() → int
RotateCropWidget.heightForWidth(int) → int
RotateCropWidget.heightMM() → int
RotateCropWidget.hide()
RotateCropWidget.hideEvent(QHideEvent)
RotateCropWidget.inherits(str) → bool
RotateCropWidget.inputContext() → QInputContext
RotateCropWidget.inputMethodEvent(QInputMethodEvent)
RotateCropWidget.inputMethodHints() → Qt.InputMethodHints
RotateCropWidget.inputMethodQuery(Qt.InputMethodQuery) → object
RotateCropWidget.insertAction(QAction, QAction)
RotateCropWidget.insertActions(QAction, list-of-QAction)
RotateCropWidget.installEventFilter(QObject)
RotateCropWidget.isActiveWindow() → bool
RotateCropWidget.isAncestorOf(QWidget) → bool
RotateCropWidget.isEnabled() → bool
RotateCropWidget.isEnabledTo(QWidget) → bool
RotateCropWidget.isEnabledToTLW() → bool
RotateCropWidget.isFullScreen() → bool
RotateCropWidget.isHidden() → bool
RotateCropWidget.isLeftToRight() → bool
RotateCropWidget.isMaximized() → bool
RotateCropWidget.isMinimized() → bool
RotateCropWidget.isModal() → bool
RotateCropWidget.isRightToLeft() → bool
RotateCropWidget.isTopLevel() → bool
RotateCropWidget.isVisible() → bool
RotateCropWidget.isVisibleTo(QWidget) → bool
RotateCropWidget.isWidgetType() → bool
RotateCropWidget.isWindow() → bool
RotateCropWidget.isWindowModified() → bool
RotateCropWidget.keyPressEvent(QKeyEvent)
RotateCropWidget.keyReleaseEvent(QKeyEvent)
RotateCropWidget.keyboardGrabber() → QWidget
RotateCropWidget.killTimer(int)
RotateCropWidget.languageChange()
RotateCropWidget.layout() → QLayout
RotateCropWidget.layoutDirection() → Qt.LayoutDirection
RotateCropWidget.leaveEvent(QEvent)
RotateCropWidget.locale() → QLocale
RotateCropWidget.logicalDpiX() → int
RotateCropWidget.logicalDpiY() → int
RotateCropWidget.lower()
RotateCropWidget.mapFrom(QWidget, QPoint) → QPoint
RotateCropWidget.mapFromGlobal(QPoint) → QPoint
RotateCropWidget.mapFromParent(QPoint) → QPoint
RotateCropWidget.mapTo(QWidget, QPoint) → QPoint
RotateCropWidget.mapToGlobal(QPoint) → QPoint
RotateCropWidget.mapToParent(QPoint) → QPoint
RotateCropWidget.mask() → QRegion
RotateCropWidget.maximumHeight() → int
RotateCropWidget.maximumSize() → QSize
RotateCropWidget.maximumWidth() → int
RotateCropWidget.metaObject() → QMetaObject
RotateCropWidget.metric(QPaintDevice.PaintDeviceMetric) → int
RotateCropWidget.minimumHeight() → int
RotateCropWidget.minimumSize() → QSize
RotateCropWidget.minimumSizeHint() → QSize
RotateCropWidget.minimumWidth() → int
RotateCropWidget.mouseDoubleClickEvent(QMouseEvent)
RotateCropWidget.mouseGrabber() → QWidget
RotateCropWidget.mouseMoveEvent(QMouseEvent)
RotateCropWidget.mousePressEvent(QMouseEvent)
RotateCropWidget.mouseReleaseEvent(QMouseEvent)
RotateCropWidget.move(QPoint)

QWidget.move(int, int)

RotateCropWidget.moveEvent(QMoveEvent)
RotateCropWidget.moveToThread(QThread)
RotateCropWidget.nativeParentWidget() → QWidget
RotateCropWidget.nextInFocusChain() → QWidget
RotateCropWidget.normalGeometry() → QRect
RotateCropWidget.numColors() → int
RotateCropWidget.objectName() → str
RotateCropWidget.overrideWindowFlags(Qt.WindowFlags)
RotateCropWidget.overrideWindowState(Qt.WindowStates)
RotateCropWidget.paintEngine() → QPaintEngine
RotateCropWidget.paintEvent(QPaintEvent)
RotateCropWidget.paintingActive() → bool
RotateCropWidget.palette() → QPalette
RotateCropWidget.paletteChange(QPalette)
RotateCropWidget.parent() → QObject
RotateCropWidget.parentWidget() → QWidget
RotateCropWidget.physicalDpiX() → int
RotateCropWidget.physicalDpiY() → int
RotateCropWidget.pos() → QPoint
RotateCropWidget.previousInFocusChain() → QWidget
RotateCropWidget.property(str) → object
RotateCropWidget.pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

RotateCropWidget.raise_()
RotateCropWidget.rect() → QRect
RotateCropWidget.reject_changes()

Restore item original transform settings

RotateCropWidget.releaseKeyboard()
RotateCropWidget.releaseMouse()
RotateCropWidget.releaseShortcut(int)
RotateCropWidget.removeAction(QAction)
RotateCropWidget.removeEventFilter(QObject)
RotateCropWidget.render(QPaintDevice, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)

QWidget.render(QPainter, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)

RotateCropWidget.repaint()

QWidget.repaint(int, int, int, int) QWidget.repaint(QRect) QWidget.repaint(QRegion)

RotateCropWidget.reset()

Reset crop/transform image settings

RotateCropWidget.resetInputContext()
RotateCropWidget.reset_transformation()

Reset transformation

RotateCropWidget.resize(QSize)

QWidget.resize(int, int)

RotateCropWidget.resizeEvent(QResizeEvent)
RotateCropWidget.restoreGeometry(QByteArray) → bool
RotateCropWidget.restore_original_state()

Restore item original state

RotateCropWidget.saveGeometry() → QByteArray
RotateCropWidget.scroll(int, int)

QWidget.scroll(int, int, QRect)

RotateCropWidget.setAcceptDrops(bool)
RotateCropWidget.setAccessibleDescription(str)
RotateCropWidget.setAccessibleName(str)
RotateCropWidget.setAttribute(Qt.WidgetAttribute, bool on=True)
RotateCropWidget.setAutoFillBackground(bool)
RotateCropWidget.setBackgroundRole(QPalette.ColorRole)
RotateCropWidget.setBaseSize(int, int)

QWidget.setBaseSize(QSize)

RotateCropWidget.setContentsMargins(int, int, int, int)

QWidget.setContentsMargins(QMargins)

RotateCropWidget.setContextMenuPolicy(Qt.ContextMenuPolicy)
RotateCropWidget.setCursor(QCursor)
RotateCropWidget.setDisabled(bool)
RotateCropWidget.setEnabled(bool)
RotateCropWidget.setFixedHeight(int)
RotateCropWidget.setFixedSize(QSize)

QWidget.setFixedSize(int, int)

RotateCropWidget.setFixedWidth(int)
RotateCropWidget.setFocus()

QWidget.setFocus(Qt.FocusReason)

RotateCropWidget.setFocusPolicy(Qt.FocusPolicy)
RotateCropWidget.setFocusProxy(QWidget)
RotateCropWidget.setFont(QFont)
RotateCropWidget.setForegroundRole(QPalette.ColorRole)
RotateCropWidget.setGeometry(QRect)

QWidget.setGeometry(int, int, int, int)

RotateCropWidget.setGraphicsEffect(QGraphicsEffect)
RotateCropWidget.setHidden(bool)
RotateCropWidget.setInputContext(QInputContext)
RotateCropWidget.setInputMethodHints(Qt.InputMethodHints)
RotateCropWidget.setLayout(QLayout)
RotateCropWidget.setLayoutDirection(Qt.LayoutDirection)
RotateCropWidget.setLocale(QLocale)
RotateCropWidget.setMask(QBitmap)

QWidget.setMask(QRegion)

RotateCropWidget.setMaximumHeight(int)
RotateCropWidget.setMaximumSize(int, int)

QWidget.setMaximumSize(QSize)

RotateCropWidget.setMaximumWidth(int)
RotateCropWidget.setMinimumHeight(int)
RotateCropWidget.setMinimumSize(int, int)

QWidget.setMinimumSize(QSize)

RotateCropWidget.setMinimumWidth(int)
RotateCropWidget.setMouseTracking(bool)
RotateCropWidget.setObjectName(str)
RotateCropWidget.setPalette(QPalette)
RotateCropWidget.setParent(QWidget)

QWidget.setParent(QWidget, Qt.WindowFlags)

RotateCropWidget.setProperty(str, object) → bool
RotateCropWidget.setShortcutAutoRepeat(int, bool enabled=True)
RotateCropWidget.setShortcutEnabled(int, bool enabled=True)
RotateCropWidget.setShown(bool)
RotateCropWidget.setSizeIncrement(int, int)

QWidget.setSizeIncrement(QSize)

RotateCropWidget.setSizePolicy(QSizePolicy)

QWidget.setSizePolicy(QSizePolicy.Policy, QSizePolicy.Policy)

RotateCropWidget.setStatusTip(str)
RotateCropWidget.setStyle(QStyle)
RotateCropWidget.setStyleSheet(str)
RotateCropWidget.setTabOrder(QWidget, QWidget)
RotateCropWidget.setToolTip(str)
RotateCropWidget.setUpdatesEnabled(bool)
RotateCropWidget.setVisible(bool)
RotateCropWidget.setWhatsThis(str)
RotateCropWidget.setWindowFilePath(str)
RotateCropWidget.setWindowFlags(Qt.WindowFlags)
RotateCropWidget.setWindowIcon(QIcon)
RotateCropWidget.setWindowIconText(str)
RotateCropWidget.setWindowModality(Qt.WindowModality)
RotateCropWidget.setWindowModified(bool)
RotateCropWidget.setWindowOpacity(float)
RotateCropWidget.setWindowRole(str)
RotateCropWidget.setWindowState(Qt.WindowStates)
RotateCropWidget.setWindowTitle(str)
RotateCropWidget.set_item(item)

Set associated item – must be a TrImageItem object

RotateCropWidget.show()
RotateCropWidget.showEvent(QShowEvent)
RotateCropWidget.showFullScreen()
RotateCropWidget.showMaximized()
RotateCropWidget.showMinimized()
RotateCropWidget.showNormal()
RotateCropWidget.show_crop_rect(state)

Show/hide cropping rectangle shape

RotateCropWidget.signalsBlocked() → bool
RotateCropWidget.size() → QSize
RotateCropWidget.sizeHint() → QSize
RotateCropWidget.sizeIncrement() → QSize
RotateCropWidget.sizePolicy() → QSizePolicy
RotateCropWidget.stackUnder(QWidget)
RotateCropWidget.startTimer(int) → int
RotateCropWidget.statusTip() → str
RotateCropWidget.style() → QStyle
RotateCropWidget.styleSheet() → str
RotateCropWidget.tabletEvent(QTabletEvent)
RotateCropWidget.testAttribute(Qt.WidgetAttribute) → bool
RotateCropWidget.thread() → QThread
RotateCropWidget.toolTip() → str
RotateCropWidget.topLevelWidget() → QWidget
RotateCropWidget.tr(str, str disambiguation=None, int n=-1) → str
RotateCropWidget.trUtf8(str, str disambiguation=None, int n=-1) → str
RotateCropWidget.underMouse() → bool
RotateCropWidget.ungrabGesture(Qt.GestureType)
RotateCropWidget.unsetCursor()
RotateCropWidget.unsetLayoutDirection()
RotateCropWidget.unsetLocale()
RotateCropWidget.unset_item()

Unset the associated item, freeing memory

RotateCropWidget.update()

QWidget.update(QRect) QWidget.update(QRegion) QWidget.update(int, int, int, int)

RotateCropWidget.updateGeometry()
RotateCropWidget.updateMicroFocus()
RotateCropWidget.updatesEnabled() → bool
RotateCropWidget.visibleRegion() → QRegion
RotateCropWidget.whatsThis() → str
RotateCropWidget.wheelEvent(QWheelEvent)
RotateCropWidget.width() → int
RotateCropWidget.widthMM() → int
RotateCropWidget.winEvent(MSG) -> (bool, int)
RotateCropWidget.winId() → sip.voidptr
RotateCropWidget.window() → QWidget
RotateCropWidget.windowActivationChange(bool)
RotateCropWidget.windowFilePath() → str
RotateCropWidget.windowFlags() → Qt.WindowFlags
RotateCropWidget.windowIcon() → QIcon
RotateCropWidget.windowIconText() → str
RotateCropWidget.windowModality() → Qt.WindowModality
RotateCropWidget.windowOpacity() → float
RotateCropWidget.windowRole() → str
RotateCropWidget.windowState() → Qt.WindowStates
RotateCropWidget.windowTitle() → str
RotateCropWidget.windowType() → Qt.WindowType
RotateCropWidget.x() → int
RotateCropWidget.y() → int