Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkIGTLDummyMessage.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 mitkIGTLDummyMessage_h
14 #define mitkIGTLDummyMessage_h
15 
16 #include "MitkOpenIGTLinkExports.h"
17 
18 #include "igtlObject.h"
19 #include "igtlStringMessage.h"
21 
22 namespace mitk
23 {
24 
29 class MITKOPENIGTLINK_EXPORT IGTLDummyMessage : public igtl::StringMessage
30 {
31 public:
32  igtlTypeMacro(mitk::IGTLDummyMessage, igtl::StringMessage);
33  igtlNewMacro(mitk::IGTLDummyMessage);
34 
35 public:
39  void SetDummyString( const std::string& dummyString );
40 
44  std::string GetDummyString();
45 
49  igtl::MessageBase::Pointer Clone() override ;
50 
51 protected:
53  ~IGTLDummyMessage() override;
54 
55  std::string m_dummyString;
56 };
57 
59 
60 } // namespace mitk
61 
62 #endif
mitk::DummyMsgCloneHandler
Definition: mitkIGTLDummyMessage.h:58
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkIGTMessageCloneClassMacro
#define mitkIGTMessageCloneClassMacro(messagetype, classname)
Definition: mitkIGTLMessageCloneHandler.h:66
mitk::IGTLDummyMessage::m_dummyString
std::string m_dummyString
Definition: mitkIGTLDummyMessage.h:55
mitk::IGTLDummyMessage
This class is a dummy message to show how to implement a new message type.
Definition: mitkIGTLDummyMessage.h:29
mitkIGTLMessageCloneHandler.h