Toolbars¶
ViewpointToolbar¶
This module provides a toolbar to control Plot3DWidget viewpoint.
-
class
silx.gui.plot3d.ViewpointToolBar.ViewpointActionGroup(plot3D, parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QActionGroupActionGroup of actions to reset the viewpoint.
As for QActionGroup, add group’s actions to the widget with: widget.addActions(actionGroup.actions())
Parameters: - plot3D (Plot3DWidget) – The widget for which to control the viewpoint
- parent – See
QActionGroup
-
class
silx.gui.plot3d.ViewpointToolBar.ViewpointToolBar(parent=None, plot3D=None, title='Viewpoint control')[source]¶ Bases:
PyQt5.QtWidgets.QToolBarA toolbar providing icons to reset the viewpoint.
Parameters: - parent – See
QToolBar - plot3D (Plot3DWidget) – The widget to control
- title (str) – Title of the toolbar
- parent – See
Plot3DToolbar¶
This module provides a toolbar with tools for a Plot3DWidget.
It provides:
- Copy
- Save
-
class
silx.gui.plot3d.Plot3DToolBar.Plot3DToolBar(parent=None, title='Plot3D')[source]¶ Bases:
PyQt5.QtWidgets.QToolBarToolbar providing icons to copy, save and print the OpenGL scene
Parameters: - parent – See
QWidget - title (str) – Title of the toolbar.
-
setPlot3DWidget(widget)[source]¶ Set the Plot3DWidget this toolbar is associated with
Parameters: widget (Plot3DWidget) – The widget to copy/save/print
-
getPlot3DWidget()[source]¶ Return the Plot3DWidget associated to this toolbar.
If no widget is associated, it returns None.
Return type: qt.QWidget
-
getCopyAction()[source]¶ Returns the QAction performing copy to clipboard of the Plot3DWidget
Return type: qt.QAction
-
getSaveAction()[source]¶ Returns the QAction performing save to file of the Plot3DWidget
Return type: qt.QAction
- parent – See