NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkContourToolEventInterface.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 niftkContourToolEventInterface_h
16 #define niftkContourToolEventInterface_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 ContourTool;
28 
33 class ContourToolEventInterface: 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 SetContourTool(ContourTool* tool);
45 
47  virtual void ExecuteOperation(mitk::Operation* op);
48 
49 protected:
52 private:
53  ContourTool* m_Tool;
54 };
55 
56 }
57 
58 #endif
ContourToolEventInterface Self
Definition: niftkContourToolEventInterface.h:36
void SetContourTool(ContourTool *tool)
Sets the tool to callback on to.
Definition: niftkContourToolEventInterface.cxx:31
ContourToolEventInterface()
Definition: niftkContourToolEventInterface.cxx:22
Provides common functionality for DrawTool and PolyTool where these two tools enable drawing lines an...
Definition: niftkContourTool.h:51
itk::SmartPointer< const Self > ConstPointer
Definition: niftkContourToolEventInterface.h:37
virtual void ExecuteOperation(mitk::Operation *op)
Main execution function.
Definition: niftkContourToolEventInterface.cxx:36
itk::SmartPointer< Self > Pointer
Definition: niftkContourToolEventInterface.h:38
Interface class, simply to callback onto ContourTool for Undo/Redo purposes.
Definition: niftkContourToolEventInterface.h:33
Definition: niftkExceptionObject.h:21
~ContourToolEventInterface()
Definition: niftkContourToolEventInterface.cxx:27