MeshLib Documentation
Loading...
Searching...
No Matches
MR::PalettePresets Class Reference

Class to save and load user palette presets. More...

#include <MRPalette.h>

Static Public Member Functions

static MRVIEWER_API const std::vector< std::string > & getPresetNames ()
 gets names of existing presets
 
static MRVIEWER_API bool loadPreset (const std::string &name, Palette &palette)
 
static MRVIEWER_API Expected< void > savePreset (const std::string &name, const Palette &palette)
 saves given palette to preset with given name
 
static MRVIEWER_API std::filesystem::path getPalettePresetsFolder ()
 returns path to presets folder
 

Detailed Description

Class to save and load user palette presets.

Member Function Documentation

◆ getPalettePresetsFolder()

static MRVIEWER_API std::filesystem::path MR::PalettePresets::getPalettePresetsFolder ( )
static

returns path to presets folder

◆ getPresetNames()

static MRVIEWER_API const std::vector< std::string > & MR::PalettePresets::getPresetNames ( )
static

gets names of existing presets

◆ loadPreset()

static MRVIEWER_API bool MR::PalettePresets::loadPreset ( const std::string & name,
Palette & palette )
static

loads existing preset to given palette
returns true if load was succeed

◆ savePreset()

static MRVIEWER_API Expected< void > MR::PalettePresets::savePreset ( const std::string & name,
const Palette & palette )
static

saves given palette to preset with given name


The documentation for this class was generated from the following file: