MeVisLab Toolbox Reference
mlMainThreadCommunicatorTestSupport.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3
4#pragma once
5
7#include <mlModule.h>
8
9
10ML_START_NAMESPACE
11
12
14{
15public:
16
18
19protected:
20
21 void handleNotification(Field* field) override;
22
23private:
24
25 StringField* inMessageFld;
26
27 IntField* inDelayMillisecondsFld;
28
29 NotifyField* sendMessageFromBackgroundFld;
30
31 NotifyField* sendMessageFromMainThreadFld;
32
33 StringField* outMessageFld;
34
35 MainThreadCommunicator communicator;
36
38};
39
40
41ML_END_NAMESPACE
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate an integer value.
Definition mlFields.h:117
void handleNotification(Field *field) override
Called when any field data in the field container of this module is modified.
Base class for an image processing module of the ML.
Definition mlModule.h:151
Field without value for notifications.
Definition mlFields.h:598
Field to encapsulate a string value.
Definition mlFields.h:553
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.