VTK  9.3.0
vtkParallelCoordinatesInteractorStyle.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2009 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
29#ifndef vtkParallelCoordinatesInteractorStyle_h
30#define vtkParallelCoordinatesInteractorStyle_h
31
32#include "vtkInteractionStyleModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkViewport;
37
38class VTKINTERACTIONSTYLE_EXPORT vtkParallelCoordinatesInteractorStyle
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
46 enum
47 {
48 INTERACT_HOVER = 0,
51 INTERACT_PAN
52 };
53
55
58 vtkGetVector2Macro(CursorStartPosition, int);
59 vtkGetVector2Macro(CursorCurrentPosition, int);
60 vtkGetVector2Macro(CursorLastPosition, int);
62
64
67 void GetCursorStartPosition(vtkViewport* viewport, double pos[2]);
68 void GetCursorCurrentPosition(vtkViewport* viewport, double pos[2]);
69 void GetCursorLastPosition(vtkViewport* viewport, double pos[2]);
71
73
77 void OnMouseMove() override;
78 void OnLeftButtonDown() override;
79 void OnLeftButtonUp() override;
80 void OnMiddleButtonDown() override;
81 void OnMiddleButtonUp() override;
82 void OnRightButtonDown() override;
83 void OnRightButtonUp() override;
84 void OnLeave() override;
86
88 virtual void StartInspect(int x, int y);
89 virtual void Inspect(int x, int y);
90 virtual void EndInspect();
92
94 void StartZoom() override;
95 void Zoom() override;
96 void EndZoom() override;
98
100 void StartPan() override;
101 void Pan() override;
102 void EndPan() override;
104
108 void OnChar() override;
109
110protected:
113
114 int CursorStartPosition[2];
115 int CursorCurrentPosition[2];
116 int CursorLastPosition[2];
117
118private:
120 void operator=(const vtkParallelCoordinatesInteractorStyle&) = delete;
121};
122
123VTK_ABI_NAMESPACE_END
124#endif
a simple class to control print indentation
Definition vtkIndent.h:29
interactive manipulation of the camera
interactive manipulation of the camera specialized for parallel coordinates
void GetCursorStartPosition(vtkViewport *viewport, double pos[2])
Get the cursor positions in a given coordinate system.
void EndPan() override
Interaction mode entry points used internally.
void OnMiddleButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
virtual void Inspect(int x, int y)
void GetCursorCurrentPosition(vtkViewport *viewport, double pos[2])
Get the cursor positions in a given coordinate system.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnLeave() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void StartPan() override
Interaction mode entry points used internally.
void OnMiddleButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnChar() override
Override the "fly-to" (f keypress) for images.
void StartZoom() override
Interaction mode entry points used internally.
void GetCursorLastPosition(vtkViewport *viewport, double pos[2])
Get the cursor positions in a given coordinate system.
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
virtual void StartInspect(int x, int y)
void OnRightButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void EndZoom() override
Interaction mode entry points used internally.
static vtkParallelCoordinatesInteractorStyle * New()
void OnRightButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
abstract specification for Viewports
Definition vtkViewport.h:45