VTK
vtkParallelCoordinatesInteractorStyle.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParallelCoordinatesInteractorStyle.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2009 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
45 #ifndef vtkParallelCoordinatesInteractorStyle_h
46 #define vtkParallelCoordinatesInteractorStyle_h
47 
48 #include "vtkInteractionStyleModule.h" // For export macro
50 
51 class vtkViewport;
52 
54 {
55 public:
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
60  enum {
61  INTERACT_HOVER=0,
64  INTERACT_PAN
65  };
66 
68 
71  vtkGetVector2Macro(CursorStartPosition,int);
72  vtkGetVector2Macro(CursorCurrentPosition,int);
73  vtkGetVector2Macro(CursorLastPosition,int);
75 
77 
80  void GetCursorStartPosition(vtkViewport *viewport, double pos[2]);
81  void GetCursorCurrentPosition(vtkViewport *viewport, double pos[2]);
82  void GetCursorLastPosition(vtkViewport *viewport, double pos[2]);
84 
86 
90  void OnMouseMove() override;
91  void OnLeftButtonDown() override;
92  void OnLeftButtonUp() override;
93  void OnMiddleButtonDown() override;
94  void OnMiddleButtonUp() override;
95  void OnRightButtonDown() override;
96  void OnRightButtonUp() override;
97  void OnLeave() override;
99 
101  virtual void StartInspect(int x, int y);
102  virtual void Inspect(int x, int y);
103  virtual void EndInspect();
105 
107  void StartZoom() override;
108  void Zoom() override;
109  void EndZoom() override;
111 
113  void StartPan() override;
114  void Pan() override;
115  void EndPan() override;
117 
121  void OnChar() override;
122 
123 protected:
126 
127  int CursorStartPosition[2];
128  int CursorCurrentPosition[2];
129  int CursorLastPosition[2];
130 
131 private:
133  void operator=(const vtkParallelCoordinatesInteractorStyle&) = delete;
134 };
135 
136 #endif
vtkParallelCoordinatesInteractorStyle::INTERACT_ZOOM
@ INTERACT_ZOOM
Definition: vtkParallelCoordinatesInteractorStyle.h:63
vtkParallelCoordinatesInteractorStyle::GetCursorLastPosition
void GetCursorLastPosition(vtkViewport *viewport, double pos[2])
vtkParallelCoordinatesInteractorStyle::OnLeave
void OnLeave() override
vtkParallelCoordinatesInteractorStyle::GetCursorStartPosition
void GetCursorStartPosition(vtkViewport *viewport, double pos[2])
Get the cursor positions in a given coordinate system.
vtkParallelCoordinatesInteractorStyle::StartZoom
void StartZoom() override
vtkParallelCoordinatesInteractorStyle::OnLeftButtonDown
void OnLeftButtonDown() override
vtkParallelCoordinatesInteractorStyle::OnMiddleButtonDown
void OnMiddleButtonDown() override
vtkParallelCoordinatesInteractorStyle::OnMiddleButtonUp
void OnMiddleButtonUp() override
vtkParallelCoordinatesInteractorStyle::OnRightButtonUp
void OnRightButtonUp() override
vtkParallelCoordinatesInteractorStyle::EndPan
void EndPan() override
vtkParallelCoordinatesInteractorStyle::StartInspect
virtual void StartInspect(int x, int y)
vtkParallelCoordinatesInteractorStyle::GetCursorCurrentPosition
void GetCursorCurrentPosition(vtkViewport *viewport, double pos[2])
vtkParallelCoordinatesInteractorStyle::OnMouseMove
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkParallelCoordinatesInteractorStyle::StartPan
void StartPan() override
vtkParallelCoordinatesInteractorStyle::New
static vtkParallelCoordinatesInteractorStyle * New()
vtkParallelCoordinatesInteractorStyle::OnChar
void OnChar() override
Override the "fly-to" (f keypress) for images.
vtkParallelCoordinatesInteractorStyle::OnRightButtonDown
void OnRightButtonDown() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkParallelCoordinatesInteractorStyle::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkParallelCoordinatesInteractorStyle::EndZoom
void EndZoom() override
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkParallelCoordinatesInteractorStyle::Pan
void Pan() override
vtkParallelCoordinatesInteractorStyle::Inspect
virtual void Inspect(int x, int y)
vtkParallelCoordinatesInteractorStyle::~vtkParallelCoordinatesInteractorStyle
~vtkParallelCoordinatesInteractorStyle() override
vtkParallelCoordinatesInteractorStyle::EndInspect
virtual void EndInspect()
vtkInteractorStyleTrackballCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleTrackballCamera.h:48
vtkParallelCoordinatesInteractorStyle::Zoom
void Zoom() override
vtkParallelCoordinatesInteractorStyle::vtkParallelCoordinatesInteractorStyle
vtkParallelCoordinatesInteractorStyle()
vtkParallelCoordinatesInteractorStyle
interactive manipulation of the camera specialized for parallel coordinates
Definition: vtkParallelCoordinatesInteractorStyle.h:54
vtkParallelCoordinatesInteractorStyle::INTERACT_INSPECT
@ INTERACT_INSPECT
Definition: vtkParallelCoordinatesInteractorStyle.h:62
vtkParallelCoordinatesInteractorStyle::OnLeftButtonUp
void OnLeftButtonUp() override
vtkInteractorStyleTrackballCamera.h