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

Method removeActiveView

src/OpenColorIO/Config.cpp:4281–4306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4279}
4280
4281void Config::removeActiveView(const char * view)
4282{
4283 if( !view || !view[0] )
4284 {
4285 throw Exception("Active view could not be removed from config, view name was empty.");
4286 }
4287
4288 auto it = std::find( getImpl()->m_activeViews.begin(),
4289 getImpl()->m_activeViews.end(), view );
4290
4291 if(it!=getImpl()->m_activeViews.end())
4292 {
4293 getImpl()->m_activeViews.erase(it);
4294 }
4295 else
4296 {
4297 std::ostringstream os;
4298 os << "Active view could not be removed from config, view '"
4299 << view << "' was not found.";
4300 throw Exception(os.str().c_str());
4301 }
4302
4303 getImpl()->m_displayCache.clear();
4304 AutoMutex lock(getImpl()->m_cacheidMutex);
4305 getImpl()->resetCacheIDs();
4306}
4307
4308void Config::clearActiveViews()
4309{

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