Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLThreeDViewInteractorStyle.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: $RCSfile: vtkInteractorStyleTrackballCamera.h,v $
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 #ifndef __vtkMRMLThreeDViewInteractorStyle_h
17 #define __vtkMRMLThreeDViewInteractorStyle_h
18 
19 #include "vtkMRMLDisplayableManagerExport.h"
20 
21 // MRML includes
22 #include "vtkMRMLCameraNode.h"
24 
25 // VTK includes
26 #include "vtkObject.h"
27 #include "vtkSmartPointer.h"
28 
29 class vtkCellPicker;
30 class vtkWorldPointPicker;
31 
50 class VTK_MRML_DISPLAYABLEMANAGER_EXPORT vtkMRMLThreeDViewInteractorStyle :
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
61  void OnLeave() override;
62 
66  bool DelegateInteractionEventToDisplayableManagers(vtkEventData* inputEventData) override;
67 
70  vtkGetObjectMacro ( CameraNode, vtkMRMLCameraNode );
71  vtkSetObjectMacro ( CameraNode, vtkMRMLCameraNode );
72 
75  void SetInteractor(vtkRenderWindowInteractor *interactor) override;
76 
77 protected:
80 
81  bool QuickPick(int x, int y, double pickPoint[3]);
82 
84 
86  vtkSmartPointer<vtkCellPicker> AccuratePicker;
87  vtkSmartPointer<vtkWorldPointPicker> QuickPicker;
88 
89 private:
91  void operator=(const vtkMRMLThreeDViewInteractorStyle&) = delete;
92 };
93 
94 #endif
void SetInteractor(vtkRenderWindowInteractor *interactor) override
Reimplemented to set additional observers
vtkSmartPointer< vtkWorldPointPicker > QuickPicker
void PrintSelf(ostream &os, vtkIndent indent) override
virtual bool DelegateInteractionEventToDisplayableManagers(unsigned long event)
Interactive manipulation of the camera.
Common base class for processing interaction events in MRML views.
static vtkMRMLViewInteractorStyle * New()
vtkSmartPointer< vtkCellPicker > AccuratePicker
For jump to slice feature (when mouse is moved while shift key is pressed)
MRML node to represent camera node.