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

Method removeActiveDisplay

src/OpenColorIO/Config.cpp:4181–4206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4179}
4180
4181void Config::removeActiveDisplay(const char * display)
4182{
4183 if( !display || !display[0] )
4184 {
4185 throw Exception("Active display could not be removed from config, display name was empty.");
4186 }
4187
4188 auto it = std::find( getImpl()->m_activeDisplays.begin(),
4189 getImpl()->m_activeDisplays.end(), display );
4190
4191 if( it != getImpl()->m_activeDisplays.end() )
4192 {
4193 getImpl()->m_activeDisplays.erase(it);
4194 }
4195 else
4196 {
4197 std::ostringstream os;
4198 os << "Active display could not be removed from config, display '"
4199 << display << "' was not found.";
4200 throw Exception(os.str().c_str());
4201 }
4202
4203 getImpl()->m_displayCache.clear();
4204 AutoMutex lock(getImpl()->m_cacheidMutex);
4205 getImpl()->resetCacheIDs();
4206}
4207
4208void Config::clearActiveDisplays()
4209{

Callers 2

OCIO_ADD_TESTFunction · 0.80

Calls 6

eraseMethod · 0.80
resetCacheIDsMethod · 0.80
getImplFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by 2

OCIO_ADD_TESTFunction · 0.64