Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPixelManipulationTool.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef MITKPIXELMANIPULATIONTOOL_H
17 #define MITKPIXELMANIPULATIONTOOL_H
18 
19 #include "mitkTool.h"
21 
22 #include "itkImage.h"
23 
24 namespace mitk
25 {
26  class Image;
27 
29  {
30  public:
32  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
33 
34  void SetValue(int value);
35  int GetValue();
36 
37  void SetFixedValue(int value);
38  int GetFixedValue();
39 
40  virtual const char *GetName() const override;
41  virtual const char **GetXPM() const override;
42 
43  virtual void Activated() override;
44  virtual void Deactivated() override;
45 
46  virtual void CalculateImage();
47 
48  protected:
50  virtual ~PixelManipulationTool();
51 
52  virtual void OnRoiDataChanged();
53  void AddImageToDataStorage(itk::SmartPointer<mitk::Image> image);
54 
55  template <typename TPixel, unsigned int VImageDimension>
56  void ITKPixelManipulation(itk::Image<TPixel, VImageDimension> *originalImage,
57  Image *maskImage,
58  Image *newImage,
59  int newValue);
60 
62  int m_Value;
64  }; // clas
65 } // namespace
66 #endif
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:92
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
mitk::DataNode::Pointer m_OriginalImageNode
class ITK_EXPORT Image
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
static std::string GetName(std::string fileName, std::string suffix)
Super-class that provides the functionality of a StateMachine to DataInteractors. ...