MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkIGTLDummyMessage.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#ifndef mitkIGTLDummyMessage_h
14#define mitkIGTLDummyMessage_h
15
16#include "MitkOpenIGTLinkExports.h"
17
18#include "igtlObject.h"
19#include "igtlStringMessage.h"
21
22namespace mitk
23{
24
29class MITKOPENIGTLINK_EXPORT IGTLDummyMessage : public igtl::StringMessage
30{
31public:
34
35public:
39 void SetDummyString( const std::string& dummyString );
40
44 std::string GetDummyString();
45
49 igtl::MessageBase::Pointer Clone() override ;
50
51protected:
53 ~IGTLDummyMessage() override;
54
55 std::string m_dummyString;
56};
57
59
60} // namespace mitk
61
62#endif
This class is a dummy message to show how to implement a new message type.
igtlTypeMacro(mitk::IGTLDummyMessage, igtl::StringMessage)
igtlNewMacro(mitk::IGTLDummyMessage)
#define mitkIGTMessageCloneClassMacro(messagetype, classname)
IGT Exceptions.