Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef MITKIGTLCLIENT_H
19 #define MITKIGTLCLIENT_H
20 
21 #include "mitkIGTLDevice.h"
22 
23 #include <MitkOpenIGTLinkExports.h>
24 
25 
26 namespace mitk
27 {
28 
39  class MITKOPENIGTLINK_EXPORT IGTLClient : public IGTLDevice
40  {
41  public:
43  mitkNewMacro1Param(Self, bool)
44  itkCloneMacro(Self)
45 
46 
52  virtual bool OpenConnection() override;
53 
60  virtual unsigned int GetNumberOfConnections() override;
61 
62  protected:
64  IGTLClient(bool ReadFully);
66  virtual ~IGTLClient();
67 
74  virtual void Receive() override;
75 
81  virtual void Send() override;
82 
90  virtual void StopCommunicationWithSocket(igtl::Socket*) override;
91  };
92 } // namespace mitk
93 #endif /* MITKIGTLCLIENT_H */
Superclass for OpenIGTLink clients.
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Interface for all OpenIGTLink Devices.