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

Method setDisplayTemporary

src/OpenColorIO/Config.cpp:4376–4386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4374}
4375
4376void Config::setDisplayTemporary(int index, bool isTemporary) noexcept
4377{
4378 if (index >= 0 && index < static_cast<int>(getImpl()->m_displays.size()))
4379 {
4380 getImpl()->m_displays[index].second.m_temporary = isTemporary;
4381
4382 getImpl()->m_displayCache.clear();
4383 AutoMutex lock(getImpl()->m_cacheidMutex);
4384 getImpl()->resetCacheIDs();
4385 }
4386}
4387
4388int Config::getNumViews(ViewType type, const char * display) const
4389{

Callers 3

PyConfig.cppFile · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 4

resetCacheIDsMethod · 0.80
getImplFunction · 0.50
sizeMethod · 0.45
clearMethod · 0.45

Tested by 2

OCIO_ADD_TESTFunction · 0.64