MeVisLab Toolbox Reference
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
23ML_START_NAMESPACE
24
26
29{
30public:
31
33 CSOBaseModule(const std::string& type="CSOBaseModule", int numInImages=0,int numOutImages=0);
34
35protected:
36
38 ~CSOBaseModule() override;
39
41 void activateAttachments() override;
42
44 void handleNotification(Field* field) override;
45
48 virtual bool _useLegacyAutoApplyMode() const;
49
50protected:
51
52 /* FIELDS */
53
61
66
67
68 /* MEMBER VARIABLES */
69
72 std::string _type;
73
74 /* METHODS */
75
77 void _setIsProcessingFlag(bool newProcessingState);
78
80};
81
82ML_END_NAMESPACE
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition MLCSOSystem.h:23
virtual bool _useLegacyAutoApplyMode() const
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
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
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.
Module(int numInputImages, int numOutputImages)