Medical Imaging Interaction Toolkit  2016.11.0
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,
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 
18 #ifndef MITKOPENIGTLINKMESSAGETONAVIGATIONDATAFILTER_H_HEADER_INCLUDED_
19 #define MITKOPENIGTLINKMESSAGETONAVIGATIONDATAFILTER_H_HEADER_INCLUDED_
20 
22 #include "mitkIGTLMessage.h"
23 #include "mitkIGTLMessageSource.h"
24 #include "MitkIGTExports.h"
25 
26 namespace mitk
27 {
39  class MITKIGT_EXPORT
41  {
42  public:
44  itkFactorylessNewMacro(Self)
45  itkCloneMacro(Self)
46 
47  using Superclass::SetInput;
48 
57  virtual void SetInput( const IGTLMessage* msg);
58 
70  virtual void SetInput( unsigned int idx, const IGTLMessage* msg);
71 
73 // virtual void SetInput(const DataObjectIdentifierType & key, DataObject *input);
74 
78  const IGTLMessage* GetInput(void) const;
79 
83  const IGTLMessage* GetInput(unsigned int idx) const;
84 
88  const IGTLMessage* GetInput(std::string messageName) const;
89 
95  DataObjectPointerArraySizeType GetInputIndex(std::string messageName);
96 
104  virtual void ConnectTo(mitk::IGTLMessageSource * UpstreamFilter);
105 
114  void SetNumberOfExpectedOutputs(unsigned int numOutputs);
115 
116  protected:
119 
120  virtual void GenerateData() override;
121  void GenerateTransformData();
122  void GenerateTrackingDataData();
123  void GenerateQuaternionTrackingDataData();
124 
133  void CreateOutputsForAllInputs();
134 
138  virtual void GenerateOutputInformation() override;
139  };
140 } // namespace mitk
141 #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...
A wrapper for the OpenIGTLink message type.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
OpenIGTLink message source.