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

Method getAllInternalTransforms

src/OpenColorIO/Config.cpp:5476–5546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5474}
5475
5476void Config::Impl::getAllInternalTransforms(ConstTransformVec & transformVec) const
5477{
5478 // Grab all transforms from the ColorSpaces.
5479
5480 for (int i = 0; i < m_allColorSpaces->getNumColorSpaces(); ++i)
5481 {
5482 ConstTransformRcPtr tr
5483 = m_allColorSpaces->getColorSpaceByIndex(i)->getTransform(COLORSPACE_DIR_TO_REFERENCE);
5484 if (tr)
5485 {
5486 transformVec.push_back(tr);
5487 }
5488
5489 tr = m_allColorSpaces->getColorSpaceByIndex(i)->getTransform(COLORSPACE_DIR_FROM_REFERENCE);
5490 if (tr)
5491 {
5492 transformVec.push_back(tr);
5493 }
5494 }
5495
5496 // Grab all transforms from the Looks.
5497
5498 for (const auto & look : m_looksList)
5499 {
5500 ConstTransformRcPtr tr = look->getTransform();
5501 if (tr)
5502 {
5503 transformVec.push_back(tr);
5504 }
5505
5506 tr = look->getInverseTransform();
5507 if (tr)
5508 {
5509 transformVec.push_back(tr);
5510 }
5511 }
5512
5513 // Grab all transforms from the view transforms.
5514
5515 for (const auto & vt : m_viewTransforms)
5516 {
5517 ConstTransformRcPtr tr = vt->getTransform(VIEWTRANSFORM_DIR_TO_REFERENCE);
5518 if (tr)
5519 {
5520 transformVec.push_back(tr);
5521 }
5522
5523 tr = vt->getTransform(VIEWTRANSFORM_DIR_FROM_REFERENCE);
5524 if (tr)
5525 {
5526 transformVec.push_back(tr);
5527 }
5528 }
5529
5530 // Grab all transforms from the named transforms.
5531
5532 for (const auto & nt : m_allNamedTransforms)
5533 {

Callers 4

validateMethod · 0.80
isColorSpaceUsedMethod · 0.80
getCacheIDMethod · 0.80
isArchivableMethod · 0.80

Calls 5

getColorSpaceByIndexMethod · 0.80
getNumColorSpacesMethod · 0.45
getTransformMethod · 0.45
push_backMethod · 0.45
getInverseTransformMethod · 0.45

Tested by

no test coverage detected