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
51class vtkViewport;
52
54{
55public:
58 void PrintSelf(ostream& os, vtkIndent indent);
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 virtual void OnMouseMove();
91 virtual void OnLeftButtonDown();
92 virtual void OnLeftButtonUp();
93 virtual void OnMiddleButtonDown();
94 virtual void OnMiddleButtonUp();
95 virtual void OnRightButtonDown();
96 virtual void OnRightButtonUp();
97 virtual void OnLeave();
99
101 virtual void StartInspect(int x, int y);
102 virtual void Inspect(int x, int y);
103 virtual void EndInspect();
105
107 virtual void StartZoom();
108 virtual void Zoom();
109 virtual void EndZoom();
111
113 virtual void StartPan();
114 virtual void Pan();
115 virtual void EndPan();
117
121 virtual void OnChar();
122
123protected:
126
127 int CursorStartPosition[2];
128 int CursorCurrentPosition[2];
129 int CursorLastPosition[2];
130
131private:
133 void operator=(const vtkParallelCoordinatesInteractorStyle&) VTK_DELETE_FUNCTION;
134};
135
136#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
interactive manipulation of the camera
interactive manipulation of the camera specialized for parallel coordinates
virtual void OnMouseMove()
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void GetCursorStartPosition(vtkViewport *viewport, double pos[2])
Get the cursor positions in a given coordinate system.
virtual void Inspect(int x, int y)
void GetCursorCurrentPosition(vtkViewport *viewport, double pos[2])
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void GetCursorLastPosition(vtkViewport *viewport, double pos[2])
virtual void StartInspect(int x, int y)
virtual void OnChar()
Override the "fly-to" (f keypress) for images.
static vtkParallelCoordinatesInteractorStyle * New()
abstract specification for Viewports
Definition: vtkViewport.h:48