HDK
|
#include <OpenColorIO.h>
Static Public Member Functions | |
static ColorSpaceSetRcPtr | Create () |
Create an empty set of color spaces. More... | |
The ColorSpaceSet is a set of color spaces (i.e. no color space duplication) which could be the result of Config::getColorSpaces or built from scratch.
Definition at line 1933 of file OpenColorIO.h.
OCIO_NAMESPACE::ColorSpaceSet::~ColorSpaceSet | ( | ) |
Do not use (needed only for pybind11).
void OCIO_NAMESPACE::ColorSpaceSet::addColorSpace | ( | const ConstColorSpaceRcPtr & | cs | ) |
Add color space(s).
void OCIO_NAMESPACE::ColorSpaceSet::addColorSpaces | ( | const ConstColorSpaceSetRcPtr & | cs | ) |
void OCIO_NAMESPACE::ColorSpaceSet::clearColorSpaces | ( | ) |
Clear all color spaces.
|
static |
Create an empty set of color spaces.
ColorSpaceSetRcPtr OCIO_NAMESPACE::ColorSpaceSet::createEditableCopy | ( | ) | const |
Create a set containing a copy of all the color spaces.
ConstColorSpaceRcPtr OCIO_NAMESPACE::ColorSpaceSet::getColorSpace | ( | const char * | name | ) | const |
Will return null if the name is not found.
ConstColorSpaceRcPtr OCIO_NAMESPACE::ColorSpaceSet::getColorSpaceByIndex | ( | int | index | ) | const |
Return the color space using its index. This will be empty if an invalid index is specified.
Will return -1 if the name is not found.
Return the color space name using its index. This will be null if an invalid index is specified.
int OCIO_NAMESPACE::ColorSpaceSet::getNumColorSpaces | ( | ) | const |
Return the number of color spaces.
bool OCIO_NAMESPACE::ColorSpaceSet::hasColorSpace | ( | const char * | name | ) | const |
name |
bool OCIO_NAMESPACE::ColorSpaceSet::operator!= | ( | const ColorSpaceSet & | css | ) | const |
Return true if the two sets are different.
bool OCIO_NAMESPACE::ColorSpaceSet::operator== | ( | const ColorSpaceSet & | css | ) | const |
Return true if the two sets are equal.
Remove color space(s) using color space names (i.e. no role name).
void OCIO_NAMESPACE::ColorSpaceSet::removeColorSpaces | ( | const ConstColorSpaceSetRcPtr & | cs | ) |