MCPcopy Create free account
hub / github.com/ImageEngine/cortex / channelNames

Method channelNames

src/IECoreImage/ImagePrimitive.cpp:444–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void ImagePrimitive::channelNames( vector<string> &names ) const
445{
446 // copy in the names of channels from the map
447 names.clear();
448
449 for( const auto &channel : channels )
450 {
451 if( channelValid( channel.second.get() ) )
452 {
453 names.push_back( channel.first );
454 }
455 }
456}
457

Callers 2

testLoadSaveMethod · 0.95
testChannelNamesMethod · 0.95

Calls 3

channelValidFunction · 0.85
clearMethod · 0.45
getMethod · 0.45

Tested by 2

testLoadSaveMethod · 0.76
testChannelNamesMethod · 0.76