Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkIGTLMessageToNavigationDataFilter.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 
14 #ifndef mitkIGTLMessageToNavigationDataFilter_h
15 #define mitkIGTLMessageToNavigationDataFilter_h
16 
18 #include "mitkIGTLMessage.h"
19 #include "mitkIGTLMessageSource.h"
20 #include "MitkIGTExports.h"
21 
22 namespace mitk
23 {
35  class MITKIGT_EXPORT
37  {
38  public:
40  itkFactorylessNewMacro(Self);
41  itkCloneMacro(Self);
42 
43  using Superclass::SetInput;
44 
53  virtual void SetInput( const IGTLMessage* msg);
54 
66  virtual void SetInput( unsigned int idx, const IGTLMessage* msg);
67 
69 // virtual void SetInput(const DataObjectIdentifierType & key, DataObject *input);
70 
74  const IGTLMessage* GetInput(void) const;
75 
79  const IGTLMessage* GetInput(unsigned int idx) const;
80 
84  const IGTLMessage* GetInput(std::string messageName) const;
85 
91  DataObjectPointerArraySizeType GetInputIndex(std::string messageName);
92 
100  virtual void ConnectTo(mitk::IGTLMessageSource * UpstreamFilter);
101 
110  void SetNumberOfExpectedOutputs(unsigned int numOutputs);
111 
112  protected:
115 
116  void GenerateData() override;
117  void GenerateTransformData();
118  void GenerateTrackingDataData();
119  void GenerateQuaternionTrackingDataData();
120 
129  void CreateOutputsForAllInputs();
130 
134  void GenerateOutputInformation() override;
135  };
136 } // namespace mitk
137 #endif
mitkIGTLMessageSource.h
mitkNavigationDataSource.h
mitk::IGTLMessageSource
OpenIGTLink message source.
Definition: mitkIGTLMessageSource.h:41
mitk::IGTLMessage
A wrapper for the OpenIGTLink message type.
Definition: mitkIGTLMessage.h:35
mitk::NavigationDataSource
Navigation Data source.
Definition: mitkNavigationDataSource.h:40
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkIGTLMessage.h
mitk::IGTLMessageToNavigationDataFilter
IGTLinkMessageToNavigationDataFilter is a filter that receives OpenIGTLink messages as input and prod...
Definition: mitkIGTLMessageToNavigationDataFilter.h:35