Medical Imaging Interaction Toolkit  2023.12.00
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 (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 {
30 class MITKOPENIGTLINK_EXPORT ImageToIGTLMessageFilter : public IGTLMessageSource
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
mitk::ImageToIGTLMessageFilter::GenerateOutputInformation
void GenerateOutputInformation() override
Definition: mitkImageToIGTLMessageFilter.h:69
mitk::ImageSource
Superclass of all classes generating Images (instances of class Image) as output.
Definition: mitkImageSource.h:36
mitkIGTLMessageSource.h
mitkImage.h
mitk::ImageToIGTLMessageFilter
This filter creates IGTL messages from mitk::Image objects.
Definition: mitkImageToIGTLMessageFilter.h:30
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk::IGTLMessageSource
OpenIGTLink message source.
Definition: mitkIGTLMessageSource.h:41
mitk::ImageToIGTLMessageFilter::~ImageToIGTLMessageFilter
~ImageToIGTLMessageFilter() override
Definition: mitkImageToIGTLMessageFilter.h:83
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkCommon.h
mitk::ImageToIGTLMessageFilter::m_Upstream
mitk::ImageSource * m_Upstream
Definition: mitkImageToIGTLMessageFilter.h:90
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkImageSource.h