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

Method getTransform

src/OpenColorIO/ViewTransform.cpp:216–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216ConstTransformRcPtr ViewTransform::getTransform(ViewTransformDirection dir) const noexcept
217{
218 switch (dir)
219 {
220 case VIEWTRANSFORM_DIR_TO_REFERENCE:
221 return getImpl()->m_toRefTransform;
222 case VIEWTRANSFORM_DIR_FROM_REFERENCE:
223 return getImpl()->m_fromRefTransform;
224 }
225 return ConstTransformRcPtr();
226}
227
228void ViewTransform::setTransform(const ConstTransformRcPtr & transform, ViewTransformDirection dir)
229{

Callers 4

test_copyMethod · 0.95
test_transformMethod · 0.95
ViewTransform.cppFile · 0.45

Calls 1

getImplFunction · 0.50

Tested by 3

test_copyMethod · 0.76
test_transformMethod · 0.76