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
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
:
36
typedef
PolyToolEventInterface
Self
;
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
:
50
PolyToolEventInterface
();
51
~PolyToolEventInterface
();
52
private
:
53
PolyTool
* m_Tool;
54
};
55
56
}
57
58
#endif
niftk::PolyToolEventInterface::SetPolyTool
void SetPolyTool(PolyTool *tool)
Sets the tool to callback on to.
Definition:
niftkPolyToolEventInterface.cxx:31
niftk::PolyToolEventInterface::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition:
niftkPolyToolEventInterface.h:37
niftk::PolyTool
Tool to draw poly lines around voxel edges like MIDAS does rather than through them as most of the MI...
Definition:
niftkPolyTool.h:45
niftk::PolyToolEventInterface::~PolyToolEventInterface
~PolyToolEventInterface()
Definition:
niftkPolyToolEventInterface.cxx:27
niftk::PolyToolEventInterface::ExecuteOperation
virtual void ExecuteOperation(mitk::Operation *op) override
Main execution function.
Definition:
niftkPolyToolEventInterface.cxx:36
niftk::PolyToolEventInterface::Self
PolyToolEventInterface Self
Definition:
niftkPolyToolEventInterface.h:36
niftk::PolyToolEventInterface::Pointer
itk::SmartPointer< Self > Pointer
Definition:
niftkPolyToolEventInterface.h:38
niftk::PolyToolEventInterface::PolyToolEventInterface
PolyToolEventInterface()
Definition:
niftkPolyToolEventInterface.cxx:22
niftk
Definition:
niftkExceptionObject.h:21
niftk::PolyToolEventInterface
Interface class, simply to callback onto PolyTool for Undo/Redo purposes.
Definition:
niftkPolyToolEventInterface.h:33
Generated on Thu Aug 4 2016 06:02:51 for NifTK by
1.8.8