Named Transform¶
-
class NamedTransform¶
-
provides a way for config authors to include a set of color transforms that are independent of the color space being processed. For example a “utility
curve” transform where there is no need to convert to or from a reference space.
Public Functions
-
virtual NamedTransformRcPtr createEditableCopy() const = 0¶
-
virtual const char *getName() const noexcept = 0¶
-
virtual void setName(const char *name) noexcept = 0¶
-
virtual size_t getNumAliases() const noexcept = 0¶
Aliases can be used instead of the name. They must be unique within the config.
-
virtual const char *getAlias(size_t idx) const noexcept = 0¶
Return empty string if idx is out of range.
-
virtual void addAlias(const char *alias) noexcept = 0¶
Nothing is done if alias is NULL or empty, if it is already there, or if it is already the named transform name.
-
virtual void removeAlias(const char *alias) noexcept = 0¶
Does nothing if alias is not present.
-
virtual void clearAliases() noexcept = 0¶
-
virtual const char *getFamily() const noexcept = 0¶
See also
-
virtual void setFamily(const char *family) noexcept = 0¶
See also
-
virtual const char *getDescription() const noexcept = 0¶
-
virtual void setDescription(const char *description) noexcept = 0¶
-
virtual bool hasCategory(const char *category) const noexcept = 0¶
See also
-
virtual void addCategory(const char *category) noexcept = 0¶
See also
-
virtual void removeCategory(const char *category) noexcept = 0¶
See also
-
virtual int getNumCategories() const noexcept = 0¶
See also
-
virtual const char *getCategory(int index) const noexcept = 0¶
See also
-
virtual void clearCategories() noexcept = 0¶
See also
-
virtual const char *getEncoding() const noexcept = 0¶
A NamedTransform is not a color space and does not have an encoding in the same sense. However, it may be useful to associate a color space encoding that the transform is intended to be used with, for organizational purposes.
-
virtual void setEncoding(const char *encoding) noexcept = 0¶
-
virtual ConstTransformRcPtr getTransform(TransformDirection dir) const = 0¶
-
virtual void setTransform(const ConstTransformRcPtr &transform, TransformDirection dir) = 0¶
-
NamedTransform(const NamedTransform&) = delete¶
-
NamedTransform &operator=(const NamedTransform&) = delete¶
-
virtual ~NamedTransform() = default¶
Public Static Functions
-
static NamedTransformRcPtr Create()¶
-
virtual NamedTransformRcPtr createEditableCopy() const = 0¶
-
std::ostream &OpenColorIO_v2_1::operator<<(std::ostream&, const NamedTransform&)¶
-
typedef std::shared_ptr<const NamedTransform> OpenColorIO_v2_1::ConstNamedTransformRcPtr¶
-
typedef std::shared_ptr<NamedTransform> OpenColorIO_v2_1::NamedTransformRcPtr¶