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

Method getVirtualDisplayView

src/OpenColorIO/Config.cpp:3913–3938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3911}
3912
3913const char * Config::getVirtualDisplayView(ViewType type, int index) const noexcept
3914{
3915 switch(type)
3916 {
3917 case VIEW_DISPLAY_DEFINED:
3918 {
3919 const ViewVec & views = getImpl()->m_virtualDisplay.m_views;
3920 if (index >= 0 && index < static_cast<int>(views.size()))
3921 {
3922 return views[index].m_name.c_str();
3923 }
3924 break;
3925 }
3926 case VIEW_SHARED:
3927 {
3928 const StringUtils::StringVec & views = getImpl()->m_virtualDisplay.m_sharedViews;
3929 if (index >= 0 && index < static_cast<int>(views.size()))
3930 {
3931 return views[index].c_str();
3932 }
3933 break;
3934 }
3935 }
3936
3937 return "";
3938}
3939
3940bool Config::AreVirtualViewsEqual(const ConstConfigRcPtr & first,
3941 const ConstConfigRcPtr & second,

Callers 8

PyConfig.cppFile · 0.80
saveFunction · 0.80
addUniqueVirtualViewsMethod · 0.80
processVirtualDisplayMethod · 0.80
handleRemoveMethod · 0.80
OCIO_ADD_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 2

getImplFunction · 0.50
sizeMethod · 0.45

Tested by 3

OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64