f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Parsing `f3d::colormap_t` by name

Open michaelmigliore opened this issue 2 months ago • 3 comments

Is your feature request related to a problem? Please describe. Currently, it's only possible to parse colormap by value and color lists. See function colormap_t parse(const std::string& str) in options_tools.h.

Describe the solution you'd like However, when colormap presets are available, we should be able to parse by name. For example, it should be possible to type in the console: set model.scivis.colormap viridis

michaelmigliore avatar Oct 29 '25 21:10 michaelmigliore

That requires some applicative logic to be moved to library, I'm not sure we want that.

mwestphal avatar Oct 29 '25 22:10 mwestphal

It feels like it would be a very good feature for libf3d apps. I'm thinking of the web app where I'd love to have a combox with named colormaps.

Meakk avatar Oct 30 '25 07:10 Meakk

It feels like it would be a very good feature for libf3d apps. I'm thinking of the web app where I'd love to have a combox with named colormaps.

Indeed, that would be nice, but it means that all colormaps should be embedded in the lib and not shipped as files as they are now.

mwestphal avatar Oct 30 '25 07:10 mwestphal