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 
22 ML_START_NAMESPACE
23 
24 
26 {
27 public:
28 
31 
34 
35 
37  void handleNotification(Field *field) override;
38 
40  void activateAttachments () override;
41 
42 
43 private:
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 
71 ML_END_NAMESPACE
72 
73 
74 #endif // __mlDynamicStylePalette_h
Field to encapsulate a pointer to an ML base object.
Definition: mlFields.h:1187
Field to encapsulate a boolean value.
Definition: mlFields.h:62
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:161
Base class for an image processing module of the ML.
Definition: mlModule.h:156
Field without value for notifications.
Definition: mlFields.h:1049
Field to encapsulate a string value.
Definition: mlFields.h:1000
Base object class StylePalette for providing a collection of colors, line styles and marker types.
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
#define MLBASEEXPORT
defined Header file mlBaseInit.h
Definition: mlBaseInit.h:22