#include <lib_scene_color_converter.h>
Class to convert color spaces in and between scenes.
Public Types | |
enum class | CONVERSION_FLAGS { NONE , ADD_UNDO } |
Public Member Functions | |
enum SceneColorConverter::CONVERSION_FLAGS | MAXON_ENUM_FLAGS_CLASS (CONVERSION_FLAGS) |
maxon::Result< void > | Init (BaseDocument *doc, const maxon::CString &inputColorSpaceLowName, const maxon::CString &inputColorSpaceHighName, const maxon::CString &renderColorSpaceName, CONVERSION_FLAGS flags=CONVERSION_FLAGS::ADD_UNDO) |
maxon::Result< Bool > | ConvertObject (BaseDocument *doc, BaseList2D *op, maxon::HashSet< BaseList2D * > &procesedObjects) |
maxon::Result< Bool > | ConvertObjects (BaseDocument *doc, maxon::Block< BaseList2D * > objects, maxon::HashSet< BaseList2D * > &procesedObjects) |
Private Member Functions | |
SceneColorConverter () | |
~SceneColorConverter () | |
Alloc/Free | |
static SceneColorConverter * | Alloc () |
static void | Free (SceneColorConverter *&conv) |
|
strong |
|
private |
|
private |
enum SceneColorConverter::CONVERSION_FLAGS MAXON_ENUM_FLAGS_CLASS | ( | CONVERSION_FLAGS | ) |
|
static |
|
static |
maxon::Result<void> Init | ( | BaseDocument * | doc, |
const maxon::CString & | inputColorSpaceLowName, | ||
const maxon::CString & | inputColorSpaceHighName, | ||
const maxon::CString & | renderColorSpaceName, | ||
CONVERSION_FLAGS | flags = CONVERSION_FLAGS::ADD_UNDO |
||
) |
Initializes the color converter.
[in] | doc | The document from which the color settings are taken. |
[in] | inputColorSpaceLowName | Name of the new input color space. |
[in] | inputColorSpaceHighName | Name of the new input color space. |
[in] | renderColorSpaceName | Name of the new input color space. |
[in] | flags | Conversion flags. |
maxon::Result<Bool> ConvertObject | ( | BaseDocument * | doc, |
BaseList2D * | op, | ||
maxon::HashSet< BaseList2D * > & | procesedObjects | ||
) |
Converts the colors of a single object.
[in] | doc | The document from which the color settings are taken. This must be the same that was used to initialize this class. |
[in] | op | Object to convert. |
[out] | procesedObjects | A HashSet that will contain all the converted objects when the function returns. |
maxon::Result<Bool> ConvertObjects | ( | BaseDocument * | doc, |
maxon::Block< BaseList2D * > | objects, | ||
maxon::HashSet< BaseList2D * > & | procesedObjects | ||
) |
Converts the colors of multiple objects
[in] | doc | The document from which the color settings are taken. This must be the same that was used to initialize this class. |
[in] | objects | Objects to convert. |
[out] | procesedObjects | A HashSet that will contain all the converted objects when the function returns. |