Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
mitkIGTLMessageCloneHandler.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
#ifndef mitkIGTLMessageCloneHandler_h
14
#define mitkIGTLMessageCloneHandler_h
15
16
#include "itkObject.h"
17
#include "
mitkCommon.h
"
18
19
#include "igtlObject.h"
20
#include "igtlMacro.h"
21
#include "igtlSocket.h"
22
#include "igtlMessageBase.h"
23
24
#include "MitkOpenIGTLinkExports.h"
25
26
namespace
mitk
27
{
36
class
MITKOPENIGTLINK_EXPORT
IGTLMessageCloneHandler
:
public
itk::Object
37
{
38
public
:
39
mitkClassMacroItkParent
(
IGTLMessageCloneHandler
, itk::Object);
40
itkFactorylessNewMacro(Self);
41
itkCloneMacro(Self);
42
43
public
:
44
virtual
igtl::MessageBase::Pointer
Clone
(igtl::MessageBase*) {
return
nullptr
; }
45
46
protected
:
47
IGTLMessageCloneHandler
() {}
48
~IGTLMessageCloneHandler
()
override
{}
49
};
50
66
#define mitkIGTMessageCloneClassMacro(messagetype, classname) \
67
class classname : public ::mitk::IGTLMessageCloneHandler \
68
{ \
69
public: \
70
mitkClassMacro(classname, mitk::IGTLMessageCloneHandler); \
71
itkFactorylessNewMacro(Self); \
72
itkCloneMacro(Self); \
73
public: \
74
virtual igtl::MessageBase::Pointer Clone(igtl::MessageBase*); \
75
protected: \
76
classname(){} \
77
~classname() {} \
78
};
79
80
81
}
// namespace mitk
82
83
#endif
mitk::IGTLMessageCloneHandler::IGTLMessageCloneHandler
IGTLMessageCloneHandler()
Definition:
mitkIGTLMessageCloneHandler.h:47
mitk::IGTLMessageCloneHandler
Base class for clone handlers for igtl::MessageBase derived message types.
Definition:
mitkIGTLMessageCloneHandler.h:36
mitk::IGTLMessageCloneHandler::~IGTLMessageCloneHandler
~IGTLMessageCloneHandler() override
Definition:
mitkIGTLMessageCloneHandler.h:48
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition:
mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitkCommon.h
mitk::IGTLMessageCloneHandler::Clone
virtual igtl::MessageBase::Pointer Clone(igtl::MessageBase *)
Definition:
mitkIGTLMessageCloneHandler.h:44
src
MITK
Modules
OpenIGTLink
mitkIGTLMessageCloneHandler.h
Generated on Thu Nov 30 2023 15:58:53 for Medical Imaging Interaction Toolkit by
1.8.17