| 1416 | } |
| 1417 | |
| 1418 | void |
| 1419 | Project::addProjectDefaultLayer(const ImagePlaneDesc& comps) |
| 1420 | { |
| 1421 | const std::vector<std::string>& channels = comps.getChannels(); |
| 1422 | std::vector<std::string> row(2); |
| 1423 | |
| 1424 | row[0] = comps.getPlaneLabel(); |
| 1425 | std::string channelsStr; |
| 1426 | for (std::size_t i = 0; i < channels.size(); ++i) { |
| 1427 | channelsStr += channels[i]; |
| 1428 | if ( i < (channels.size() - 1) ) { |
| 1429 | channelsStr += ' '; |
| 1430 | } |
| 1431 | } |
| 1432 | row[1] = channelsStr; |
| 1433 | _imp->defaultLayersList->appendRow(row); |
| 1434 | } |
| 1435 | |
| 1436 | std::vector<std::string> |
| 1437 | Project::getProjectDefaultLayerNames() const |
no test coverage detected