guiqwt.cross_section¶
- The cross_section module provides cross section related objects:
guiqwt.cross_section.XCrossSection
: the X-axis cross-section panelguiqwt.cross_section.YCrossSection
: the Y-axis cross-section panel- and other related objects which are exclusively used by the cross-section panels
Example¶
Simple cross-section demo:
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 CEA
# Pierre Raybaut
# Licensed under the terms of the CECILL License
# (see guiqwt/__init__.py for details)
"""Renders a cross section chosen by a cross marker"""
SHOW = True # Show test in GUI-based test launcher
import os.path as osp, numpy as np
from guiqwt.plot import ImageDialog
from guiqwt.builder import make
def create_window():
win = ImageDialog(edit=False, toolbar=True, wintitle="Cross sections test",
options=dict(show_xsection=True, show_ysection=True,
show_itemlist=True))
win.resize(800, 600)
return win
def test():
"""Test"""
# -- Create QApplication
import guidata
_app = guidata.qapplication()
# --
filename = osp.join(osp.dirname(__file__), "brain.png")
win = create_window()
image = make.image(filename=filename, colormap="bone")
data2 = np.array(image.data.T[200:], copy=True)
image2 = make.image(data2, title="Modified", alpha_mask=True)
plot = win.get_plot()
plot.add_item(image)
plot.add_item(image2, z=1)
win.exec_()
if __name__ == "__main__":
test()
Reference¶
-
class
guiqwt.cross_section.
XCrossSection
(parent=None)[source]¶ X-axis cross section widget
-
CrossSectionPlotKlass
¶ alias of
XCrossSectionPlot
-
class
RenderFlags
(QWidget.RenderFlags)¶ QWidget.RenderFlags(int) QWidget.RenderFlags()
-
XCrossSection.
acceptDrops
(self) → bool¶
-
XCrossSection.
accessibleDescription
(self) → object¶
-
XCrossSection.
accessibleName
(self) → object¶
-
XCrossSection.
actionEvent
(self, QActionEvent)¶
-
XCrossSection.
actions
(self) → object¶
-
XCrossSection.
activateWindow
(self)¶
-
XCrossSection.
addAction
(self, QAction)¶
-
XCrossSection.
addActions
(self, object)¶
-
XCrossSection.
adjustSize
(self)¶
-
XCrossSection.
autoFillBackground
(self) → bool¶
-
XCrossSection.
backgroundRole
(self) → QPalette.ColorRole¶
-
XCrossSection.
baseSize
(self) → QSize¶
-
XCrossSection.
blockSignals
(self, bool) → bool¶
-
XCrossSection.
changeEvent
(self, QEvent)¶
-
XCrossSection.
childAt
(self, QPoint) → QWidget¶ childAt(self, int, int) -> QWidget
-
XCrossSection.
childEvent
(self, QChildEvent)¶
-
XCrossSection.
children
(self) → object¶
-
XCrossSection.
childrenRect
(self) → QRect¶
-
XCrossSection.
childrenRegion
(self) → QRegion¶
-
XCrossSection.
clearFocus
(self)¶
-
XCrossSection.
clearMask
(self)¶
-
XCrossSection.
close
(self) → bool¶
-
XCrossSection.
colorCount
(self) → int¶
-
XCrossSection.
configure_panel
()¶ Configure panel
-
XCrossSection.
connect
(QObject, QT_SIGNAL, QObject, QT_SLOT_QT_SIGNAL, Qt.ConnectionType = Qt.AutoConnection) → object¶ connect(QObject, QT_SIGNAL, Callable[..., None], Qt.ConnectionType = Qt.AutoConnection) -> object connect(self, QObject, QT_SIGNAL, QT_SLOT_QT_SIGNAL, Qt.ConnectionType = Qt.AutoConnection) -> object
-
XCrossSection.
connectNotify
(self, QT_SIGNAL)¶
-
XCrossSection.
contentsMargins
(self) → QMargins¶
-
XCrossSection.
contentsRect
(self) → QRect¶
-
XCrossSection.
contextMenuEvent
(self, QContextMenuEvent)¶
-
XCrossSection.
contextMenuPolicy
(self) → Qt.ContextMenuPolicy¶
-
XCrossSection.
create
(self, window: int = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
-
XCrossSection.
create_dockwidget
(title)¶ Add to parent QMainWindow as a dock widget
-
XCrossSection.
cs_curve_has_changed
(curve)¶ Cross section curve has just changed
-
XCrossSection.
cursor
(self) → QCursor¶
-
XCrossSection.
customContextMenuRequested
¶ customContextMenuRequested(self, QPoint) [signal]
-
XCrossSection.
customEvent
(self, QEvent)¶
-
XCrossSection.
deleteLater
(self)¶
-
XCrossSection.
depth
(self) → int¶
-
XCrossSection.
destroy
(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
-
XCrossSection.
destroyed
¶ destroyed(self, QObject = None) [signal] destroyed(self) [signal]
-
XCrossSection.
devType
(self) → int¶
-
XCrossSection.
disconnect
(QObject, QT_SIGNAL, QObject, QT_SLOT_QT_SIGNAL) → object¶ disconnect(QObject, QT_SIGNAL, Callable[..., None]) -> object
-
XCrossSection.
disconnectNotify
(self, QT_SIGNAL)¶
-
XCrossSection.
dragEnterEvent
(self, QDragEnterEvent)¶
-
XCrossSection.
dragLeaveEvent
(self, QDragLeaveEvent)¶
-
XCrossSection.
dragMoveEvent
(self, QDragMoveEvent)¶
-
XCrossSection.
dropEvent
(self, QDropEvent)¶
-
XCrossSection.
dumpObjectInfo
(self)¶
-
XCrossSection.
dumpObjectTree
(self)¶
-
XCrossSection.
dynamicPropertyNames
(self) → object¶
-
XCrossSection.
effectiveWinId
(self) → int¶
-
XCrossSection.
emit
(self, QT_SIGNAL, *)¶
-
XCrossSection.
enabledChange
(self, bool)¶
-
XCrossSection.
ensurePolished
(self)¶
-
XCrossSection.
enterEvent
(self, QEvent)¶
-
XCrossSection.
event
(self, QEvent) → bool¶
-
XCrossSection.
eventFilter
(self, QObject, QEvent) → bool¶
-
XCrossSection.
find
(int) → QWidget¶
-
XCrossSection.
findChild
(self, type, name: object = '') → object¶ findChild(self, Tuple, name: object = ‘’) -> object
-
XCrossSection.
findChildren
(self, type, name: object = '') → List¶ findChildren(self, Tuple, name: object = ‘’) -> List findChildren(self, type, QRegExp) -> List findChildren(self, Tuple, QRegExp) -> List
-
XCrossSection.
focusInEvent
(self, QFocusEvent)¶
-
XCrossSection.
focusNextChild
(self) → bool¶
-
XCrossSection.
focusNextPrevChild
(self, bool) → bool¶
-
XCrossSection.
focusOutEvent
(self, QFocusEvent)¶
-
XCrossSection.
focusPolicy
(self) → Qt.FocusPolicy¶
-
XCrossSection.
focusPreviousChild
(self) → bool¶
-
XCrossSection.
focusProxy
(self) → QWidget¶
-
XCrossSection.
focusWidget
(self) → QWidget¶
-
XCrossSection.
font
(self) → QFont¶
-
XCrossSection.
fontChange
(self, QFont)¶
-
XCrossSection.
fontInfo
(self) → QFontInfo¶
-
XCrossSection.
fontMetrics
(self) → QFontMetrics¶
-
XCrossSection.
foregroundRole
(self) → QPalette.ColorRole¶
-
XCrossSection.
frameGeometry
(self) → QRect¶
-
XCrossSection.
frameSize
(self) → QSize¶
-
XCrossSection.
geometry
(self) → QRect¶
-
XCrossSection.
getContentsMargins
(self) → Tuple[int, int, int, int]¶
-
XCrossSection.
grabGesture
(self, Qt.GestureType, flags: Qt.GestureFlags = Qt.GestureFlags(0))¶
-
XCrossSection.
grabKeyboard
(self)¶
-
XCrossSection.
grabMouse
(self)¶ grabMouse(self, QCursor)
-
XCrossSection.
grabShortcut
(self, QKeySequence, context: Qt.ShortcutContext = Qt.WindowShortcut) → int¶
-
XCrossSection.
graphicsEffect
(self) → QGraphicsEffect¶
-
XCrossSection.
graphicsProxyWidget
(self) → QGraphicsProxyWidget¶
-
XCrossSection.
handle
(self) → int¶
-
XCrossSection.
hasFocus
(self) → bool¶
-
XCrossSection.
hasMouseTracking
(self) → bool¶
-
XCrossSection.
height
(self) → int¶
-
XCrossSection.
heightForWidth
(self, int) → int¶
-
XCrossSection.
heightMM
(self) → int¶
-
XCrossSection.
hide
(self)¶
-
XCrossSection.
inherits
(self, str) → bool¶
-
XCrossSection.
inputContext
(self) → QInputContext¶
-
XCrossSection.
inputMethodEvent
(self, QInputMethodEvent)¶
-
XCrossSection.
inputMethodHints
(self) → Qt.InputMethodHints¶
-
XCrossSection.
inputMethodQuery
(self, Qt.InputMethodQuery) → object¶
-
XCrossSection.
insertAction
(self, QAction, QAction)¶
-
XCrossSection.
insertActions
(self, QAction, object)¶
-
XCrossSection.
installEventFilter
(self, QObject)¶
-
XCrossSection.
isActiveWindow
(self) → bool¶
-
XCrossSection.
isAncestorOf
(self, QWidget) → bool¶
-
XCrossSection.
isEnabled
(self) → bool¶
-
XCrossSection.
isEnabledTo
(self, QWidget) → bool¶
-
XCrossSection.
isEnabledToTLW
(self) → bool¶
-
XCrossSection.
isFullScreen
(self) → bool¶
-
XCrossSection.
isHidden
(self) → bool¶
-
XCrossSection.
isLeftToRight
(self) → bool¶
-
XCrossSection.
isMaximized
(self) → bool¶
-
XCrossSection.
isMinimized
(self) → bool¶
-
XCrossSection.
isModal
(self) → bool¶
-
XCrossSection.
isRightToLeft
(self) → bool¶
-
XCrossSection.
isTopLevel
(self) → bool¶
-
XCrossSection.
isVisible
(self) → bool¶
-
XCrossSection.
isVisibleTo
(self, QWidget) → bool¶
-
XCrossSection.
isWidgetType
(self) → bool¶
-
XCrossSection.
isWindow
(self) → bool¶
-
XCrossSection.
isWindowModified
(self) → bool¶
-
XCrossSection.
keyPressEvent
(self, QKeyEvent)¶
-
XCrossSection.
keyReleaseEvent
(self, QKeyEvent)¶
-
XCrossSection.
keyboardGrabber
() → QWidget¶
-
XCrossSection.
killTimer
(self, int)¶
-
XCrossSection.
languageChange
(self)¶
-
XCrossSection.
layout
(self) → QLayout¶
-
XCrossSection.
layoutDirection
(self) → Qt.LayoutDirection¶
-
XCrossSection.
leaveEvent
(self, QEvent)¶
-
XCrossSection.
locale
(self) → QLocale¶
-
XCrossSection.
logicalDpiX
(self) → int¶
-
XCrossSection.
logicalDpiY
(self) → int¶
-
XCrossSection.
lower
(self)¶
-
XCrossSection.
mapFrom
(self, QWidget, QPoint) → QPoint¶
-
XCrossSection.
mapFromGlobal
(self, QPoint) → QPoint¶
-
XCrossSection.
mapFromParent
(self, QPoint) → QPoint¶
-
XCrossSection.
mapTo
(self, QWidget, QPoint) → QPoint¶
-
XCrossSection.
mapToGlobal
(self, QPoint) → QPoint¶
-
XCrossSection.
mapToParent
(self, QPoint) → QPoint¶
-
XCrossSection.
mask
(self) → QRegion¶
-
XCrossSection.
maximumHeight
(self) → int¶
-
XCrossSection.
maximumSize
(self) → QSize¶
-
XCrossSection.
maximumWidth
(self) → int¶
-
XCrossSection.
metaObject
(self) → QMetaObject¶
-
XCrossSection.
metric
(self, QPaintDevice.PaintDeviceMetric) → int¶
-
XCrossSection.
minimumHeight
(self) → int¶
-
XCrossSection.
minimumSize
(self) → QSize¶
-
XCrossSection.
minimumSizeHint
(self) → QSize¶
-
XCrossSection.
minimumWidth
(self) → int¶
-
XCrossSection.
mouseDoubleClickEvent
(self, QMouseEvent)¶
-
XCrossSection.
mouseGrabber
() → QWidget¶
-
XCrossSection.
mouseMoveEvent
(self, QMouseEvent)¶
-
XCrossSection.
mousePressEvent
(self, QMouseEvent)¶
-
XCrossSection.
mouseReleaseEvent
(self, QMouseEvent)¶
-
XCrossSection.
move
(self, QPoint)¶ move(self, int, int)
-
XCrossSection.
moveEvent
(self, QMoveEvent)¶
-
XCrossSection.
moveToThread
(self, QThread)¶
-
XCrossSection.
nativeParentWidget
(self) → QWidget¶
-
XCrossSection.
nextInFocusChain
(self) → QWidget¶
-
XCrossSection.
normalGeometry
(self) → QRect¶
-
XCrossSection.
numColors
(self) → int¶
-
XCrossSection.
objectName
(self) → object¶
-
XCrossSection.
overrideWindowFlags
(self, Qt.WindowFlags)¶
-
XCrossSection.
overrideWindowState
(self, Qt.WindowStates)¶
-
XCrossSection.
paintEngine
(self) → QPaintEngine¶
-
XCrossSection.
paintEvent
(self, QPaintEvent)¶
-
XCrossSection.
paintingActive
(self) → bool¶
-
XCrossSection.
palette
(self) → QPalette¶
-
XCrossSection.
paletteChange
(self, QPalette)¶
-
XCrossSection.
parent
(self) → QObject¶
-
XCrossSection.
parentWidget
(self) → QWidget¶
-
XCrossSection.
physicalDpiX
(self) → int¶
-
XCrossSection.
physicalDpiY
(self) → int¶
-
XCrossSection.
pos
(self) → QPoint¶
-
XCrossSection.
previousInFocusChain
(self) → QWidget¶
-
XCrossSection.
property
(self, str) → object¶
-
XCrossSection.
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.
-
XCrossSection.
raise_
(self)¶
-
XCrossSection.
receivers
(self, QT_SIGNAL) → int¶
-
XCrossSection.
rect
(self) → QRect¶
-
XCrossSection.
register_panel
(manager)¶ Register panel to plot manager
-
XCrossSection.
releaseKeyboard
(self)¶
-
XCrossSection.
releaseMouse
(self)¶
-
XCrossSection.
releaseShortcut
(self, int)¶
-
XCrossSection.
removeAction
(self, QAction)¶
-
XCrossSection.
removeEventFilter
(self, QObject)¶
-
XCrossSection.
render
(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags = QWidget.DrawWindowBackground|QWidget.DrawChildren)¶ render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags = QWidget.DrawWindowBackground|QWidget.DrawChildren)
-
XCrossSection.
repaint
(self)¶ repaint(self, int, int, int, int) repaint(self, QRect) repaint(self, QRegion)
-
XCrossSection.
resetInputContext
(self)¶
-
XCrossSection.
resize
(self, QSize)¶ resize(self, int, int)
-
XCrossSection.
resizeEvent
(self, QResizeEvent)¶
-
XCrossSection.
restoreGeometry
(self, QByteArray) → bool¶
-
XCrossSection.
saveGeometry
(self) → QByteArray¶
-
XCrossSection.
scroll
(self, int, int)¶ scroll(self, int, int, QRect)
-
XCrossSection.
sender
(self) → QObject¶
-
XCrossSection.
senderSignalIndex
(self) → int¶
-
XCrossSection.
setAcceptDrops
(self, bool)¶
-
XCrossSection.
setAccessibleDescription
(self, object)¶
-
XCrossSection.
setAccessibleName
(self, object)¶
-
XCrossSection.
setAttribute
(self, Qt.WidgetAttribute, on: bool = True)¶
-
XCrossSection.
setAutoFillBackground
(self, bool)¶
-
XCrossSection.
setBackgroundRole
(self, QPalette.ColorRole)¶
-
XCrossSection.
setBaseSize
(self, int, int)¶ setBaseSize(self, QSize)
-
XCrossSection.
setContentsMargins
(self, int, int, int, int)¶ setContentsMargins(self, QMargins)
-
XCrossSection.
setContextMenuPolicy
(self, Qt.ContextMenuPolicy)¶
-
XCrossSection.
setCursor
(self, QCursor)¶
-
XCrossSection.
setDisabled
(self, bool)¶
-
XCrossSection.
setEnabled
(self, bool)¶
-
XCrossSection.
setFixedHeight
(self, int)¶
-
XCrossSection.
setFixedSize
(self, QSize)¶ setFixedSize(self, int, int)
-
XCrossSection.
setFixedWidth
(self, int)¶
-
XCrossSection.
setFocus
(self)¶ setFocus(self, Qt.FocusReason)
-
XCrossSection.
setFocusPolicy
(self, Qt.FocusPolicy)¶
-
XCrossSection.
setFocusProxy
(self, QWidget)¶
-
XCrossSection.
setFont
(self, QFont)¶
-
XCrossSection.
setForegroundRole
(self, QPalette.ColorRole)¶
-
XCrossSection.
setGeometry
(self, QRect)¶ setGeometry(self, int, int, int, int)
-
XCrossSection.
setGraphicsEffect
(self, QGraphicsEffect)¶
-
XCrossSection.
setHidden
(self, bool)¶
-
XCrossSection.
setInputContext
(self, QInputContext)¶
-
XCrossSection.
setInputMethodHints
(self, Qt.InputMethodHints)¶
-
XCrossSection.
setLayout
(self, QLayout)¶
-
XCrossSection.
setLayoutDirection
(self, Qt.LayoutDirection)¶
-
XCrossSection.
setLocale
(self, QLocale)¶
-
XCrossSection.
setMask
(self, QBitmap)¶ setMask(self, QRegion)
-
XCrossSection.
setMaximumHeight
(self, int)¶
-
XCrossSection.
setMaximumSize
(self, int, int)¶ setMaximumSize(self, QSize)
-
XCrossSection.
setMaximumWidth
(self, int)¶
-
XCrossSection.
setMinimumHeight
(self, int)¶
-
XCrossSection.
setMinimumSize
(self, int, int)¶ setMinimumSize(self, QSize)
-
XCrossSection.
setMinimumWidth
(self, int)¶
-
XCrossSection.
setMouseTracking
(self, bool)¶
-
XCrossSection.
setObjectName
(self, object)¶
-
XCrossSection.
setPalette
(self, QPalette)¶
-
XCrossSection.
setParent
(self, QWidget)¶ setParent(self, QWidget, Qt.WindowFlags)
-
XCrossSection.
setProperty
(self, str, object) → bool¶
-
XCrossSection.
setShortcutAutoRepeat
(self, int, enabled: bool = True)¶
-
XCrossSection.
setShortcutEnabled
(self, int, enabled: bool = True)¶
-
XCrossSection.
setShown
(self, bool)¶
-
XCrossSection.
setSizeIncrement
(self, int, int)¶ setSizeIncrement(self, QSize)
-
XCrossSection.
setSizePolicy
(self, QSizePolicy)¶ setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
-
XCrossSection.
setStatusTip
(self, object)¶
-
XCrossSection.
setStyle
(self, QStyle)¶
-
XCrossSection.
setStyleSheet
(self, object)¶
-
XCrossSection.
setTabOrder
(QWidget, QWidget)¶
-
XCrossSection.
setToolTip
(self, object)¶
-
XCrossSection.
setUpdatesEnabled
(self, bool)¶
-
XCrossSection.
setVisible
(self, bool)¶
-
XCrossSection.
setWhatsThis
(self, object)¶
-
XCrossSection.
setWindowFilePath
(self, object)¶
-
XCrossSection.
setWindowFlags
(self, Qt.WindowFlags)¶
-
XCrossSection.
setWindowIcon
(self, QIcon)¶
-
XCrossSection.
setWindowIconText
(self, object)¶
-
XCrossSection.
setWindowModality
(self, Qt.WindowModality)¶
-
XCrossSection.
setWindowModified
(self, bool)¶
-
XCrossSection.
setWindowOpacity
(self, float)¶
-
XCrossSection.
setWindowRole
(self, object)¶
-
XCrossSection.
setWindowState
(self, Qt.WindowStates)¶
-
XCrossSection.
setWindowTitle
(self, object)¶
-
XCrossSection.
show
(self)¶
-
XCrossSection.
showFullScreen
(self)¶
-
XCrossSection.
showMaximized
(self)¶
-
XCrossSection.
showMinimized
(self)¶
-
XCrossSection.
showNormal
(self)¶
-
XCrossSection.
signalsBlocked
(self) → bool¶
-
XCrossSection.
size
(self) → QSize¶
-
XCrossSection.
sizeHint
(self) → QSize¶
-
XCrossSection.
sizeIncrement
(self) → QSize¶
-
XCrossSection.
sizePolicy
(self) → QSizePolicy¶
-
XCrossSection.
stackUnder
(self, QWidget)¶
-
XCrossSection.
startTimer
(self, int) → int¶
-
XCrossSection.
statusTip
(self) → object¶
-
XCrossSection.
style
(self) → QStyle¶
-
XCrossSection.
styleSheet
(self) → object¶
-
XCrossSection.
tabletEvent
(self, QTabletEvent)¶
-
XCrossSection.
testAttribute
(self, Qt.WidgetAttribute) → bool¶
-
XCrossSection.
thread
(self) → QThread¶
-
XCrossSection.
timerEvent
(self, QTimerEvent)¶
-
XCrossSection.
toolTip
(self) → object¶
-
XCrossSection.
topLevelWidget
(self) → QWidget¶
-
XCrossSection.
tr
(self, object, disambiguation: str = None, n: int = -1) → object¶
-
XCrossSection.
trUtf8
(self, object, disambiguation: str = None, n: int = -1) → object¶
-
XCrossSection.
underMouse
(self) → bool¶
-
XCrossSection.
ungrabGesture
(self, Qt.GestureType)¶
-
XCrossSection.
unsetCursor
(self)¶
-
XCrossSection.
unsetLayoutDirection
(self)¶
-
XCrossSection.
unsetLocale
(self)¶
-
XCrossSection.
update
(self)¶ update(self, QRect) update(self, QRegion) update(self, int, int, int, int)
-
XCrossSection.
updateGeometry
(self)¶
-
XCrossSection.
updateMicroFocus
(self)¶
-
XCrossSection.
update_plot
(obj=None)¶ Update cross section curve(s) associated to object obj
obj may be a marker or a rectangular shape (see
guiqwt.tools.CrossSectionTool
andguiqwt.tools.AverageCrossSectionTool
)If obj is None, update the cross sections of the last active object
-
XCrossSection.
updatesEnabled
(self) → bool¶
-
XCrossSection.
visibility_changed
(enable)¶ DockWidget visibility has changed
-
XCrossSection.
visibleRegion
(self) → QRegion¶
-
XCrossSection.
whatsThis
(self) → object¶
-
XCrossSection.
wheelEvent
(self, QWheelEvent)¶
-
XCrossSection.
width
(self) → int¶
-
XCrossSection.
widthMM
(self) → int¶
-
XCrossSection.
winId
(self) → int¶
-
XCrossSection.
window
(self) → QWidget¶
-
XCrossSection.
windowActivationChange
(self, bool)¶
-
XCrossSection.
windowFilePath
(self) → object¶
-
XCrossSection.
windowFlags
(self) → Qt.WindowFlags¶
-
XCrossSection.
windowIcon
(self) → QIcon¶
-
XCrossSection.
windowIconText
(self) → object¶
-
XCrossSection.
windowModality
(self) → Qt.WindowModality¶
-
XCrossSection.
windowOpacity
(self) → float¶
-
XCrossSection.
windowRole
(self) → object¶
-
XCrossSection.
windowState
(self) → Qt.WindowStates¶
-
XCrossSection.
windowTitle
(self) → object¶
-
XCrossSection.
windowType
(self) → Qt.WindowType¶
-
XCrossSection.
x
(self) → int¶
-
XCrossSection.
x11Info
(self) → QX11Info¶
-
XCrossSection.
x11PictureHandle
(self) → int¶
-
XCrossSection.
y
(self) → int¶
-
-
class
guiqwt.cross_section.
YCrossSection
(parent=None, position='right', xsection_pos='top')[source]¶ Y-axis cross section widget parent (QWidget): parent widget position (string): “left” or “right”
-
CrossSectionPlotKlass
¶ alias of
YCrossSectionPlot
-
class
RenderFlags
(QWidget.RenderFlags)¶ QWidget.RenderFlags(int) QWidget.RenderFlags()
-
YCrossSection.
acceptDrops
(self) → bool¶
-
YCrossSection.
accessibleDescription
(self) → object¶
-
YCrossSection.
accessibleName
(self) → object¶
-
YCrossSection.
actionEvent
(self, QActionEvent)¶
-
YCrossSection.
actions
(self) → object¶
-
YCrossSection.
activateWindow
(self)¶
-
YCrossSection.
addAction
(self, QAction)¶
-
YCrossSection.
addActions
(self, object)¶
-
YCrossSection.
adjustSize
(self)¶
-
YCrossSection.
autoFillBackground
(self) → bool¶
-
YCrossSection.
backgroundRole
(self) → QPalette.ColorRole¶
-
YCrossSection.
baseSize
(self) → QSize¶
-
YCrossSection.
blockSignals
(self, bool) → bool¶
-
YCrossSection.
changeEvent
(self, QEvent)¶
-
YCrossSection.
childAt
(self, QPoint) → QWidget¶ childAt(self, int, int) -> QWidget
-
YCrossSection.
childEvent
(self, QChildEvent)¶
-
YCrossSection.
children
(self) → object¶
-
YCrossSection.
childrenRect
(self) → QRect¶
-
YCrossSection.
childrenRegion
(self) → QRegion¶
-
YCrossSection.
clearFocus
(self)¶
-
YCrossSection.
clearMask
(self)¶
-
YCrossSection.
close
(self) → bool¶
-
YCrossSection.
colorCount
(self) → int¶
-
YCrossSection.
configure_panel
()¶ Configure panel
-
YCrossSection.
connect
(QObject, QT_SIGNAL, QObject, QT_SLOT_QT_SIGNAL, Qt.ConnectionType = Qt.AutoConnection) → object¶ connect(QObject, QT_SIGNAL, Callable[..., None], Qt.ConnectionType = Qt.AutoConnection) -> object connect(self, QObject, QT_SIGNAL, QT_SLOT_QT_SIGNAL, Qt.ConnectionType = Qt.AutoConnection) -> object
-
YCrossSection.
connectNotify
(self, QT_SIGNAL)¶
-
YCrossSection.
contentsMargins
(self) → QMargins¶
-
YCrossSection.
contentsRect
(self) → QRect¶
-
YCrossSection.
contextMenuEvent
(self, QContextMenuEvent)¶
-
YCrossSection.
contextMenuPolicy
(self) → Qt.ContextMenuPolicy¶
-
YCrossSection.
create
(self, window: int = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
-
YCrossSection.
create_dockwidget
(title)¶ Add to parent QMainWindow as a dock widget
-
YCrossSection.
cs_curve_has_changed
(curve)¶ Cross section curve has just changed
-
YCrossSection.
cursor
(self) → QCursor¶
-
YCrossSection.
customContextMenuRequested
¶ customContextMenuRequested(self, QPoint) [signal]
-
YCrossSection.
customEvent
(self, QEvent)¶
-
YCrossSection.
deleteLater
(self)¶
-
YCrossSection.
depth
(self) → int¶
-
YCrossSection.
destroy
(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
-
YCrossSection.
destroyed
¶ destroyed(self, QObject = None) [signal] destroyed(self) [signal]
-
YCrossSection.
devType
(self) → int¶
-
YCrossSection.
disconnect
(QObject, QT_SIGNAL, QObject, QT_SLOT_QT_SIGNAL) → object¶ disconnect(QObject, QT_SIGNAL, Callable[..., None]) -> object
-
YCrossSection.
disconnectNotify
(self, QT_SIGNAL)¶
-
YCrossSection.
dragEnterEvent
(self, QDragEnterEvent)¶
-
YCrossSection.
dragLeaveEvent
(self, QDragLeaveEvent)¶
-
YCrossSection.
dragMoveEvent
(self, QDragMoveEvent)¶
-
YCrossSection.
dropEvent
(self, QDropEvent)¶
-
YCrossSection.
dumpObjectInfo
(self)¶
-
YCrossSection.
dumpObjectTree
(self)¶
-
YCrossSection.
dynamicPropertyNames
(self) → object¶
-
YCrossSection.
effectiveWinId
(self) → int¶
-
YCrossSection.
emit
(self, QT_SIGNAL, *)¶
-
YCrossSection.
enabledChange
(self, bool)¶
-
YCrossSection.
ensurePolished
(self)¶
-
YCrossSection.
enterEvent
(self, QEvent)¶
-
YCrossSection.
event
(self, QEvent) → bool¶
-
YCrossSection.
eventFilter
(self, QObject, QEvent) → bool¶
-
YCrossSection.
find
(int) → QWidget¶
-
YCrossSection.
findChild
(self, type, name: object = '') → object¶ findChild(self, Tuple, name: object = ‘’) -> object
-
YCrossSection.
findChildren
(self, type, name: object = '') → List¶ findChildren(self, Tuple, name: object = ‘’) -> List findChildren(self, type, QRegExp) -> List findChildren(self, Tuple, QRegExp) -> List
-
YCrossSection.
focusInEvent
(self, QFocusEvent)¶
-
YCrossSection.
focusNextChild
(self) → bool¶
-
YCrossSection.
focusNextPrevChild
(self, bool) → bool¶
-
YCrossSection.
focusOutEvent
(self, QFocusEvent)¶
-
YCrossSection.
focusPolicy
(self) → Qt.FocusPolicy¶
-
YCrossSection.
focusPreviousChild
(self) → bool¶
-
YCrossSection.
focusProxy
(self) → QWidget¶
-
YCrossSection.
focusWidget
(self) → QWidget¶
-
YCrossSection.
font
(self) → QFont¶
-
YCrossSection.
fontChange
(self, QFont)¶
-
YCrossSection.
fontInfo
(self) → QFontInfo¶
-
YCrossSection.
fontMetrics
(self) → QFontMetrics¶
-
YCrossSection.
foregroundRole
(self) → QPalette.ColorRole¶
-
YCrossSection.
frameGeometry
(self) → QRect¶
-
YCrossSection.
frameSize
(self) → QSize¶
-
YCrossSection.
geometry
(self) → QRect¶
-
YCrossSection.
getContentsMargins
(self) → Tuple[int, int, int, int]¶
-
YCrossSection.
grabGesture
(self, Qt.GestureType, flags: Qt.GestureFlags = Qt.GestureFlags(0))¶
-
YCrossSection.
grabKeyboard
(self)¶
-
YCrossSection.
grabMouse
(self)¶ grabMouse(self, QCursor)
-
YCrossSection.
grabShortcut
(self, QKeySequence, context: Qt.ShortcutContext = Qt.WindowShortcut) → int¶
-
YCrossSection.
graphicsEffect
(self) → QGraphicsEffect¶
-
YCrossSection.
graphicsProxyWidget
(self) → QGraphicsProxyWidget¶
-
YCrossSection.
handle
(self) → int¶
-
YCrossSection.
hasFocus
(self) → bool¶
-
YCrossSection.
hasMouseTracking
(self) → bool¶
-
YCrossSection.
height
(self) → int¶
-
YCrossSection.
heightForWidth
(self, int) → int¶
-
YCrossSection.
heightMM
(self) → int¶
-
YCrossSection.
hide
(self)¶
-
YCrossSection.
inherits
(self, str) → bool¶
-
YCrossSection.
inputContext
(self) → QInputContext¶
-
YCrossSection.
inputMethodEvent
(self, QInputMethodEvent)¶
-
YCrossSection.
inputMethodHints
(self) → Qt.InputMethodHints¶
-
YCrossSection.
inputMethodQuery
(self, Qt.InputMethodQuery) → object¶
-
YCrossSection.
insertAction
(self, QAction, QAction)¶
-
YCrossSection.
insertActions
(self, QAction, object)¶
-
YCrossSection.
installEventFilter
(self, QObject)¶
-
YCrossSection.
isActiveWindow
(self) → bool¶
-
YCrossSection.
isAncestorOf
(self, QWidget) → bool¶
-
YCrossSection.
isEnabled
(self) → bool¶
-
YCrossSection.
isEnabledTo
(self, QWidget) → bool¶
-
YCrossSection.
isEnabledToTLW
(self) → bool¶
-
YCrossSection.
isFullScreen
(self) → bool¶
-
YCrossSection.
isHidden
(self) → bool¶
-
YCrossSection.
isLeftToRight
(self) → bool¶
-
YCrossSection.
isMaximized
(self) → bool¶
-
YCrossSection.
isMinimized
(self) → bool¶
-
YCrossSection.
isModal
(self) → bool¶
-
YCrossSection.
isRightToLeft
(self) → bool¶
-
YCrossSection.
isTopLevel
(self) → bool¶
-
YCrossSection.
isVisible
(self) → bool¶
-
YCrossSection.
isVisibleTo
(self, QWidget) → bool¶
-
YCrossSection.
isWidgetType
(self) → bool¶
-
YCrossSection.
isWindow
(self) → bool¶
-
YCrossSection.
isWindowModified
(self) → bool¶
-
YCrossSection.
keyPressEvent
(self, QKeyEvent)¶
-
YCrossSection.
keyReleaseEvent
(self, QKeyEvent)¶
-
YCrossSection.
keyboardGrabber
() → QWidget¶
-
YCrossSection.
killTimer
(self, int)¶
-
YCrossSection.
languageChange
(self)¶
-
YCrossSection.
layout
(self) → QLayout¶
-
YCrossSection.
layoutDirection
(self) → Qt.LayoutDirection¶
-
YCrossSection.
leaveEvent
(self, QEvent)¶
-
YCrossSection.
locale
(self) → QLocale¶
-
YCrossSection.
logicalDpiX
(self) → int¶
-
YCrossSection.
logicalDpiY
(self) → int¶
-
YCrossSection.
lower
(self)¶
-
YCrossSection.
mapFrom
(self, QWidget, QPoint) → QPoint¶
-
YCrossSection.
mapFromGlobal
(self, QPoint) → QPoint¶
-
YCrossSection.
mapFromParent
(self, QPoint) → QPoint¶
-
YCrossSection.
mapTo
(self, QWidget, QPoint) → QPoint¶
-
YCrossSection.
mapToGlobal
(self, QPoint) → QPoint¶
-
YCrossSection.
mapToParent
(self, QPoint) → QPoint¶
-
YCrossSection.
mask
(self) → QRegion¶
-
YCrossSection.
maximumHeight
(self) → int¶
-
YCrossSection.
maximumSize
(self) → QSize¶
-
YCrossSection.
maximumWidth
(self) → int¶
-
YCrossSection.
metaObject
(self) → QMetaObject¶
-
YCrossSection.
metric
(self, QPaintDevice.PaintDeviceMetric) → int¶
-
YCrossSection.
minimumHeight
(self) → int¶
-
YCrossSection.
minimumSize
(self) → QSize¶
-
YCrossSection.
minimumSizeHint
(self) → QSize¶
-
YCrossSection.
minimumWidth
(self) → int¶
-
YCrossSection.
mouseDoubleClickEvent
(self, QMouseEvent)¶
-
YCrossSection.
mouseGrabber
() → QWidget¶
-
YCrossSection.
mouseMoveEvent
(self, QMouseEvent)¶
-
YCrossSection.
mousePressEvent
(self, QMouseEvent)¶
-
YCrossSection.
mouseReleaseEvent
(self, QMouseEvent)¶
-
YCrossSection.
move
(self, QPoint)¶ move(self, int, int)
-
YCrossSection.
moveEvent
(self, QMoveEvent)¶
-
YCrossSection.
moveToThread
(self, QThread)¶
-
YCrossSection.
nativeParentWidget
(self) → QWidget¶
-
YCrossSection.
nextInFocusChain
(self) → QWidget¶
-
YCrossSection.
normalGeometry
(self) → QRect¶
-
YCrossSection.
numColors
(self) → int¶
-
YCrossSection.
objectName
(self) → object¶
-
YCrossSection.
overrideWindowFlags
(self, Qt.WindowFlags)¶
-
YCrossSection.
overrideWindowState
(self, Qt.WindowStates)¶
-
YCrossSection.
paintEngine
(self) → QPaintEngine¶
-
YCrossSection.
paintEvent
(self, QPaintEvent)¶
-
YCrossSection.
paintingActive
(self) → bool¶
-
YCrossSection.
palette
(self) → QPalette¶
-
YCrossSection.
paletteChange
(self, QPalette)¶
-
YCrossSection.
parent
(self) → QObject¶
-
YCrossSection.
parentWidget
(self) → QWidget¶
-
YCrossSection.
physicalDpiX
(self) → int¶
-
YCrossSection.
physicalDpiY
(self) → int¶
-
YCrossSection.
pos
(self) → QPoint¶
-
YCrossSection.
previousInFocusChain
(self) → QWidget¶
-
YCrossSection.
property
(self, str) → object¶
-
YCrossSection.
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.
-
YCrossSection.
raise_
(self)¶
-
YCrossSection.
receivers
(self, QT_SIGNAL) → int¶
-
YCrossSection.
rect
(self) → QRect¶
-
YCrossSection.
register_panel
(manager)¶ Register panel to plot manager
-
YCrossSection.
releaseKeyboard
(self)¶
-
YCrossSection.
releaseMouse
(self)¶
-
YCrossSection.
releaseShortcut
(self, int)¶
-
YCrossSection.
removeAction
(self, QAction)¶
-
YCrossSection.
removeEventFilter
(self, QObject)¶
-
YCrossSection.
render
(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags = QWidget.DrawWindowBackground|QWidget.DrawChildren)¶ render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags = QWidget.DrawWindowBackground|QWidget.DrawChildren)
-
YCrossSection.
repaint
(self)¶ repaint(self, int, int, int, int) repaint(self, QRect) repaint(self, QRegion)
-
YCrossSection.
resetInputContext
(self)¶
-
YCrossSection.
resize
(self, QSize)¶ resize(self, int, int)
-
YCrossSection.
resizeEvent
(self, QResizeEvent)¶
-
YCrossSection.
restoreGeometry
(self, QByteArray) → bool¶
-
YCrossSection.
saveGeometry
(self) → QByteArray¶
-
YCrossSection.
scroll
(self, int, int)¶ scroll(self, int, int, QRect)
-
YCrossSection.
sender
(self) → QObject¶
-
YCrossSection.
senderSignalIndex
(self) → int¶
-
YCrossSection.
setAcceptDrops
(self, bool)¶
-
YCrossSection.
setAccessibleDescription
(self, object)¶
-
YCrossSection.
setAccessibleName
(self, object)¶
-
YCrossSection.
setAttribute
(self, Qt.WidgetAttribute, on: bool = True)¶
-
YCrossSection.
setAutoFillBackground
(self, bool)¶
-
YCrossSection.
setBackgroundRole
(self, QPalette.ColorRole)¶
-
YCrossSection.
setBaseSize
(self, int, int)¶ setBaseSize(self, QSize)
-
YCrossSection.
setContentsMargins
(self, int, int, int, int)¶ setContentsMargins(self, QMargins)
-
YCrossSection.
setContextMenuPolicy
(self, Qt.ContextMenuPolicy)¶
-
YCrossSection.
setCursor
(self, QCursor)¶
-
YCrossSection.
setDisabled
(self, bool)¶
-
YCrossSection.
setEnabled
(self, bool)¶
-
YCrossSection.
setFixedHeight
(self, int)¶
-
YCrossSection.
setFixedSize
(self, QSize)¶ setFixedSize(self, int, int)
-
YCrossSection.
setFixedWidth
(self, int)¶
-
YCrossSection.
setFocus
(self)¶ setFocus(self, Qt.FocusReason)
-
YCrossSection.
setFocusPolicy
(self, Qt.FocusPolicy)¶
-
YCrossSection.
setFocusProxy
(self, QWidget)¶
-
YCrossSection.
setFont
(self, QFont)¶
-
YCrossSection.
setForegroundRole
(self, QPalette.ColorRole)¶
-
YCrossSection.
setGeometry
(self, QRect)¶ setGeometry(self, int, int, int, int)
-
YCrossSection.
setGraphicsEffect
(self, QGraphicsEffect)¶
-
YCrossSection.
setHidden
(self, bool)¶
-
YCrossSection.
setInputContext
(self, QInputContext)¶
-
YCrossSection.
setInputMethodHints
(self, Qt.InputMethodHints)¶
-
YCrossSection.
setLayout
(self, QLayout)¶
-
YCrossSection.
setLayoutDirection
(self, Qt.LayoutDirection)¶
-
YCrossSection.
setLocale
(self, QLocale)¶
-
YCrossSection.
setMask
(self, QBitmap)¶ setMask(self, QRegion)
-
YCrossSection.
setMaximumHeight
(self, int)¶
-
YCrossSection.
setMaximumSize
(self, int, int)¶ setMaximumSize(self, QSize)
-
YCrossSection.
setMaximumWidth
(self, int)¶
-
YCrossSection.
setMinimumHeight
(self, int)¶
-
YCrossSection.
setMinimumSize
(self, int, int)¶ setMinimumSize(self, QSize)
-
YCrossSection.
setMinimumWidth
(self, int)¶
-
YCrossSection.
setMouseTracking
(self, bool)¶
-
YCrossSection.
setObjectName
(self, object)¶
-
YCrossSection.
setPalette
(self, QPalette)¶
-
YCrossSection.
setParent
(self, QWidget)¶ setParent(self, QWidget, Qt.WindowFlags)
-
YCrossSection.
setProperty
(self, str, object) → bool¶
-
YCrossSection.
setShortcutAutoRepeat
(self, int, enabled: bool = True)¶
-
YCrossSection.
setShortcutEnabled
(self, int, enabled: bool = True)¶
-
YCrossSection.
setShown
(self, bool)¶
-
YCrossSection.
setSizeIncrement
(self, int, int)¶ setSizeIncrement(self, QSize)
-
YCrossSection.
setSizePolicy
(self, QSizePolicy)¶ setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
-
YCrossSection.
setStatusTip
(self, object)¶
-
YCrossSection.
setStyle
(self, QStyle)¶
-
YCrossSection.
setStyleSheet
(self, object)¶
-
YCrossSection.
setTabOrder
(QWidget, QWidget)¶
-
YCrossSection.
setToolTip
(self, object)¶
-
YCrossSection.
setUpdatesEnabled
(self, bool)¶
-
YCrossSection.
setVisible
(self, bool)¶
-
YCrossSection.
setWhatsThis
(self, object)¶
-
YCrossSection.
setWindowFilePath
(self, object)¶
-
YCrossSection.
setWindowFlags
(self, Qt.WindowFlags)¶
-
YCrossSection.
setWindowIcon
(self, QIcon)¶
-
YCrossSection.
setWindowIconText
(self, object)¶
-
YCrossSection.
setWindowModality
(self, Qt.WindowModality)¶
-
YCrossSection.
setWindowModified
(self, bool)¶
-
YCrossSection.
setWindowOpacity
(self, float)¶
-
YCrossSection.
setWindowRole
(self, object)¶
-
YCrossSection.
setWindowState
(self, Qt.WindowStates)¶
-
YCrossSection.
setWindowTitle
(self, object)¶
-
YCrossSection.
show
(self)¶
-
YCrossSection.
showFullScreen
(self)¶
-
YCrossSection.
showMaximized
(self)¶
-
YCrossSection.
showMinimized
(self)¶
-
YCrossSection.
showNormal
(self)¶
-
YCrossSection.
signalsBlocked
(self) → bool¶
-
YCrossSection.
size
(self) → QSize¶
-
YCrossSection.
sizeHint
(self) → QSize¶
-
YCrossSection.
sizeIncrement
(self) → QSize¶
-
YCrossSection.
sizePolicy
(self) → QSizePolicy¶
-
YCrossSection.
stackUnder
(self, QWidget)¶
-
YCrossSection.
startTimer
(self, int) → int¶
-
YCrossSection.
statusTip
(self) → object¶
-
YCrossSection.
style
(self) → QStyle¶
-
YCrossSection.
styleSheet
(self) → object¶
-
YCrossSection.
tabletEvent
(self, QTabletEvent)¶
-
YCrossSection.
testAttribute
(self, Qt.WidgetAttribute) → bool¶
-
YCrossSection.
thread
(self) → QThread¶
-
YCrossSection.
timerEvent
(self, QTimerEvent)¶
-
YCrossSection.
toolTip
(self) → object¶
-
YCrossSection.
topLevelWidget
(self) → QWidget¶
-
YCrossSection.
tr
(self, object, disambiguation: str = None, n: int = -1) → object¶
-
YCrossSection.
trUtf8
(self, object, disambiguation: str = None, n: int = -1) → object¶
-
YCrossSection.
underMouse
(self) → bool¶
-
YCrossSection.
ungrabGesture
(self, Qt.GestureType)¶
-
YCrossSection.
unsetCursor
(self)¶
-
YCrossSection.
unsetLayoutDirection
(self)¶
-
YCrossSection.
unsetLocale
(self)¶
-
YCrossSection.
update
(self)¶ update(self, QRect) update(self, QRegion) update(self, int, int, int, int)
-
YCrossSection.
updateGeometry
(self)¶
-
YCrossSection.
updateMicroFocus
(self)¶
-
YCrossSection.
update_plot
(obj=None)¶ Update cross section curve(s) associated to object obj
obj may be a marker or a rectangular shape (see
guiqwt.tools.CrossSectionTool
andguiqwt.tools.AverageCrossSectionTool
)If obj is None, update the cross sections of the last active object
-
YCrossSection.
updatesEnabled
(self) → bool¶
-
YCrossSection.
visibility_changed
(enable)¶ DockWidget visibility has changed
-
YCrossSection.
visibleRegion
(self) → QRegion¶
-
YCrossSection.
whatsThis
(self) → object¶
-
YCrossSection.
wheelEvent
(self, QWheelEvent)¶
-
YCrossSection.
width
(self) → int¶
-
YCrossSection.
widthMM
(self) → int¶
-
YCrossSection.
winId
(self) → int¶
-
YCrossSection.
window
(self) → QWidget¶
-
YCrossSection.
windowActivationChange
(self, bool)¶
-
YCrossSection.
windowFilePath
(self) → object¶
-
YCrossSection.
windowFlags
(self) → Qt.WindowFlags¶
-
YCrossSection.
windowIcon
(self) → QIcon¶
-
YCrossSection.
windowIconText
(self) → object¶
-
YCrossSection.
windowModality
(self) → Qt.WindowModality¶
-
YCrossSection.
windowOpacity
(self) → float¶
-
YCrossSection.
windowRole
(self) → object¶
-
YCrossSection.
windowState
(self) → Qt.WindowStates¶
-
YCrossSection.
windowTitle
(self) → object¶
-
YCrossSection.
windowType
(self) → Qt.WindowType¶
-
YCrossSection.
x
(self) → int¶
-
YCrossSection.
x11Info
(self) → QX11Info¶
-
YCrossSection.
x11PictureHandle
(self) → int¶
-
YCrossSection.
y
(self) → int¶
-