MeVisLab Toolbox Reference
WEMModule.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 "WEMBase/WEMDefaults.h"
17
19
20
22
27{
29
30public:
31
33 WEMModule(std::string type="WEMModule", int numInImages=0,int numOutImages=0);
34
36 inline std::string getType() { return _type; }
37
38
39protected:
40
42 ~WEMModule() override;
43
44
45 /* FIELDS */
46
51
52
53 /* STATE VARIABLES */
54
57 std::string _type;
58
59
60 /* METHODS */
61
65 void activateAttachments() override;
66
70 virtual void _finishProcessing();
71
72private:
73
74 /* FIELDS */
75
76
77 /* STATE VARIABLES */
78
80 clock_t _startClock;
82 clock_t _finishClock;
84 double _time;
85
87 MLTimeProfileHandle* _timeProfileHandle;
88
89};
90
92
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
Field to encapsulate a boolean value.
Definition mlFields.h:58
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate a float value.
Definition mlFields.h:415
Base class for an image processing module of the ML.
Definition mlModule.h:151
The WEMModule class provides some common fields and methods for WEMProcessors, WEMGenerators and WEMI...
Definition WEMModule.h:27
void activateAttachments() override
Initialize module after loading.
~WEMModule() override
Standard destructor.
void handleNotification(Field *field) override
Called when input changes.
BoolField * _isProcessingFld
Is the module currently processing?
Definition WEMModule.h:48
std::string getType()
Returns the type of the WEMGenerator.
Definition WEMModule.h:36
WEMModule(std::string type="WEMModule", int numInImages=0, int numOutImages=0)
Standard constructor.
FloatField * _elapsedTimeFld
Elapsed time.
Definition WEMModule.h:50
virtual void _finishProcessing()
End processing timer.
void _startProcessing()
Start processing timer.
std::string _type
The module type as a string.
Definition WEMModule.h:57
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.