ColormapControls
ColormapControls
Widget for selecting a colormap preset and configuring color range. More…
#include <ColormapControls.hpp>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | colormapChanged(CorePlotting::Colormaps::ColormapPreset preset) Emitted when the user selects a different colormap preset. |
| void | colorRangeChanged(ColorRangeConfig const & config) Emitted when the color range mode or manual bounds change. |
Public Functions
| Name | |
|---|---|
| ColormapControls(QWidget * parent =[nullptr]) | |
| ~ColormapControls() override =default | |
| CorePlotting::Colormaps::ColormapPreset | colormapPreset() const Get the currently selected colormap preset. |
| void | setColormapPreset(CorePlotting::Colormaps::ColormapPreset preset) Set the colormap preset (updates combo without emitting signal). |
| ColorRangeConfig | colorRange() const Get the currently configured color range. |
| void | setColorRange(ColorRangeConfig const & config) Set the full color range config (updates UI without emitting signal). |
| void | setColorRangeMode(ColorRangeConfig::Mode mode) Set just the color range mode. |
| void | setColorRangeBounds(double vmin, double vmax) Set the manual vmin/vmax bounds. |
Detailed Description
class ColormapControls;Widget for selecting a colormap preset and configuring color range.
Presents two logical groups:
- Colormap selection — combo box populated with all
ColormapPresetvalues, each accompanied by a small painted gradient icon. - Color range — mode combo (Auto / Manual / Symmetric) with vmin/vmax
QDoubleSpinBoxwidgets visible only in Manual mode.
Emits [colormapChanged](/api_generated/Classes/classColormapControls.md#signal-colormapchanged) when the user picks a different preset, and [colorRangeChanged](/api_generated/Classes/classColormapControls.md#signal-colorrangechanged) when the range mode or bounds change.
Public Signals Documentation
signal colormapChanged
void colormapChanged(
CorePlotting::Colormaps::ColormapPreset preset
)Emitted when the user selects a different colormap preset.
signal colorRangeChanged
void colorRangeChanged(
ColorRangeConfig const & config
)Emitted when the color range mode or manual bounds change.
Public Functions Documentation
function ColormapControls
explicit ColormapControls(
QWidget * parent =nullptr
)function ~ColormapControls
~ColormapControls() override =defaultfunction colormapPreset
CorePlotting::Colormaps::ColormapPreset colormapPreset() constGet the currently selected colormap preset.
function setColormapPreset
void setColormapPreset(
CorePlotting::Colormaps::ColormapPreset preset
)Set the colormap preset (updates combo without emitting signal).
function colorRange
ColorRangeConfig colorRange() constGet the currently configured color range.
function setColorRange
void setColorRange(
ColorRangeConfig const & config
)Set the full color range config (updates UI without emitting signal).
function setColorRangeMode
void setColorRangeMode(
ColorRangeConfig::Mode mode
)Set just the color range mode.
function setColorRangeBounds
void setColorRangeBounds(
double vmin,
double vmax
)Set the manual vmin/vmax bounds.
Updated on 2026-11-13 at 20:25:41 +0000