Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
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 (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 __mitkToFImageRecorderFilter_h
13 #define __mitkToFImageRecorderFilter_h
14 
15 #include <mitkImageToImageFilter.h>
16 #include <MitkToFHardwareExports.h>
17 
18 #include <mitkToFImageWriter.h>
19 
20 namespace mitk
21 {
29  {
30  public:
32  itkFactorylessNewMacro(Self);
33  itkCloneMacro(Self);
34 
40  void SetFileName(std::string fileName);
45  void SetImageType(ToFImageWriter::ToFImageType tofImageType);
50  ToFImageWriter::Pointer GetToFImageWriter();
55  void SetToFImageWriter(ToFImageWriter::Pointer tofImageWriter);
59  void StartRecording();
63  void StopRecording();
64 
65  using itk::ProcessObject::SetInput;
66 
71  void SetInput( const InputImageType* input) override;
77  void SetInput(unsigned int idx, const InputImageType* input) override;
81  Image* GetInput();
85  Image* GetInput(unsigned int idx);
86 
87  protected:
95  ~ToFImageRecorderFilter() override;
100  void GenerateData() override;
108  void CreateOutputsForAllInputs();
109 
111  ToFImageWriter::Pointer m_ToFImageWriter;
112  std::string m_FileExtension;
113  };
114 } //END mitk namespace
115 #endif
ToFImageWriter::Pointer m_ToFImageWriter
image writer used for streaming input data to file
#define MITKTOFHARDWARE_EXPORT
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:40
Image class for storing images.
Definition: mitkImage.h:72
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...