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 -------------------------------------------------------------------------*/
48 #ifndef __vtkParallelCoordinatesInteractorStyle_h
49 #define __vtkParallelCoordinatesInteractorStyle_h
50 
52 
53 class vtkViewport;
54 
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
62  //BTX
63  enum {
64  INTERACT_HOVER=0,
67  INTERACT_PAN
68  };
69  //ETX
70 
72 
73  vtkGetVector2Macro(CursorStartPosition,int);
74  vtkGetVector2Macro(CursorCurrentPosition,int);
75  vtkGetVector2Macro(CursorLastPosition,int);
77 
79 
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 
88  virtual void OnMouseMove();
89  virtual void OnLeftButtonDown();
90  virtual void OnLeftButtonUp();
91  virtual void OnMiddleButtonDown();
92  virtual void OnMiddleButtonUp();
93  virtual void OnRightButtonDown();
94  virtual void OnRightButtonUp();
95  virtual void OnLeave();
97 
98  virtual void StartInspect(int x, int y);
99  virtual void Inspect(int x, int y);
100  virtual void EndInspect();
101 
102  virtual void StartZoom();
103  virtual void Zoom();
104  virtual void EndZoom();
105 
106  virtual void StartPan();
107  virtual void Pan();
108  virtual void EndPan();
109 
111 
112  virtual void OnChar();
113 protected:
117 
118  int CursorStartPosition[2];
119  int CursorCurrentPosition[2];
120  int CursorLastPosition[2];
121 
122 private:
124  void operator=(const vtkParallelCoordinatesInteractorStyle&); // Not implemented.
125 };
126 
127 #endif