#include <vtkQtChartInteractorSetup.h>
Definition at line 39 of file vtkQtChartInteractorSetup.h.
Public Member Functions | |
vtkQtChartInteractorSetup () | |
~vtkQtChartInteractorSetup () | |
Static Public Member Functions | |
static vtkQtChartMouseSelection * | createDefault (vtkQtChartArea *area) |
Creates the default interactor setup for the given chart. | |
static vtkQtChartMouseSelection * | createSplitZoom (vtkQtChartArea *area) |
Creates an interactor with the zoom functionality on separate buttons. | |
static void | setupDefaultKeys (vtkQtChartInteractor *interactor) |
Sets up the default keyboard functions. |
vtkQtChartInteractorSetup::vtkQtChartInteractorSetup | ( | ) | [inline] |
Definition at line 42 of file vtkQtChartInteractorSetup.h.
vtkQtChartInteractorSetup::~vtkQtChartInteractorSetup | ( | ) | [inline] |
Definition at line 43 of file vtkQtChartInteractorSetup.h.
static vtkQtChartMouseSelection* vtkQtChartInteractorSetup::createDefault | ( | vtkQtChartArea * | area | ) | [static] |
Creates the default interactor setup for the given chart.
Selection is set on the left mouse button. All the zoom functionality is added to the middle button. The panning capability is added to the right button. The separate zooming functions are accessed using keyboard modifiers.
area | The chart to add the interactor to. |
static vtkQtChartMouseSelection* vtkQtChartInteractorSetup::createSplitZoom | ( | vtkQtChartArea * | area | ) | [static] |
Creates an interactor with the zoom functionality on separate buttons.
The panning capability is added to the left button along with selection. The left button interaction mode must be set to access the different functionality. The zoom box function is set on the right button. The rest of the zoom capability is added to the middle button. X-only and y-only zooms are accessed using the control and alt modifiers respectively. If no modifiers are pressed, regular drag zoom is activated.
The interactor is created as a child of the chart area. The mouse functions are created as children of the interactor.
area | The chart to add the interactor to. |
static void vtkQtChartInteractorSetup::setupDefaultKeys | ( | vtkQtChartInteractor * | interactor | ) | [static] |
Sets up the default keyboard functions.
The keyboard shortcuts are as follows:
Plus/Equal.............Zoom in. Minus..................Zoom out. Ctrl+Plus..............Horizontally zoom in. Ctrl+minus.............Horizontally zoom out. Alt+Plus...............Vertically zoom in. Alt+minus..............Vertically zoom out. Up.....................Pan up. Down...................Pan down. Left...................Pan left. Right..................Pan right. Alt+Left...............Go to previous view in the history. Alt+Right..............Go to next view in the history.
interactor | The interactor to set up. |