MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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
23
24
26{
27public:
30
33
34
37
39 void activateAttachments() override;
40
41
42private:
43 BaseField* _outStylePaletteFld;
44 BaseField* _inStylePaletteFld;
45
46 BoolField* _autoApplyFld;
47 NotifyField* _updateFromParametersFld;
48 BoolField* _autoReadInStylePaletteFld;
49 NotifyField* _readInStylePaletteFld;
50
51 StringField* _stylesStringFld;
52
53 IntField* _numReservedEntriesFld;
54 BoolField* _stylePaletteValidFld;
55 IntField* _numStylePaletteEntriesFld;
56
58 StylePalette* _stylePalette;
59
60
61 void _parseStringToStylePalette();
62 void _convertStylePaletteToString(StylePalette* stylePalette = nullptr);
63 void _setUpStylePaletteNumEntries();
64
67};
68
70
71
72#endif // __mlDynamicStylePalette_h
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:813
Field to encapsulate a boolean value.
Definition mlFields.h:56
void activateAttachments() override
Update status after restore.
void handleNotification(Field *field) override
Handle field changes.
DynamicStylePalette()
Constructor.
~DynamicStylePalette() override
Destructor.
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate an integer value.
Definition mlFields.h:123
Base class for an image processing module of the ML.
Definition mlModule.h:150
Field without value for notifications.
Definition mlFields.h:687
Field to encapsulate a string value.
Definition mlFields.h:634
Base object class StylePalette for providing a collection of colors, line styles and marker types.
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
#define MLBASEEXPORT
defined Header file mlBaseInit.h
Definition mlBaseInit.h:22
Target mlrange_cast(Source arg)
Generic version of checked ML casts.