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

Function transformIsEmpty

src/OpenColorIO/ConfigUtils.cpp:989–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989bool transformIsEmpty(const ConstTransformRcPtr & tr)
990{
991 if (tr->getTransformType() == TRANSFORM_TYPE_GROUP)
992 {
993 ConstGroupTransformRcPtr gt = DynamicPtrCast<const GroupTransform>(tr);
994 if (gt->getNumTransforms() == 0)
995 {
996 return true;
997 }
998 }
999 return false;
1000}
1001
1002// Update the reference space used by a color space's transforms.
1003// The argument is a group transform that converts from the current to the new ref. space.

Callers 2

updateReferenceViewFunction · 0.85

Calls 2

getTransformTypeMethod · 0.80
getNumTransformsMethod · 0.45

Tested by

no test coverage detected