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 
6 #include <mlModuleIncludes.h>
8 
9 
10 ML_START_NAMESPACE
11 
12 
14 {
15 public:
16 
18 
19 protected:
20 
21  void handleNotification(Field* field) override;
22 
23 private:
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 
41 ML_END_NAMESPACE
Base class for all fields used in the ML.
Definition: mlField.h:73
Field to encapsulate an integer value.
Definition: mlFields.h:161
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:156
Field without value for notifications.
Definition: mlFields.h:1049
Field to encapsulate a string value.
Definition: mlFields.h:1000
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.