5 #ifndef INCLUDED_OCIO_OPENCOLORAPPHELPERS_H
6 #define INCLUDED_OCIO_OPENCOLORAPPHELPERS_H
10 #ifndef OCIO_NAMESPACE
11 #error This header cannot be used directly. Use <OpenColorIO/OpenColorIO.h> instead.
108 virtual void setRole(
const char * role) noexcept = 0;
109 virtual const char * getRole()
const noexcept = 0;
116 virtual void setIncludeColorSpaces(
bool include) noexcept = 0;
117 virtual bool getIncludeColorSpaces()
const noexcept = 0;
130 virtual void setIncludeNamedTransforms(
bool include) noexcept = 0;
131 virtual bool getIncludeNamedTransforms()
const noexcept = 0;
138 virtual void setAppCategories(
const char * appCategories) noexcept = 0;
139 virtual const char * getAppCategories()
const noexcept = 0;
145 virtual void setEncodings(
const char * encodings) noexcept = 0;
146 virtual const char * getEncodings()
const noexcept = 0;
153 virtual void setUserCategories(
const char * userCategories) noexcept = 0;
154 virtual const char * getUserCategories()
const noexcept = 0;
161 virtual void setIncludeRoles(
bool include) noexcept = 0;
162 virtual bool getIncludeRoles()
const noexcept = 0;
177 virtual void addColorSpace(
const char *
name) noexcept = 0;
179 virtual size_t getNumAddedColorSpaces()
const noexcept = 0;
180 virtual const char * getAddedColorSpace(
size_t index)
const noexcept = 0;
181 virtual void clearAddedColorSpaces() noexcept = 0;
220 virtual size_t getNumColorSpaces()
const noexcept = 0;
225 virtual const char *
getName(
size_t idx)
const noexcept = 0;
230 virtual const char * getUIName(
size_t idx)
const noexcept = 0;
236 virtual size_t getIndexFromName(
const char *
name)
const noexcept = 0;
237 virtual size_t getIndexFromUIName(
const char * name)
const noexcept = 0;
239 virtual const char *
getDescription(
size_t idx)
const noexcept = 0;
240 virtual const char * getFamily(
size_t idx)
const noexcept = 0;
246 virtual size_t getNumHierarchyLevels(
size_t idx)
const noexcept = 0;
247 virtual const char * getHierarchyLevel(
size_t idx,
size_t i)
const noexcept = 0;
250 virtual const char * getNameFromUIName(
const char * uiName)
const noexcept = 0;
252 virtual const char * getUINameFromName(
const char * name)
const noexcept = 0;
266 namespace ColorSpaceHelpers
277 const char * transformFilePath,
278 const char * categories,
279 const char * connectionColorSpaceName);
283 namespace DisplayViewHelpers
295 const char * workingName,
296 const char * displayName,
297 const char * viewName,
302 const char * workingName,
303 const char * displayName,
304 const char * viewName,
316 const char * displayName,
317 const char * viewName,
318 const char * lookDefinition,
319 const char * colorSpaceName,
320 const char * colorSpaceFamily,
321 const char * colorSpaceDescription,
322 const char * categories,
323 const char * transformFilePath,
324 const char * connectionColorSpaceName);
331 const char * displayName,
332 const char * viewName);
387 virtual void setLooksOverrideEnabled(
bool enable) = 0;
388 virtual bool getLooksOverrideEnabled()
const = 0;
403 virtual void setLooksOverride(
const char * looks) = 0;
404 virtual const char * getLooksOverride()
const = 0;
446 virtual void setSliderMinEdge(
float sliderMixingMinEdge) noexcept = 0;
449 virtual float getSliderMinEdge()
const noexcept = 0;
452 virtual void setSliderMaxEdge(
float sliderMixingMaxEdge) noexcept = 0;
455 virtual float getSliderMaxEdge()
const noexcept = 0;
458 virtual float sliderToMixing(
float sliderUnits)
const noexcept = 0;
461 virtual float mixingToSlider(
float mixingUnits)
const noexcept = 0;
485 virtual size_t getNumMixingSpaces()
const noexcept = 0;
486 virtual const char * getMixingSpaceUIName(
size_t idx)
const = 0;
487 virtual size_t getSelectedMixingSpaceIdx()
const noexcept = 0;
488 virtual void setSelectedMixingSpaceIdx(
size_t idx) = 0;
489 virtual void setSelectedMixingSpace(
const char * mixingSpace) = 0;
491 virtual bool isPerceptuallyUniform()
const noexcept = 0;
494 virtual size_t getNumMixingEncodings()
const noexcept = 0;
495 virtual const char * getMixingEncodingName(
size_t idx)
const = 0;
496 virtual size_t getSelectedMixingEncodingIdx()
const noexcept = 0;
497 virtual void setSelectedMixingEncodingIdx(
size_t idx) = 0;
498 virtual void setSelectedMixingEncoding(
const char * mixingEncoding) = 0;
504 const char * displayName,
505 const char * viewName,
509 virtual MixingSlider & getSlider(
float sliderMixingMinEdge,
510 float sliderMixingMaxEdge) noexcept = 0;
526 #endif // INCLUDED_OCIO_OPENCOLORAPPHELPERS_H
OCIOEXPORT void AddDisplayView(ConfigRcPtr &config, const char *displayName, const char *viewName, const char *lookDefinition, const char *colorSpaceName, const char *colorSpaceFamily, const char *colorSpaceDescription, const char *categories, const char *transformFilePath, const char *connectionColorSpaceName)
PXL_API const char * getDescription(const ColorSpace *space)
Return the description of the color space.
OCIOEXPORT void RemoveDisplayView(ConfigRcPtr &config, const char *displayName, const char *viewName)
IMF_EXPORT IMATH_NAMESPACE::V3f direction(const IMATH_NAMESPACE::Box2i &dataWindow, const IMATH_NAMESPACE::V2f &pixelPosition)
OCIO_SHARED_PTR< ColorSpaceMenuParameters > ColorSpaceMenuParametersRcPtr
OCIO_SHARED_PTR< const Transform > ConstTransformRcPtr
OCIO_SHARED_PTR< LegacyViewingPipeline > LegacyViewingPipelineRcPtr
OCIOEXPORT ConstProcessorRcPtr GetProcessor(const ConstConfigRcPtr &config, const ConstContextRcPtr &context, const char *workingName, const char *displayName, const char *viewName, const ConstMatrixTransformRcPtr &channelView, TransformDirection direction)
OCIO_SHARED_PTR< const ColorSpaceMenuParameters > ConstColorSpaceMenuParametersRcPtr
OCIO_SHARED_PTR< const Context > ConstContextRcPtr
OCIOEXPORT ConstProcessorRcPtr GetIdentityProcessor(const ConstConfigRcPtr &config)
Get an identity processor containing only the ExposureContrastTransforms.
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
OCIO_SHARED_PTR< MixingColorSpaceManager > MixingColorSpaceManagerRcPtr
OCIOEXPORT void AddColorSpace(ConfigRcPtr &config, const char *name, const char *transformFilePath, const char *categories, const char *connectionColorSpaceName)
OCIO_SHARED_PTR< const Processor > ConstProcessorRcPtr
GLuint const GLchar * name
GA_API const UT_StringHolder transform
OCIO_SHARED_PTR< const DisplayViewTransform > ConstDisplayViewTransformRcPtr
OCIO_SHARED_PTR< ColorSpaceMenuHelper > ColorSpaceMenuHelperRcPtr
OCIO_SHARED_PTR< const Config > ConstConfigRcPtr
OCIO_SHARED_PTR< const MatrixTransform > ConstMatrixTransformRcPtr
OCIO_SHARED_PTR< Config > ConfigRcPtr
LeafData & operator=(const LeafData &)=delete
OCIOEXPORT std::ostream & operator<<(std::ostream &, const ColorSpaceMenuParameters &)