NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
niftk-nightly
MITK
Modules
MIDAS
Interactions
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
:
36
typedef
DrawToolEventInterface
Self
;
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
:
50
DrawToolEventInterface
();
51
~DrawToolEventInterface
();
52
private
:
53
DrawTool
* m_Tool;
54
};
55
56
}
57
58
#endif
niftk::DrawToolEventInterface::ExecuteOperation
virtual void ExecuteOperation(mitk::Operation *op) override
Main execution function.
Definition:
niftkDrawToolEventInterface.cxx:36
niftk::DrawToolEventInterface::~DrawToolEventInterface
~DrawToolEventInterface()
Definition:
niftkDrawToolEventInterface.cxx:27
niftk::DrawToolEventInterface
Interface class, simply to callback onto DrawTool for Undo/Redo purposes.
Definition:
niftkDrawToolEventInterface.h:33
niftk::DrawToolEventInterface::Pointer
itk::SmartPointer< Self > Pointer
Definition:
niftkDrawToolEventInterface.h:38
niftk::DrawTool
Tool to draw lines around voxel edges like MIDAS does rather than through them as most of the MITK to...
Definition:
niftkDrawTool.h:44
niftk::DrawToolEventInterface::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition:
niftkDrawToolEventInterface.h:37
niftk::DrawToolEventInterface::DrawToolEventInterface
DrawToolEventInterface()
Definition:
niftkDrawToolEventInterface.cxx:22
niftk::DrawToolEventInterface::SetDrawTool
void SetDrawTool(DrawTool *tool)
Sets the tool to callback on to.
Definition:
niftkDrawToolEventInterface.cxx:31
niftk::DrawToolEventInterface::Self
DrawToolEventInterface Self
Definition:
niftkDrawToolEventInterface.h:36
niftk
Definition:
niftkExceptionObject.h:21
Generated on Thu Aug 4 2016 06:02:51 for NifTK by
1.8.8