23 class ColorScaleEditorDlg;
36 QWidget* parent =
nullptr);
52 void colorScaleChanged(
int);
53 void relativeModeChanged(
int);
55 void onStepSelected(
int);
57 void onStepModified(
int);
59 void deletecSelectedStep();
61 void changeSelectedStepColor();
63 void changeSelectedStepValue(
double);
65 void onCustomLabelsListChanged();
66 void toggleCustomLabelsList(
bool);
68 void copyCurrentScale();
69 bool saveCurrentScale();
70 void deleteCurrentScale();
71 void renameCurrentScale();
73 void exportCurrentScale();
76 void createNewScale();
83 void updateMainComboBox();
86 void setModified(
bool state);
91 bool canChangeCurrentScale();
98 bool isRelativeMode()
const;
105 void setScaleModeToRelative(
bool isRelative);
108 bool checkCustomLabelsList(
bool showWarnings);
Dialog to edit/create color scales.
ccColorScale::Shared getActiveScale()
Returns active scale.
double m_maxAbsoluteVal
Current max boundary for absolute scales.
ccScalarField * m_associatedSF
Associated scalar field.
double m_minAbsoluteVal
Current min boundary for absolute scales.
ccColorScalesManager * m_manager
Color scale manager.
ecvMainAppInterface * m_mainApp
Associated application (interface)
ccColorScale::Shared m_colorScale
Current active color scale.
~ccColorScaleEditorDialog() override=default
Destructor.
bool m_modified
Modification flag.
ccColorScaleEditorWidget * m_scaleWidget
Color scale editor widget.
Ui::ColorScaleEditorDlg * m_ui
QSharedPointer< ccColorScale > Shared
Shared pointer type.
std::set< Label > LabelSet
Type of a list of custom labels.
Color scales manager/container.
A scalar field associated to display-related parameters.
Main application interface (for plugins)