| 60 | } |
| 61 | |
| 62 | ImageLayer::ImageLayer(const ImagePlaneDesc& comps) |
| 63 | : _layerName( QString::fromUtf8( comps.getPlaneLabel().c_str() ) ) |
| 64 | , _componentsPrettyName( QString::fromUtf8( comps.getChannelsLabel().c_str() ) ) |
| 65 | { |
| 66 | const std::vector<std::string>& channels = comps.getChannels(); |
| 67 | |
| 68 | for (std::size_t i = 0; i < channels.size(); ++i) { |
| 69 | _componentsName.push_back( QString::fromUtf8( channels[i].c_str() ) ); |
| 70 | } |
| 71 | _comps.reset( new ImagePlaneDesc(comps) ); |
| 72 | } |
| 73 | |
| 74 | int |
| 75 | ImageLayer::getHash(const ImageLayer& layer) |
nothing calls this directly
no test coverage detected