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
19ML_START_NAMESPACE
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
69 void handleNotification(Field *field) override;
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
103ML_END_NAMESPACE
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
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
BoolField * _listenToRepaintNotificationsFld
Shall the module listen to repaint events?
BaseField * _inputWEMFld
WEM input field.
~WEMInspector() override
Standard destructor.
BoolField * _autoClearFld
WEM * _inWEM
A pointer to the input WEM.
BoolField * _autoUpdateFld
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?
WEMModule(std::string type="WEMModule", int numInImages=0, int numOutImages=0)
Standard constructor.
Definition WEM.h:89
#define ML_CLASS_HEADER(className)