Medical Imaging Interaction Toolkit  2018.4.99-1640525a
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 MITKOPENIGTLINKMESSAGETONAVIGATIONDATAFILTER_H_HEADER_INCLUDED_
15 #define MITKOPENIGTLINKMESSAGETONAVIGATIONDATAFILTER_H_HEADER_INCLUDED_
16 
18 #include "mitkIGTLMessage.h"
19 #include "mitkIGTLMessageSource.h"
20 #include "MitkIGTExports.h"
21 
22 namespace mitk
23 {
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 /* MITKOPENIGTLMESSAGETONAVIGATIONDATAFILTER_H_HEADER_INCLUDED_ */
DataCollection - Class to facilitate loading/accessing structured data.
IGTLinkMessageToNavigationDataFilter is a filter that receives OpenIGTLink messages as input and prod...
#define MITKIGT_EXPORT
A wrapper for the OpenIGTLink message type.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
OpenIGTLink message source.