Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkInteractorStyle.cxx
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkVtkInteractorStyle.h"
18 
19 #include <vtkCommand.h>
20 #include <vtkObjectFactory.h>
21 
23 
25 {
26 }
27 
29 {
30 }
31 
33 {
34  if (this->HasObserver(vtkCommand::MouseWheelForwardEvent))
35  {
36  this->InvokeEvent(vtkCommand::MouseWheelForwardEvent, NULL);
37  }
38 }
39 
41 {
42  if (this->HasObserver(vtkCommand::MouseWheelBackwardEvent))
43  {
44  this->InvokeEvent(vtkCommand::MouseWheelBackwardEvent, NULL);
45  }
46 }
vtkStandardNewMacro(mitkVtkInteractorStyle)
Implements the handling of events that are missing for MITK interaction.
virtual void OnMouseWheelBackward() override
Called when scrolling backwards with the mouse-wheel.
virtual void OnMouseWheelForward() override
Called when scrolling forwards with the mouse-wheel.