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

Method addProjectDefaultLayer

Engine/Project.cpp:1418–1434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1416}
1417
1418void
1419Project::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
1436std::vector<std::string>
1437Project::getProjectDefaultLayerNames() const

Callers 1

addProjectLayerMethod · 0.80

Calls 3

appendRowMethod · 0.80
getChannelsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected