MeVisLab Toolbox Reference
WEMInspector.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #pragma once
14 
15 #include "WEMBase/WEM.h"
16 #include "WEMModule.h"
17 
18 
19 ML_START_NAMESPACE
20 
27 {
28 public:
29 
31  WEMInspector(std::string type="WEMInspector", int numInImages=0,int numOutImages=0);
32 
33 protected:
34 
36  ~WEMInspector() override;
37 
38 
39  /* FIELDS */
40 
58 
59 
60  /* STATE VARIABLES */
61 
64 
65 
66  /* METHODS */
67 
69  void handleNotification(Field *field) override;
71  void activateAttachments() override;
73  virtual void _process();
75  virtual void _inWEMChanged();
76 
77 
78 private:
79 
80  /* FIELDS */
81 
83  NotifyField* _applyFld;
84 
85 
86  /* STATE VARIABLES */
87 
89  bool _isInNotificationCB;
90 
91 
92  /* METHODS */
93 
95  static void _wemNotificationCB(void* userData, std::vector<WEMEventContainer> ecList);
96 
99 };
100 
102 
103 ML_END_NAMESPACE
#define MLWEM_EXPORT
Definition: MLWEMSystem.h:18
Field to encapsulate a pointer to an ML base object.
Definition: mlFields.h:1187
Field to encapsulate a boolean value.
Definition: mlFields.h:62
Base class for all fields used in the ML.
Definition: mlField.h:73
Field without value for notifications.
Definition: mlFields.h:1049
This class is the base class for WEM modules that have one WEM input but no WEM output.
Definition: WEMInspector.h:27
virtual void _process()
Triggers the computation of the preprocessing.
virtual void _inWEMChanged()
Called when the inputWEM has changed.
void handleNotification(Field *field) override
Called when input changes.
WEMInspector(std::string type="WEMInspector", int numInImages=0, int numOutImages=0)
Standard constructor.
BoolField * _autoApplyFld
Auto apply field.
Definition: WEMInspector.h:43
BoolField * _listenToRepaintNotificationsFld
Shall the module listen to repaint events?
Definition: WEMInspector.h:55
BaseField * _inputWEMFld
WEM input field.
Definition: WEMInspector.h:51
~WEMInspector() override
Standard destructor.
BoolField * _autoClearFld
Auto clear field.
Definition: WEMInspector.h:49
WEM * _inWEM
A pointer to the input WEM.
Definition: WEMInspector.h:63
BoolField * _autoUpdateFld
Auto update field.
Definition: WEMInspector.h:46
void activateAttachments() override
Initialize module after loading.
BoolField * _listenToSelectionChangedNotificationsFld
Shall the module listen to selection change notifications?
Definition: WEMInspector.h:57
BoolField * _listenToFinishingNotificationsFld
Shall the module listen to finishing events?
Definition: WEMInspector.h:53
The WEMModule class provides some common fields and methods for WEMProcessors, WEMGenerators and WEMI...
Definition: WEMModule.h:27
A WEM comprises a number of WEMPatches.
Definition: WEM.h:88
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.