----------------------------------------------------------------------------
| 154 | |
| 155 | //---------------------------------------------------------------------------- |
| 156 | QList<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 | //---------------------------------------------------------------------------- |
| 185 | void ctkCmdLineModuleFrontend::resetValues() |
nothing calls this directly
no test coverage detected