Class to save and load user palette presets.
More...
#include <MRPalette.h>
|
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
|
|
Class to save and load user palette presets.
◆ 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: