13 #ifndef mitkIGTLMessageProvider_h
14 #define mitkIGTLMessageProvider_h
20 #include "itkCommand.h"
51 itkFactorylessNewMacro(Self);
54 typedef itk::SimpleMemberCommand<mitk::IGTLMessageProvider>
ProviderCommand;
61 void Send(mitk::IGTLMessage::Pointer msg);
77 void StopStreamingOfAllSources();
87 itkGetMacro(StreamingTime,
unsigned int);
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;