MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
CSOBaseModule.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2009, 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
15
16#pragma once
17
18#include "MLCSOIncludes.h"
19
20#include "../CSOList.h"
21#include "../CSOScopeEvents.h"
22
24
26
29{
30public:
32 CSOBaseModule(const std::string& type = "CSOBaseModule", int numInImages = 0, int numOutImages = 0);
33
34protected:
36 ~CSOBaseModule() override;
37
39 void activateAttachments() override;
40
43
46 virtual bool _useLegacyAutoApplyMode() const;
47
48protected:
49 /* FIELDS */
50
58
63
64
65 /* MEMBER VARIABLES */
66
69 std::string _type;
70
71 /* METHODS */
72
75
77};
78
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition MLCSOSystem.h:23
Field to encapsulate a boolean value.
Definition mlFields.h:56
Base class for CSOModules.
virtual bool _useLegacyAutoApplyMode() const
Controls whether update behavior on parameter field changes should depend on the autoApply field (leg...
void activateAttachments() override
Initializes the module after loading.
NotifyField * _applyFld
Applies changes.
void _setIsProcessingFlag(bool newProcessingState)
Sets the isProcessing field if the processing state has changed.
std::string _type
The processor type as a string.
BoolField * _isProcessingFld
Field reflects whether the module is currently processing.
CSOBaseModule(const std::string &type="CSOBaseModule", int numInImages=0, int numOutImages=0)
Standard constructor.
void handleNotification(Field *field) override
Called when input changes.
BoolField * _autoApplyFld
Shall changes lead to an apply? Field value is only considered when useLegacyAutoApplyMode is enabled...
ML_MODULE_CLASS_HEADER(CSOBaseModule)
~CSOBaseModule() override
Standard destructor.
NotifyField * _doneFld
Notifies the application or other modules that the processing has ended.
TypedEnumField< CSOUpdateModes > * _updateModeFld
Enumeration field for update modes.
Base class for all fields used in the ML.
Definition mlField.h:73
Base class for an image processing module of the ML.
Definition mlModule.h:150
Field without value for notifications.
Definition mlFields.h:687
TypedEnumField is used to encapsulate a C++ enum value and work with a real enum value instead of int...
Definition mlFields.h:398
Target mlrange_cast(Source arg)
Generic version of checked ML casts.