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

Method setTransform

src/OpenColorIO/ViewTransform.cpp:228–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void ViewTransform::setTransform(const ConstTransformRcPtr & transform, ViewTransformDirection dir)
229{
230 TransformRcPtr transformCopy;
231 if (transform)
232 {
233 transformCopy = transform->createEditableCopy();
234 }
235
236 switch (dir)
237 {
238 case VIEWTRANSFORM_DIR_TO_REFERENCE:
239 getImpl()->m_toRefTransform = transformCopy;
240 break;
241 case VIEWTRANSFORM_DIR_FROM_REFERENCE:
242 getImpl()->m_fromRefTransform = transformCopy;
243 break;
244 }
245}
246
247
248namespace

Callers 3

_set_valueMethod · 0.95
test_copyMethod · 0.95
test_transformMethod · 0.95

Calls 2

getImplFunction · 0.50
createEditableCopyMethod · 0.45

Tested by 2

test_copyMethod · 0.76
test_transformMethod · 0.76