Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::PropertyPresetManager Class Reference

Manage property presets. Has a set of global application presets, a set of workspace presets, and handles property specific presets. More...

#include <inviwo/core/properties/propertypresetmanager.h>

Public Member Functions

void clearPropertyPresets (Property *property)
void clearWorkspacePresets ()
std::vector< std::string > getAvailablePresets (Property *property, PropertyPresetTypes types) const
bool loadPreset (const std::string &name, Property *property, PropertyPresetType type) const
void loadWorkspacePresets (Deserializer &d)
 PropertyPresetManager (InviwoApplication *app)
bool removePreset (const std::string &name, PropertyPresetType type, Property *property=nullptr)
void savePreset (const std::string &name, Property *property, PropertyPresetType type)
void saveWorkspacePresets (Serializer &s)

Static Public Member Functions

static void appendPropertyPresets (Property *target, Property *source)
static util::OnScopeExit scopedSerializationModeAll (Property *property)

Detailed Description

Manage property presets. Has a set of global application presets, a set of workspace presets, and handles property specific presets.

Member Function Documentation

◆ appendPropertyPresets()

void inviwo::PropertyPresetManager::appendPropertyPresets ( Property * target,
Property * source )
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.

◆ scopedSerializationModeAll()

util::OnScopeExit inviwo::PropertyPresetManager::scopedSerializationModeAll ( Property * property)
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.


The documentation for this class was generated from the following file:
  • include/inviwo/core/properties/propertypresetmanager.h