13#ifndef mitkIGTLDeviceSource_h
14#define mitkIGTLDeviceSource_h
56 void RegisterAsMicroservice()
override;
83 void StartCommunication();
91 void StopCommunication();
97 virtual bool IsConnected();
103 virtual bool IsCommunicating();
108 void UpdateOutputInformation()
override;
122 void GenerateData()
override;
130 void CreateOutputs();
136 virtual void OnIncomingMessage();
142 virtual void OnIncomingCommand();
147 virtual void OnLostConnection();
152 virtual void RemoveObservers();
155 using Superclass::SetInput;
161 virtual void SetInput(
unsigned int idx,
const IGTLMessage* msg );
171 const IGTLMessage* GetInput(
unsigned int idx)
const;
176 const IGTLMessage* GetInput(std::string msgName)
const;
185 DataObjectPointerArraySizeType GetInputIndex(std::string msgName);
Connects a mitk::IGTLDevice to a MITK-OpenIGTLink-Message-Filter-Pipeline.
DataObjectPointerArraySizeType GetOutputIndex(std::string msgName)
return the index of the output with name msgName, -1 if no output with that name was found
unsigned int m_LostConnectionObserverTag
itkGetObjectMacro(IGTLDevice, mitk::IGTLDevice)
returns the OpenIGTLink device that is used by this filter
unsigned int m_IncomingMessageObserverTag
mitkClassMacro(IGTLDeviceSource, IGTLMessageSource)
static const std::string US_PROPKEY_IGTLDEVICENAME
These Constants are used in conjunction with Microservices.
unsigned int m_IncomingCommandObserverTag
itkFactorylessNewMacro(Self)
mitk::IGTLDevice::Pointer m_IGTLDevice
Interface for all OpenIGTLink Devices.
OpenIGTLink message source.
A wrapper for the OpenIGTLink message type.