|
scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
|
Colormap data structure and data-to-color mapping utilities. More...


Go to the source code of this file.
Classes | |
| struct | scimesh::ColorMap |
| Self-contained colormap — owns a colour lookup table and supports linearly interpolated sampling. More... | |
| struct | scimesh::ApplyColormapResult |
Result of apply_colormap() for a single dataset. More... | |
| struct | scimesh::MultiApplyColormapResult |
Aggregate result of apply_colormap() for multiple datasets. More... | |
Namespaces | |
| namespace | scimesh |
Functions | |
| ApplyColormapResult | scimesh::apply_colormap (const std::vector< float > &data, const ColorMap &colormap, float vmin=NAN, float vmax=NAN, const Color &nan_color=Color{0.5f, 0.5f, 0.5f, 1.0f}, float lo_pct=0.0f, float hi_pct=100.0f) |
| Map a single vector of numeric data to RGBA colours using a colormap. | |
| MultiApplyColormapResult | scimesh::apply_colormap (const std::vector< std::vector< float > > &datasets, const ColorMap &colormap, float vmin=NAN, float vmax=NAN, const Color &nan_color=Color{0.5f, 0.5f, 0.5f, 1.0f}, float lo_pct=0.0f, float hi_pct=100.0f, bool global_range=false) |
| Map multiple vectors of numeric data through a single colormap. | |
Colormap data structure and data-to-color mapping utilities.
Provides a self-contained ColorMap type for sampling colors at normalized positions, and the apply_colormap() family of functions that map per-vertex (or per-element) scalar data to RGBA colors.
ColorMap owns its LUT, no external colormap library required.ColorMap::from_uint8_colors() duck-typed factory converts scibar colormaps without any #include dependency on scibar headers.Definition in file colormap.h.