scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
Loading...
Searching...
No Matches
colormap.cpp File Reference

Implementation of the ColorMap and apply_colormap() functions. More...

#include <scimesh/colormap.h>
#include <algorithm>
#include <stdexcept>
#include <limits>
Include dependency graph for colormap.cpp:

Go to the source code of this file.

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.
 

Detailed Description

Implementation of the ColorMap and apply_colormap() functions.

Definition in file colormap.cpp.

Variable Documentation

◆ hi

float hi

Definition at line 108 of file colormap.cpp.

◆ lo

float lo

Definition at line 108 of file colormap.cpp.