NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkDrawToolEventInterface.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 niftkDrawToolEventInterface_h
16 #define niftkDrawToolEventInterface_h
17 
18 #include <itkObject.h>
19 #include <itkObjectFactory.h>
20 #include <itkSmartPointer.h>
21 
22 #include <mitkOperationActor.h>
23 
24 namespace niftk
25 {
26 
27 class DrawTool;
28 
33 class DrawToolEventInterface: public itk::Object, public mitk::OperationActor
34 {
35 public:
37  typedef itk::SmartPointer<const Self> ConstPointer;
38  typedef itk::SmartPointer<Self> Pointer;
39 
41  itkNewMacro(Self);
42 
44  void SetDrawTool( DrawTool* tool );
45 
47  virtual void ExecuteOperation(mitk::Operation* op) override;
48 
49 protected:
52 private:
53  DrawTool* m_Tool;
54 };
55 
56 }
57 
58 #endif
virtual void ExecuteOperation(mitk::Operation *op) override
Main execution function.
Definition: niftkDrawToolEventInterface.cxx:36
~DrawToolEventInterface()
Definition: niftkDrawToolEventInterface.cxx:27
Interface class, simply to callback onto DrawTool for Undo/Redo purposes.
Definition: niftkDrawToolEventInterface.h:33
itk::SmartPointer< Self > Pointer
Definition: niftkDrawToolEventInterface.h:38
Tool to draw lines around voxel edges like MIDAS does rather than through them as most of the MITK to...
Definition: niftkDrawTool.h:44
itk::SmartPointer< const Self > ConstPointer
Definition: niftkDrawToolEventInterface.h:37
DrawToolEventInterface()
Definition: niftkDrawToolEventInterface.cxx:22
void SetDrawTool(DrawTool *tool)
Sets the tool to callback on to.
Definition: niftkDrawToolEventInterface.cxx:31
DrawToolEventInterface Self
Definition: niftkDrawToolEventInterface.h:36
Definition: niftkExceptionObject.h:21