MCPcopy Create free account
hub / github.com/commontk/CTK / parameters

Method parameters

Libs/CommandLineModules/Core/ctkCmdLineModuleFrontend.cpp:156–182  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

154
155//----------------------------------------------------------------------------
156QList<ctkCmdLineModuleParameter> ctkCmdLineModuleFrontend::parameters(const QString &type, ParameterFilters filters)
157{
158 ctkCmdLineModuleDescription description = this->moduleReference().description();
159 QList<ctkCmdLineModuleParameter> parameters;
160 foreach(ctkCmdLineModuleParameterGroup group, description.parameterGroups())
161 {
162 foreach(ctkCmdLineModuleParameter param, group.parameters())
163 {
164 if (filters.testFlag(Input) &&
165 (param.channel().isEmpty() || param.channel().compare("input", Qt::CaseInsensitive) == 0))
166 {
167 if (type.isEmpty() || param.tag().compare(type, Qt::CaseInsensitive) == 0)
168 {
169 parameters << param;
170 }
171 }
172 if (filters.testFlag(Output) && param.channel().compare("output", Qt::CaseInsensitive) == 0)
173 {
174 if (type.isEmpty() || param.tag().compare(type, Qt::CaseInsensitive) == 0)
175 {
176 parameters << param;
177 }
178 }
179 }
180 }
181 return parameters;
182}
183
184//----------------------------------------------------------------------------
185void ctkCmdLineModuleFrontend::resetValues()

Callers

nothing calls this directly

Calls 2

moduleReferenceMethod · 0.95
descriptionMethod · 0.45

Tested by

no test coverage detected