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
25
class
MLBASEEXPORT
DynamicStylePalette
:
public
Module
26
{
27
public
:
28
30
DynamicStylePalette
();
31
33
~DynamicStylePalette
()
override
;
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
68
ML_MODULE_CLASS_HEADER
(
DynamicStylePalette
);
69
};
70
71
ML_END_NAMESPACE
72
73
74
#endif
// __mlDynamicStylePalette_h
ml::BaseField
Definition
mlFields.h:729
ml::BoolField
Definition
mlFields.h:56
ml::DynamicStylePalette::activateAttachments
void activateAttachments() override
Update status after restore.
ml::DynamicStylePalette::handleNotification
void handleNotification(Field *field) override
Handle field changes.
ml::DynamicStylePalette::DynamicStylePalette
DynamicStylePalette()
Constructor.
ml::DynamicStylePalette::~DynamicStylePalette
~DynamicStylePalette() override
Destructor.
ml::Field
Definition
mlField.h:73
ml::IntField
Definition
mlFields.h:117
ml::Module::Module
Module(int numInputImages, int numOutputImages)
ml::NotifyField
Definition
mlFields.h:598
ml::StringField
Definition
mlFields.h:553
ml::StylePalette
Definition
mlStylePalette.h:45
ML_MODULE_CLASS_HEADER
#define ML_MODULE_CLASS_HEADER(className)
Definition
mlRuntimeSubClass.h:235
mlBaseInit.h
MLBASEEXPORT
#define MLBASEEXPORT
defined Header file mlBaseInit.h
Definition
mlBaseInit.h:22
mlModuleIncludes.h
mlStylePalette.h
MeVisLab
Standard
Sources
ML
MLBase
mlDynamicStylePalette.h
Generated by
1.15.0