Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFImageRecorderFilter.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 __mitkToFImageRecorderFilter_h
17 #define __mitkToFImageRecorderFilter_h
18 
19 #include <mitkImageToImageFilter.h>
20 #include <MitkToFHardwareExports.h>
21 
22 #include <mitkToFImageWriter.h>
23 
24 namespace mitk
25 {
32  class MITKTOFHARDWARE_EXPORT ToFImageRecorderFilter : public ImageToImageFilter
33  {
34  public:
36  itkFactorylessNewMacro(Self)
37  itkCloneMacro(Self)
38 
39 
44  void SetFileName(std::string fileName);
49  void SetImageType(ToFImageWriter::ToFImageType tofImageType);
54  ToFImageWriter::Pointer GetToFImageWriter();
59  void SetToFImageWriter(ToFImageWriter::Pointer tofImageWriter);
63  void StartRecording();
67  void StopRecording();
68 
69 
74  virtual void SetInput( Image* input);
80  virtual void SetInput(unsigned int idx, Image* input);
84  Image* GetInput();
88  Image* GetInput(unsigned int idx);
89 
90  protected:
103  virtual void GenerateData() override;
111  void CreateOutputsForAllInputs();
112 
115  std::string m_FileExtension;
116  };
117 } //END mitk namespace
118 #endif
itk::SmartPointer< Self > Pointer
ToFImageWriter::Pointer m_ToFImageWriter
image writer used for streaming input data to file
bool m_RecordingStarted
flag indicating if filter is currently recording
Superclass of all classes generating some kind of mitk::BaseData.
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
Superclass of all classes having one or more Images as input and generating Images as output...
Filter that allows recording of processed ToF images Internally the ToFImageWriter is used for writin...