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

Method addSharedView

src/OpenColorIO/Config.cpp:3361–3384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3359}
3360
3361void Config::addSharedView(const char * view, const char * viewTransform,
3362 const char * colorSpace, const char * looks,
3363 const char * rule, const char * description)
3364{
3365 if (!view || !*view)
3366 {
3367 throw Exception("Shared view could not be added to config, view name has to be a "
3368 "non-empty name.");
3369 }
3370
3371 if (!colorSpace || !*colorSpace)
3372 {
3373 throw Exception("Shared view could not be added to config, color space name has to be a "
3374 "non-empty name.");
3375 }
3376
3377 ViewVec & views = getImpl()->m_sharedViews;
3378 AddView(views, view, viewTransform, colorSpace, looks, rule, description);
3379
3380 getImpl()->m_displayCache.clear();
3381
3382 AutoMutex lock(getImpl()->m_cacheidMutex);
3383 getImpl()->resetCacheIDs();
3384}
3385
3386void Config::removeSharedView(const char * view)
3387{

Callers 9

_add_itemMethod · 0.80
loadFunction · 0.80
addUniqueSharedViewsMethod · 0.80
processSharedViewsMethod · 0.80
handleRemoveMethod · 0.80
test_shared_viewsMethod · 0.80
test_virtual_displayMethod · 0.80
OCIO_ADD_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 4

AddViewFunction · 0.85
resetCacheIDsMethod · 0.80
getImplFunction · 0.50
clearMethod · 0.45

Tested by 4

test_shared_viewsMethod · 0.64
test_virtual_displayMethod · 0.64
OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64