NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkThumbnailInteractor.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkThumbnailInteractor_h
16 #define niftkThumbnailInteractor_h
17 
18 #include <niftkThumbnailExports.h>
19 
20 #include <mitkDisplayInteractor.h>
21 
22 namespace mitk
23 {
24 class BaseRenderer;
25 class SliceNavigationController;
26 }
27 
28 namespace niftk
29 {
30 class ThumbnailRenderWindow;
31 
38 class NIFTKTHUMBNAIL_EXPORT ThumbnailInteractor: public mitk::DisplayInteractor
39 {
40 public:
41  mitkClassMacro(ThumbnailInteractor, mitk::DisplayInteractor)
42 
43  // Thumbnail window customisation: thumbnail window passed as argument
44  mitkNewMacro1Param(Self, ThumbnailRenderWindow*)
45 
46 
52  virtual void Notify(mitk::InteractionEvent* interactionEvent, bool isHandled) override;
53 
54 protected:
55 
57  virtual ~ThumbnailInteractor();
58 
59  virtual void ConnectActionsAndFunctions() override;
60 
61  virtual bool Init(mitk::StateMachineAction* action, mitk::InteractionEvent* event) override;
62  virtual bool Move(mitk::StateMachineAction* action, mitk::InteractionEvent* event) override;
63  virtual bool Zoom(mitk::StateMachineAction* action, mitk::InteractionEvent* event) override;
64 
65 private:
66 
70  ThumbnailRenderWindow* m_ThumbnailWindow;
71 
75  mitk::BaseRenderer* m_Renderer;
76 
80  mitk::Point2D m_LastDisplayCoordinate;
84  mitk::Point2D m_CurrentDisplayCoordinate;
85 
89  float m_ZoomFactor;
90 
91 };
92 
93 }
94 
95 #endif
Observer that manages the interaction with the thumbnail window.
Definition: niftkThumbnailInteractor.h:38
Definition: ReceptorMemberCommandTest.cxx:25
Subclass of QmitkRenderWindow to track to another QmitkRenderWindow and provide a zoomed-out view wit...
Definition: niftkThumbnailRenderWindow.h:71
cl_event event
Definition: glew.h:3231
Definition: niftkExceptionObject.h:21