Medical Imaging Interaction Toolkit  2018.4.99-e1268d66
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef MITKPIXELMANIPULATIONTOOL_H
13 #define MITKPIXELMANIPULATIONTOOL_H
14 
15 #include "mitkTool.h"
17 
18 #include "itkImage.h"
19 
20 namespace mitk
21 {
22  class Image;
23 
25  {
26  public:
28  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
29 
30  void SetValue(int value);
31  int GetValue();
32 
33  void SetFixedValue(int value);
34  int GetFixedValue();
35 
36  const char *GetName() const override;
37  const char **GetXPM() const override;
38 
39  void Activated() override;
40  void Deactivated() override;
41 
42  virtual void CalculateImage();
43 
44  protected:
46  ~PixelManipulationTool() override;
47 
48  virtual void OnRoiDataChanged();
49  void AddImageToDataStorage(itk::SmartPointer<mitk::Image> image);
50 
51  template <typename TPixel, unsigned int VImageDimension>
52  void ITKPixelManipulation(itk::Image<TPixel, VImageDimension> *originalImage,
53  Image *maskImage,
54  Image *newImage,
55  int newValue);
56 
58  int m_Value;
60  }; // clas
61 } // namespace
62 #endif
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:88
#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:40
Image class for storing images.
Definition: mitkImage.h:72
mitk::Image::Pointer image
static std::string GetName(std::string fileName, std::string suffix)
Super-class that provides the functionality of a StateMachine to DataInteractors. ...