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

Method setActiveDisplays

src/OpenColorIO/Config.cpp:4133–4150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4131}
4132
4133void Config::setActiveDisplays(const char * displays)
4134{
4135 getImpl()->m_activeDisplays.clear();
4136 getImpl()->m_activeDisplays = SplitStringEnvStyle(displays);
4137
4138 // SplitStringEnvStyle needs to always return a result, even if empty, for look parsing.
4139 // However, this does not count as an active display, so delete it.
4140 if( getImpl()->m_activeDisplays.size() == 1 &&
4141 getImpl()->m_activeDisplays[0].empty() )
4142 {
4143 getImpl()->m_activeDisplays.clear();
4144 }
4145
4146 getImpl()->m_displayCache.clear();
4147
4148 AutoMutex lock(getImpl()->m_cacheidMutex);
4149 getImpl()->resetCacheIDs();
4150}
4151
4152const char * Config::getActiveDisplays() const
4153{

Callers 8

test_interfaceMethod · 0.95
loadFunction · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45

Calls 6

SplitStringEnvStyleFunction · 0.85
resetCacheIDsMethod · 0.80
getImplFunction · 0.50
clearMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by 7

test_interfaceMethod · 0.76
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36