MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / setTransform

Method setTransform

src/OpenColorIO/ColorSpace.cpp:476–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476void ColorSpace::setTransform(const ConstTransformRcPtr & transform,
477 ColorSpaceDirection dir)
478{
479 TransformRcPtr transformCopy;
480 if(transform) transformCopy = transform->createEditableCopy();
481
482 switch (dir)
483 {
484 case COLORSPACE_DIR_TO_REFERENCE:
485 getImpl()->m_toRefTransform = transformCopy;
486 break;
487 case COLORSPACE_DIR_FROM_REFERENCE:
488 getImpl()->m_fromRefTransform = transformCopy;
489 break;
490 }
491}
492
493std::ostream & operator<< (std::ostream & os, const ColorSpace & cs)
494{

Callers 5

_set_valueMethod · 0.95
test_MergeColorSpaceMethod · 0.95
test_canonical_nameMethod · 0.95
test_interfaceMethod · 0.95

Calls 2

getImplFunction · 0.50
createEditableCopyMethod · 0.45

Tested by 4

test_MergeColorSpaceMethod · 0.76
test_canonical_nameMethod · 0.76
test_interfaceMethod · 0.76