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
20
27{
28public:
29
31 WEMInspector(std::string type="WEMInspector", int numInImages=0,int numOutImages=0);
32
33protected:
34
36 ~WEMInspector() override;
37
38
39 /* FIELDS */
40
58
59
60 /* STATE VARIABLES */
61
64
65
66 /* METHODS */
67
71 void activateAttachments() override;
73 virtual void _process();
75 virtual void _inWEMChanged();
76
77
78private:
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
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:797
Field to encapsulate a boolean value.
Definition mlFields.h:58
Base class for all fields used in the ML.
Definition mlField.h:73
Field without value for notifications.
Definition mlFields.h:659
This class is the base class for WEM modules that have one WEM input but no WEM output.
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.
BoolField * _listenToRepaintNotificationsFld
Shall the module listen to repaint events?
BaseField * _inputWEMFld
WEM input field.
~WEMInspector() override
Standard destructor.
BoolField * _autoClearFld
Auto clear field.
WEM * _inWEM
A pointer to the input WEM.
BoolField * _autoUpdateFld
Auto update field.
void activateAttachments() override
Initialize module after loading.
BoolField * _listenToSelectionChangedNotificationsFld
Shall the module listen to selection change notifications?
BoolField * _listenToFinishingNotificationsFld
Shall the module listen to finishing events?
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
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.