NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkPaintbrushToolEventInterface.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 niftkPaintbrushToolEventInterface_h
16 #define niftkPaintbrushToolEventInterface_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 PaintbrushTool;
28 
33 class PaintbrushToolEventInterface: 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 SetPaintbrushTool(PaintbrushTool* paintbrushTool);
45 
47  virtual void ExecuteOperation(mitk::Operation* op) override;
48 
49 protected:
52 private:
53  PaintbrushTool* m_PaintbrushTool;
54 };
55 
56 }
57 
58 #endif
59 
Interface class, simply to callback operations onto the PaintbrushTool.
Definition: niftkPaintbrushToolEventInterface.h:33
Paint brush tool used during editing on the morphological editor screen (a.k.a connection breaker)...
Definition: niftkPaintbrushTool.h:66
itk::SmartPointer< const Self > ConstPointer
Definition: niftkPaintbrushToolEventInterface.h:37
~PaintbrushToolEventInterface()
Definition: niftkPaintbrushToolEventInterface.cxx:27
itk::SmartPointer< Self > Pointer
Definition: niftkPaintbrushToolEventInterface.h:38
virtual void ExecuteOperation(mitk::Operation *op) override
Main execution function.
Definition: niftkPaintbrushToolEventInterface.cxx:36
PaintbrushToolEventInterface()
Definition: niftkPaintbrushToolEventInterface.cxx:22
PaintbrushToolEventInterface Self
Definition: niftkPaintbrushToolEventInterface.h:36
void SetPaintbrushTool(PaintbrushTool *paintbrushTool)
Sets the tool to callback on to.
Definition: niftkPaintbrushToolEventInterface.cxx:31
Definition: niftkExceptionObject.h:21