NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkGeneralSegmentorEventInterface.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 niftkGeneralSegmentorEventInterface_h
16 #define niftkGeneralSegmentorEventInterface_h
17 
18 #include <itkObject.h>
19 #include <itkSmartPointer.h>
20 #include <itkObjectFactory.h>
21 #include <mitkOperationActor.h>
22 
23 namespace niftk
24 {
25 
26 class GeneralSegmentorController;
27 
31 class GeneralSegmentorEventInterface: public itk::Object, public mitk::OperationActor
32 {
33 public:
35  typedef itk::SmartPointer<const Self> ConstPointer;
36  typedef itk::SmartPointer<Self> Pointer;
37 
39  itkNewMacro(Self);
40 
42  void SetGeneralSegmentorController(GeneralSegmentorController* generalSegmentorController);
43 
45  virtual void ExecuteOperation(mitk::Operation* op) override;
46 
47 protected:
48 
50 
52 
53 private:
54 
55  GeneralSegmentorController* m_GeneralSegmentorController;
56 
57 };
58 
59 }
60 
61 #endif
virtual void ExecuteOperation(mitk::Operation *op) override
Main execution function.
Definition: niftkGeneralSegmentorEventInterface.cxx:43
Interface class, simply to callback onto niftkGeneralSegmentorController class for Undo/Redo purposes...
Definition: niftkGeneralSegmentorEventInterface.h:31
Provides the MIDAS general purpose, Irregular Volume Editor functionality originally developed at the...
Definition: niftkGeneralSegmentorController.h:130
void SetGeneralSegmentorController(GeneralSegmentorController *generalSegmentorController)
Sets the view to callback on to.
Definition: niftkGeneralSegmentorEventInterface.cxx:36
itk::SmartPointer< Self > Pointer
Definition: niftkGeneralSegmentorEventInterface.h:36
itk::SmartPointer< const Self > ConstPointer
Definition: niftkGeneralSegmentorEventInterface.h:35
GeneralSegmentorEventInterface()
Definition: niftkGeneralSegmentorEventInterface.cxx:23
virtual ~GeneralSegmentorEventInterface()
Definition: niftkGeneralSegmentorEventInterface.cxx:30
GeneralSegmentorEventInterface Self
Definition: niftkGeneralSegmentorEventInterface.h:34
Definition: niftkExceptionObject.h:21