Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 _MITKIMAGEToIGTLMessageFILTER_H__
18 #define _MITKIMAGEToIGTLMessageFILTER_H__
19 
20 #include <mitkCommon.h>
21 #include <mitkIGTLMessageSource.h>
22 #include <mitkImage.h>
23 #include <mitkImageSource.h>
24 
25 namespace mitk
26 {
34 class MITKOPENIGTLINK_EXPORT ImageToIGTLMessageFilter : public IGTLMessageSource
35 {
36  public:
38  itkFactorylessNewMacro(Self);
39  itkCloneMacro(Self);
40 
44  virtual void GenerateData() override;
45 
46  using Superclass::SetInput;
47 
51  virtual void SetInput(const mitk::Image* img);
52 
56  virtual void SetInput(unsigned int idx, const Image* img);
57 
61  const mitk::Image* GetInput();
62 
66  const mitk::Image* GetInput(unsigned int idx);
67 
73  virtual void GenerateOutputInformation() override{};
74 
82  virtual void ConnectTo(mitk::ImageSource* UpstreamFilter);
83 
84  protected:
86 
88 
92  virtual void CreateOutputsForAllInputs();
93 
95 };
96 } // namespace mitk
97 
98 #endif // _MITKIMAGEToIGTLMessageFILTER_H__
Superclass of all classes generating Images (instances of class Image) as output. ...
DataCollection - Class to facilitate loading/accessing structured data.
virtual void GenerateOutputInformation() override
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Image class for storing images.
Definition: mitkImage.h:76
OpenIGTLink message source.
This filter creates IGTL messages from mitk::Image objects.