Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkVtkInteractorStyle.h"
14 
15 #include <vtkCommand.h>
16 #include <vtkObjectFactory.h>
17 
19 
21 {
22 }
23 
25 {
26 }
27 
29 {
30  if (this->HasObserver(vtkCommand::MouseWheelForwardEvent))
31  {
32  this->InvokeEvent(vtkCommand::MouseWheelForwardEvent, nullptr);
33  }
34 }
35 
37 {
38  if (this->HasObserver(vtkCommand::MouseWheelBackwardEvent))
39  {
40  this->InvokeEvent(vtkCommand::MouseWheelBackwardEvent, nullptr);
41  }
42 }
vtkStandardNewMacro(mitkVtkInteractorStyle)
Implements the handling of events that are missing for MITK interaction.
void OnMouseWheelBackward() override
Called when scrolling backwards with the mouse-wheel.
void OnMouseWheelForward() override
Called when scrolling forwards with the mouse-wheel.