Inviwo
0.9.10.1
Inviwo documentation
|
Manage property presets. Has a set of global application presets, a set of workspace presets, and handles property specific presets. More...
#include <propertypresetmanager.h>
Public Member Functions | |
PropertyPresetManager (InviwoApplication *app) | |
bool | loadPreset (const std::string &name, Property *property, PropertyPresetType type) const |
void | savePreset (const std::string &name, Property *property, PropertyPresetType type) |
bool | removePreset (const std::string &name, PropertyPresetType type, Property *property=nullptr) |
std::vector< std::string > | getAvailablePresets (Property *property, PropertyPresetTypes types) const |
void | clearPropertyPresets (Property *property) |
void | clearWorkspacePresets () |
void | loadWorkspacePresets (Deserializer &d) |
void | saveWorkspacePresets (Serializer &s) |
Static Public Member Functions | |
static void | appendPropertyPresets (Property *target, Property *source) |
static util::OnScopeExit | scopedSerializationModeAll (Property *property) |
Manage property presets. Has a set of global application presets, a set of workspace presets, and handles property specific presets.
|
static |
Append all Presets in property source to property target. If the Preset already exists in target it will be overwritten. The properties should be of the same type.
|
static |
Set PropertySerializationMode to All on property and all its sub properties. The returned guard will reset the PropertySerializationModes to their original values when it goes out of scope. This is useful when copying properties.