MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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:
32 WEMModule(std::string type = "WEMModule", int numInImages = 0, int numOutImages = 0);
33
35 inline std::string getType()
36 {
37 return _type;
38 }
39
40
41protected:
43 ~WEMModule() override;
44
45
46 /* FIELDS */
47
52
53
54 /* STATE VARIABLES */
55
58 std::string _type;
59
60
61 /* METHODS */
62
66 void activateAttachments() override;
67
71 virtual void _finishProcessing();
72
73private:
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
91
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
Field to encapsulate a boolean value.
Definition mlFields.h:56
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate a float value.
Definition mlFields.h:449
Base class for an image processing module of the ML.
Definition mlModule.h:150
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:49
std::string getType()
Returns the type of the WEMGenerator.
Definition WEMModule.h:35
WEMModule(std::string type="WEMModule", int numInImages=0, int numOutImages=0)
Standard constructor.
FloatField * _elapsedTimeFld
Elapsed time.
Definition WEMModule.h:51
virtual void _finishProcessing()
End processing timer.
void _startProcessing()
Start processing timer.
std::string _type
The module type as a string.
Definition WEMModule.h:58
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.