MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / ImageLayer

Method ImageLayer

Engine/PyNode.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62ImageLayer::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
74int
75ImageLayer::getHash(const ImageLayer& layer)

Callers

nothing calls this directly

Calls 4

getChannelsMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected