Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkContourModelSetToImageFilter.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 _MITK_CONTOURMODEL_SOURCE_H
18 #define _MITK_CONTOURMODEL_SOURCE_H
19 
21 #include <mitkImageSource.h>
22 
23 namespace mitk
24 {
25  class ContourModelSet;
26 
32  {
33  public:
34  mitkClassMacro(ContourModelSetToImageFilter, ImageSource) itkFactorylessNewMacro(Self) itkCloneMacro(Self)
35 
36  itkSetMacro(MakeOutputBinary, bool);
37  itkGetMacro(MakeOutputBinary, bool);
38  itkBooleanMacro(MakeOutputBinary);
39 
40  itkSetMacro(TimeStep, unsigned int);
41 
48  virtual itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override;
49 
56  virtual itk::DataObject::Pointer MakeOutput(const DataObjectIdentifierType &name) override;
57 
58  virtual void GenerateInputRequestedRegion() override;
59 
60  virtual void GenerateOutputInformation() override;
61 
62  virtual void GenerateData() override;
63 
64  const mitk::ContourModelSet *GetInput(void);
65 
66  using itk::ProcessObject::SetInput;
67  virtual void SetInput(const mitk::ContourModelSet *input);
68 
73  void SetImage(const mitk::Image *refImage);
74 
75  const mitk::Image *GetImage(void);
76 
77  protected:
79 
81 
85  void InitializeOutputEmpty();
86 
88 
89  unsigned int m_TimeStep;
90 
92  };
93 }
94 #endif // #_MITK_CONTOURMODEL_SOURCE_H
Superclass of all classes generating Images (instances of class Image) as output. ...
itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
itk::SmartPointer< Self > Pointer
Superclass of all classes generating some kind of mitk::BaseData.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
Fills a given mitk::ContourModelSet into a given mitk::Image.