13#ifndef mitkIGTLMessageProvider_h
14#define mitkIGTLMessageProvider_h
20#include "itkCommand.h"
61 void Send(mitk::IGTLMessage::Pointer msg);
77 void StopStreamingOfAllSources();
89 void Update()
override;
103 void GenerateData()
override;
111 void CreateOutputs();
117 void OnIncomingMessage()
override;
123 void OnIncomingCommand()
override;
128 void OnLostConnection()
override;
152 mitk::IGTLMessageSource::Pointer GetFittingSource(
const char* requestedType);
157 void InvokeStartStreamingEvent();
162 void InvokeStopStreamingEvent();
168 ProviderCommand::Pointer m_StreamingCommand;
170 ProviderCommand::Pointer m_StopStreamingCommand;
190 unsigned int m_StreamingTime;
193 std::mutex m_StreamingTimeMutex;
Connects a mitk::IGTLDevice to a MITK-OpenIGTLink-Message-Filter-Pipeline.
Provides information/objects from a MITK-Pipeline to other OpenIGTLink devices.
itkFactorylessNewMacro(Self)
itk::SimpleMemberCommand< mitk::IGTLMessageProvider > ProviderCommand
itkGetMacro(StreamingTime, unsigned int)
Get method for the streaming time.
mitkClassMacro(IGTLMessageProvider, IGTLDeviceSource)
OpenIGTLink message source.
itkEventMacroDeclaration(MessageSentEvent, itk::AnyEvent)
connect to this Event to get notified when a message was successfully sent