MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkIGTLClient.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13
14#ifndef mitkIGTLClient_h
15#define mitkIGTLClient_h
16
17#include "mitkIGTLDevice.h"
18
19#include <MitkOpenIGTLinkExports.h>
20
21
22namespace mitk
23{
24
35 class MITKOPENIGTLINK_EXPORT IGTLClient : public IGTLDevice
36 {
37 public:
39 mitkNewMacro1Param(Self, bool);
41
48 bool OpenConnection() override;
49
56 unsigned int GetNumberOfConnections() override;
57
58 protected:
60 IGTLClient(bool ReadFully);
62 ~IGTLClient() override;
63
70 void Receive() override;
71
77 void Send() override;
78
86 void StopCommunicationWithSocket(igtl::Socket*) override;
87 };
88} // namespace mitk
89#endif
Superclass for OpenIGTLink clients.
mitkNewMacro1Param(Self, bool)
mitkClassMacro(IGTLClient, IGTLDevice)
Interface for all OpenIGTLink Devices.
IGT Exceptions.