#include <base_preset_asset.h>
BasePresetAssetInterface allows to implement details for preset assets.
Public Member Functions | |
MAXON_METHOD Result< void > | Apply () const |
MAXON_METHOD Result< Url > | GeneratePreview (Int previewSize, const ProgressRef &progressRef, Int progressIndex) const |
MAXON_METHOD Result< void > | ConvertFromLegacyBrowser (Int32 pluginId, const Block< const Char > &memBlock, const BaseContainer &settings, const String &name, DataDictionary &metaProperties, AddAssetMetaData &additionalMetaData, AddAssetDepencendyStruct &addDependencyStruct, ResolveAssetDependenciesStruct &resolveAssets) |
MAXON_METHOD Result< void > | Serialize (const OutputStreamRef &outputStream) const |
Private Member Functions | |
MAXON_INTERFACE (BasePresetAssetInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.asset.preset.base") | |
|
private |
MAXON_METHOD Result<void> Apply | ( | ) | const |
Apply loads the asset/preset.
MAXON_METHOD Result<Url> GeneratePreview | ( | Int | previewSize, |
const ProgressRef & | progressRef, | ||
Int | progressIndex | ||
) | const |
GeneratePreview implements the preview calculation of this preset type.
[in] | previewSize | Desired preview size. |
[in] | progressRef | Progress object to use. |
[in] | progressIndex | Progress Index to use. |
MAXON_METHOD Result<void> ConvertFromLegacyBrowser | ( | Int32 | pluginId, |
const Block< const Char > & | memBlock, | ||
const BaseContainer & | settings, | ||
const String & | name, | ||
DataDictionary & | metaProperties, | ||
AddAssetMetaData & | additionalMetaData, | ||
AddAssetDepencendyStruct & | addDependencyStruct, | ||
ResolveAssetDependenciesStruct & | resolveAssets | ||
) |
ConvertFromLegacyBrowser implements the conversion from the old c4d content browser.
[in] | pluginId | Old c4d plugin id. |
[in] | memBlock | Original browser data. |
[in] | settings | Original browser settings. |
[in] | name | Preset/Asset name. |
[in] | metaProperties | Additional meta properties. |
[in] | additionalMetaData | Additional meta data. |
[in] | addDependencyStruct | Asset dependencies. |
[in] | resolveAssets | Resolve asset helper struct. |
MAXON_METHOD Result<void> Serialize | ( | const OutputStreamRef & | outputStream | ) | const |
Serialize implements the serialization of the data to disk.
[in] | outputStream | Stream to store the data. |