VTK
vtkInteractorStyleImage.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleImage.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 =========================================================================*/
49 #ifndef __vtkInteractorStyleImage_h
50 #define __vtkInteractorStyleImage_h
51 
53 
54 // Motion flags
55 
56 #define VTKIS_WINDOW_LEVEL 1024
57 #define VTKIS_PICK 1025
58 
60 {
61 public:
62  static vtkInteractorStyleImage *New();
64  void PrintSelf(ostream& os, vtkIndent indent);
65 
67 
68  vtkGetVector2Macro(WindowLevelStartPosition,int);
69  vtkGetVector2Macro(WindowLevelCurrentPosition,int);
71 
73 
75  virtual void OnMouseMove();
76  virtual void OnLeftButtonDown();
77  virtual void OnLeftButtonUp();
78  virtual void OnRightButtonDown();
79  virtual void OnRightButtonUp();
81 
83  virtual void OnChar();
84 
85  // These methods for the different interactions in different modes
86  // are overridden in subclasses to perform the correct motion. Since
87  // they might be called from OnTimer, they do not have mouse coord parameters
88  // (use interactor's GetEventPosition and GetLastEventPosition)
89  virtual void WindowLevel();
90  virtual void Pick();
91 
92  // Interaction mode entry points used internally.
93  virtual void StartWindowLevel();
94  virtual void EndWindowLevel();
95  virtual void StartPick();
96  virtual void EndPick();
97 
98 protected:
101 
102  int WindowLevelStartPosition[2];
103  int WindowLevelCurrentPosition[2];
104 
105 private:
106  vtkInteractorStyleImage(const vtkInteractorStyleImage&); // Not implemented.
107  void operator=(const vtkInteractorStyleImage&); // Not implemented.
108 };
109 
110 #endif
void PrintSelf(ostream &os, vtkIndent indent)
static vtkInteractorStyleTrackballCamera * New()
interactive manipulation of the camera specialized for images
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_RENDERING_EXPORT
virtual void OnChar()
interactive manipulation of the camera