Medical Imaging Interaction Toolkit  2022.04.99-b2814023
Medical Imaging Interaction Toolkit
mitkImageToIGTLMessageFilter.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 
13 #ifndef _MITKIMAGEToIGTLMessageFILTER_H__
14 #define _MITKIMAGEToIGTLMessageFILTER_H__
15 
16 #include <mitkCommon.h>
17 #include <mitkIGTLMessageSource.h>
18 #include <mitkImage.h>
19 #include <mitkImageSource.h>
20 
21 namespace mitk
22 {
31 {
32  public:
34  itkFactorylessNewMacro(Self);
35  itkCloneMacro(Self);
36 
40  void GenerateData() override;
41 
42  using Superclass::SetInput;
43 
47  virtual void SetInput(const mitk::Image* img);
48 
52  virtual void SetInput(unsigned int idx, const Image* img);
53 
57  const mitk::Image* GetInput();
58 
62  const mitk::Image* GetInput(unsigned int idx);
63 
69  void GenerateOutputInformation() override{};
70 
78  virtual void ConnectTo(mitk::ImageSource* UpstreamFilter);
79 
80  protected:
82 
84 
88  virtual void CreateOutputsForAllInputs();
89 
91 };
92 } // namespace mitk
93 
94 #endif // _MITKIMAGEToIGTLMessageFILTER_H__
Superclass of all classes generating Images (instances of class Image) as output. ...
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKOPENIGTLINK_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Image class for storing images.
Definition: mitkImage.h:69
OpenIGTLink message source.
This filter creates IGTL messages from mitk::Image objects.