VTK
vtkContextInteractorStyle.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextInteractorStyle.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 =========================================================================*/
24 #ifndef __vtkContextInteractorStyle_h
25 #define __vtkContextInteractorStyle_h
26 
27 #include "vtkInteractorStyle.h"
28 
29 class vtkContextScene;
30 
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
43  void SetScene(vtkContextScene* scene);
44  // Description:
45  // Return the observed scene.
46  vtkGetObjectMacro(Scene, vtkContextScene);
48 
50  virtual void OnSceneModified();
51 
54  virtual void OnMouseMove();
55 
58  virtual void OnLeftButtonDown();
59 
62  virtual void OnLeftButtonUp();
63 
66  virtual void OnMiddleButtonDown();
67 
70  virtual void OnMiddleButtonUp();
71 
74  virtual void OnRightButtonDown();
75 
78  virtual void OnRightButtonUp();
79 
82  virtual void OnMouseWheelForward();
83 
86  virtual void OnMouseWheelBackward();
87 
90  virtual void OnSelection(unsigned int rect[5]);
91 
92 protected:
95  static void ProcessSceneEvents(vtkObject* object, unsigned long event,
96  void* clientdata, void* calldata);
97 
101  void BeginProcessingEvent();
102 
106  void EndProcessingEvent();
107 
111  unsigned long int LastSceneRepaintMTime;
112 
113 private:
114  vtkContextInteractorStyle(const vtkContextInteractorStyle&); // Not implemented
115  void operator=(const vtkContextInteractorStyle&); // Not implemented
116 };
117 
118 #endif
virtual void OnLeftButtonDown()
#define VTK_CHARTS_EXPORT
virtual void OnMiddleButtonDown()
virtual void OnRightButtonDown()
abstract base class for most VTK objects
Definition: vtkObject.h:60
virtual void OnLeftButtonUp()
static vtkInteractorStyle * New()
virtual void OnMiddleButtonUp()
virtual void OnMouseWheelForward()
virtual void OnRightButtonUp()
An interactor for chart views It observes the user events (mouse events) and propagates them to the s...
supports function callbacks
void PrintSelf(ostream &os, vtkIndent indent)
Provides a 2D scene for vtkContextItem objects.
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void OnMouseWheelBackward()
vtkCallbackCommand * SceneCallbackCommand
provide event-driven interface to the rendering window (defines trackball mode)
virtual void OnMouseMove()