Toolbars

ViewpointToolbar

This module provides a toolbar to control Plot3DWidget viewpoint.

class silx.gui.plot3d.ViewpointToolBar.ViewpointActionGroup(plot3D, parent=None)[source]

Bases: PyQt4.QtGui.QActionGroup

ActionGroup 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: PyQt4.QtGui.QToolBar

A toolbar providing icons to reset the viewpoint.

Parameters:
  • parent – See QToolBar
  • plot3D (Plot3DWidget) – The widget to control
  • title (str) – Title of the toolbar

Plot3DToolbar

This module provides a toolbar with tools for a Plot3DWidget.

It provides:

  • Copy
  • Save
  • Print
class silx.gui.plot3d.Plot3DToolBar.Plot3DToolBar(parent=None, title='Plot3D')[source]

Bases: PyQt4.QtGui.QToolBar

Toolbar 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
getVideoRecordAction()[source]

Returns the QAction performing record video of the Plot3DWidget

Return type:qt.QAction
getPrintAction()[source]

Returns the QAction performing printing of the Plot3DWidget

Return type:qt.QAction

Table Of Contents

Previous topic

SFViewParamTree: ScalarFieldView parameters widget

Next topic

Actions

This Page