Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSurfaceToImageFilter.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 
17 #ifndef _mitkSurfaceToImageFilter_h__
18 #define _mitkSurfaceToImageFilter_h__
19 
20 #include "MitkCoreExports.h"
21 #include "mitkCommon.h"
22 #include "mitkImageSource.h"
23 #include "mitkSurface.h"
24 
25 class vtkPolyData;
26 
27 namespace mitk
28 {
51  {
52  public:
54  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
55 
56  itkSetMacro(MakeOutputBinary, bool);
57  itkGetMacro(MakeOutputBinary, bool);
58  itkBooleanMacro(MakeOutputBinary);
59 
60  itkSetMacro(UShortBinaryPixelType, bool);
61  itkGetMacro(UShortBinaryPixelType, bool);
62  itkBooleanMacro(UShortBinaryPixelType);
63 
64  itkGetConstMacro(BackgroundValue, float);
65  itkSetMacro(BackgroundValue, float);
66 
67  virtual void GenerateInputRequestedRegion() override;
68 
69  virtual void GenerateOutputInformation() override;
70 
71  virtual void GenerateData() override;
72 
73  const mitk::Surface *GetInput(void);
74 
75  using itk::ProcessObject::SetInput;
76  virtual void SetInput(const mitk::Surface *surface);
77 
78  void SetImage(const mitk::Image *source);
79 
80  const mitk::Image *GetImage(void);
81 
82  protected:
84 
85  virtual ~SurfaceToImageFilter();
86 
87  void Stencil3DImage(int time = 0);
88 
89  bool m_MakeOutputBinary;
90  bool m_UShortBinaryPixelType;
91 
92  float m_BackgroundValue;
93  };
94 
95 } // namespace mitk
96 
97 #endif /* MITKCOONSPATCHFILTER_H_HEADER_INCLUDED_C10B22CD */
Superclass of all classes generating Images (instances of class Image) as output. ...
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:32
#define MITKCORE_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
Converts surface data to pixel data. Requires a surface and an image, which header information define...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76