MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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:
30 WEMInspector(std::string type = "WEMInspector", int numInImages = 0, int numOutImages = 0);
31
32protected:
34 ~WEMInspector() override;
35
36
37 /* FIELDS */
38
56
57
58 /* STATE VARIABLES */
59
62
63
64 /* METHODS */
65
69 void activateAttachments() override;
71 virtual void _process();
73 virtual void _inWEMChanged();
74
75
76private:
77 /* FIELDS */
78
80 NotifyField* _applyFld;
81
82
83 /* STATE VARIABLES */
84
86 bool _isInNotificationCB;
87
88
89 /* METHODS */
90
92 static void _wemNotificationCB(void* userData, std::vector<WEMEventContainer> ecList);
93
96};
97
99
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:813
Field to encapsulate a boolean value.
Definition mlFields.h:56
Base class for all fields used in the ML.
Definition mlField.h:73
Field without value for notifications.
Definition mlFields.h:687
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:86
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.