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

Method getChannelOption

Engine/ImagePlaneDesc.cpp:253–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252
253ChoiceOption
254ImagePlaneDesc::getChannelOption(int channelIndex) const
255{
256 if (channelIndex < 0 || channelIndex >= (int)_channels.size()) {
257 assert(false);
258 return ChoiceOption("","","");
259 }
260 std::string optionID, optionLabel;
261 optionLabel += _planeLabel;
262 optionID += _planeID;
263 if ( !optionLabel.empty() ) {
264 optionLabel += '.';
265 }
266 if (!optionID.empty()) {
267 optionID += '.';
268 }
269
270 // For the option label, append the name of the channel
271 optionLabel += _channels[channelIndex];
272 optionID += _channels[channelIndex];
273
274 return ChoiceOption(optionID, optionLabel, "");
275}
276
277ChoiceOption
278ImagePlaneDesc::getPlaneOption() const

Callers 3

getMaskChannelMethod · 0.80

Calls 3

ChoiceOptionFunction · 0.85
emptyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected