Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
mitkIGTLClient.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found 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 
22 namespace mitk
23 {
24 
36  {
37  public:
39  mitkNewMacro1Param(Self, bool);
40  itkCloneMacro(Self);
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 /* MITKIGTLCLIENT_H */
Superclass for OpenIGTLink clients.
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKOPENIGTLINK_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Interface for all OpenIGTLink Devices.