MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkImageToIGTLMessageFilter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkImageToIGTLMessageFilter_h
14#define mitkImageToIGTLMessageFilter_h
15
16#include <mitkCommon.h>
18#include <mitkImage.h>
19#include <mitkImageSource.h>
20
21namespace mitk
22{
30class MITKOPENIGTLINK_EXPORT ImageToIGTLMessageFilter : public IGTLMessageSource
31{
32 public:
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
90 mitk::ImageSource* m_Upstream;
91};
92} // namespace mitk
93
94#endif
OpenIGTLink message source.
This filter creates IGTL messages from mitk::Image objects.
mitkClassMacro(ImageToIGTLMessageFilter, IGTLMessageSource)
IGT Exceptions.