NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkPaintbrushToolOpEditImage.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 niftkPaintbrushToolOpEditImage_h
16 #define niftkPaintbrushToolOpEditImage_h
17 
18 #include "niftkMIDASExports.h"
19 
20 #include <itkImage.h>
21 
22 #include <mitkOperation.h>
23 #include <mitkOperationActor.h>
24 #include <mitkTool.h>
25 
27 
28 namespace niftk
29 {
30 
36 class NIFTKMIDAS_EXPORT PaintbrushToolOpEditImage: public mitk::Operation
37 {
38 public:
40 
42  mitk::OperationType type,
43  bool redo,
44  int imageNumber,
45  unsigned char valueToWrite,
46  mitk::Image* imageToEdit,
47  mitk::DataNode* nodeToEdit,
48  ProcessorType* processor
49  );
50 
52 
53  bool IsRedo() const;
54 
55  int GetImageNumber() const;
56 
57  unsigned char GetValueToWrite() const;
58 
59  mitk::Image* GetImageToEdit() const;
60 
61  mitk::DataNode* GetNodeToEdit() const;
62 
63  ProcessorType::Pointer GetProcessor() const;
64 
65 private:
66 
67  bool m_Redo;
68  int m_ImageNumber;
69  unsigned char m_ValueToWrite;
70  mitk::Image* m_ImageToEdit;
71  mitk::DataNode* m_NodeToEdit;
72  ProcessorType::Pointer m_Processor;
73 
74 };
75 
76 }
77 
78 #endif
SmartPointer< Self > Pointer
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:39
GLuint GLuint GLsizei GLenum type
Definition: glew.h:1237
itk::MIDASImageUpdatePixelWiseSingleValueProcessor< mitk::Tool::DefaultSegmentationDataType, 3 > ProcessorType
Definition: niftkPaintbrushToolOpEditImage.h:39
Class to support undo/redo of an operation that takes a list of pixels, and sets them all to a given ...
Definition: itkMIDASImageUpdatePixelWiseSingleValueProcessor.h:32
Operation class to hold data to pass back to this PaintbrushTool, so that this PaintbrushTool can exe...
Definition: niftkPaintbrushToolOpEditImage.h:36
Definition: niftkExceptionObject.h:21