MeVisLab Toolbox Reference
mlDynamicStylePalette.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2012, 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#ifndef ML_DYNAMIC_STYLE_PALETTE_H
14#define ML_DYNAMIC_STYLE_PALETTE_H
15
16#include <mlModuleIncludes.h>
17
18#include "mlBaseInit.h"
19#include "mlStylePalette.h"
20
21
22ML_START_NAMESPACE
23
24
26{
27public:
28
31
34
35
37 void handleNotification(Field *field) override;
38
40 void activateAttachments () override;
41
42
43private:
44
45 BaseField* _outStylePaletteFld;
46 BaseField* _inStylePaletteFld;
47
48 BoolField* _autoApplyFld;
49 NotifyField* _updateFromParametersFld;
50 BoolField* _autoReadInStylePaletteFld;
51 NotifyField* _readInStylePaletteFld;
52
53 StringField* _stylesStringFld;
54
55 IntField* _numReservedEntriesFld;
56 BoolField* _stylePaletteValidFld;
57 IntField* _numStylePaletteEntriesFld;
58
60 StylePalette* _stylePalette;
61
62
63 void _parseStringToStylePalette();
64 void _convertStylePaletteToString(StylePalette* stylePalette=nullptr);
65 void _setUpStylePaletteNumEntries();
66
69};
70
71ML_END_NAMESPACE
72
73
74#endif // __mlDynamicStylePalette_h
void activateAttachments() override
Update status after restore.
void handleNotification(Field *field) override
Handle field changes.
DynamicStylePalette()
Constructor.
~DynamicStylePalette() override
Destructor.
Module(int numInputImages, int numOutputImages)
#define ML_MODULE_CLASS_HEADER(className)
#define MLBASEEXPORT
defined Header file mlBaseInit.h
Definition mlBaseInit.h:22