MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetFilters

Method GetFilters

plugins/base/utils/filter-selection.cpp:92–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::vector<OBSWeakSource>
93FilterSelection::GetFilters(const SourceSelection &source) const
94{
95 switch (_type) {
96 case Type::ALL:
97 return getFiltersOfSource(source.GetSource());
98 case Type::SOURCE:
99 return {GetWeakFilterByName(
100 source.GetSource(),
101 _filter ? GetWeakSourceName(_filter).c_str()
102 : _filterName.c_str())};
103 case Type::VARIABLE: {
104 auto var = _variable.lock();
105 if (!var) {
106 return {};
107 }
108 return {GetWeakFilterByName(source.GetSource(),
109 var->Value().c_str())};
110 }
111 default:
112 break;
113 }
114 return {};
115}
116
117void FilterSelection::ResolveVariables()
118{

Callers 10

CheckConditionMethod · 0.80
FilterChangedMethod · 0.80
GetSettingsClickedMethod · 0.80
UpdateEntryDataMethod · 0.80
PerformActionMethod · 0.80
UpdateEntryDataMethod · 0.80
FilterChangedMethod · 0.80
GetSettingsClickedMethod · 0.80

Calls 6

getFiltersOfSourceFunction · 0.85
GetWeakFilterByNameFunction · 0.85
GetWeakSourceNameFunction · 0.85
GetSourceMethod · 0.45
c_strMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected