Skip to main content

ScatterColorConfigData

ScatterColorConfigData

Serializable configuration for external feature-based point coloring. More…

#include <ScatterColorConfig.hpp>

Public Attributes

Name
std::string color_mode
“fixed” or “by_feature”
std::optional< CorePlotting::FeatureColor::FeatureColorSourceDescriptor > color_source
Feature color source (only used when color_mode == “by_feature”).
std::string mapping_mode
“continuous” or “threshold”
std::string colormap_preset
Colormap name (matches ColormapPreset).
std::string color_range_mode
“auto”, “manual”, or “symmetric”
float color_range_vmin
Manual mode min value.
float color_range_vmax
Manual mode max value.
double threshold
Binarization threshold.
std::string above_color
Hex color for values >= threshold.
std::string below_color
Hex color for values < threshold.
float above_alpha
Alpha for above-threshold points.
float below_alpha
Alpha for below-threshold points.

Detailed Description

struct ScatterColorConfigData;

Serializable configuration for external feature-based point coloring.

When color_mode is “fixed”, points use the default GlyphStyleData color. When “by_feature”, points are colored by resolving color_source against the DataManager and mapping the resulting float values according to mapping_mode.

Public Attributes Documentation

variable color_mode

std::string color_mode = "fixed";

“fixed” or “by_feature”

variable color_source

std::optional< CorePlotting::FeatureColor::FeatureColorSourceDescriptor > color_source;

Feature color source (only used when color_mode == “by_feature”).

variable mapping_mode

std::string mapping_mode = "continuous";

“continuous” or “threshold”

variable colormap_preset

std::string colormap_preset = "Viridis";

Colormap name (matches ColormapPreset).

variable color_range_mode

std::string color_range_mode = "auto";

“auto”, “manual”, or “symmetric”

variable color_range_vmin

float color_range_vmin = 0.0f;

Manual mode min value.

variable color_range_vmax

float color_range_vmax = 1.0f;

Manual mode max value.

variable threshold

double threshold = 0.5;

Binarization threshold.

variable above_color

std::string above_color = "#FF4444";

Hex color for values >= threshold.

variable below_color

std::string below_color = "#3388FF";

Hex color for values < threshold.

variable above_alpha

float above_alpha = 0.9f;

Alpha for above-threshold points.

variable below_alpha

float below_alpha = 0.9f;

Alpha for below-threshold points.


Updated on 2026-11-13 at 20:25:39 +0000