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

Method getNumNamedTransforms

src/OpenColorIO/Config.cpp:3065–3089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3063
3064
3065int Config::getNumNamedTransforms(NamedTransformVisibility visibility) const noexcept
3066{
3067 int res = 0;
3068 switch (visibility)
3069 {
3070 case NAMEDTRANSFORM_ALL:
3071 {
3072 res = (int)getImpl()->m_allNamedTransforms.size();
3073 break;
3074 }
3075 case NAMEDTRANSFORM_ACTIVE:
3076 {
3077 res = (int)getImpl()->m_activeNamedTransformNames.size();
3078 break;
3079 }
3080 case NAMEDTRANSFORM_INACTIVE:
3081 {
3082 res = (int)getImpl()->m_inactiveNamedTransformNames.size();
3083 break;
3084 }
3085 }
3086
3087 return res;
3088
3089}
3090
3091const char * Config::getNamedTransformNameByIndex(NamedTransformVisibility visibility,
3092 int index) const noexcept

Callers 14

mainFunction · 0.80
PyConfig.cppFile · 0.80
saveFunction · 0.80
refreshMethod · 0.80
GetNamedTransformsFunction · 0.80
FindColorSpaceInfosFunction · 0.80
addNamedTransformsMethod · 0.80
handleInputOnlyMethod · 0.80
handleBaseOnlyMethod · 0.80
handleRemoveMethod · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 2

getImplFunction · 0.50
sizeMethod · 0.45

Tested by 3

OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64