NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkPolyToolEventInterface.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 niftkPolyToolEventInterface_h
16 #define niftkPolyToolEventInterface_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 PolyTool;
28 
33 class PolyToolEventInterface: 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 SetPolyTool( PolyTool* tool );
45 
47  virtual void ExecuteOperation(mitk::Operation* op) override;
48 
49 protected:
52 private:
53  PolyTool* m_Tool;
54 };
55 
56 }
57 
58 #endif
void SetPolyTool(PolyTool *tool)
Sets the tool to callback on to.
Definition: niftkPolyToolEventInterface.cxx:31
itk::SmartPointer< const Self > ConstPointer
Definition: niftkPolyToolEventInterface.h:37
Tool to draw poly lines around voxel edges like MIDAS does rather than through them as most of the MI...
Definition: niftkPolyTool.h:45
~PolyToolEventInterface()
Definition: niftkPolyToolEventInterface.cxx:27
virtual void ExecuteOperation(mitk::Operation *op) override
Main execution function.
Definition: niftkPolyToolEventInterface.cxx:36
PolyToolEventInterface Self
Definition: niftkPolyToolEventInterface.h:36
itk::SmartPointer< Self > Pointer
Definition: niftkPolyToolEventInterface.h:38
PolyToolEventInterface()
Definition: niftkPolyToolEventInterface.cxx:22
Definition: niftkExceptionObject.h:21
Interface class, simply to callback onto PolyTool for Undo/Redo purposes.
Definition: niftkPolyToolEventInterface.h:33