| 251 | |
| 252 | |
| 253 | ChoiceOption |
| 254 | ImagePlaneDesc::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 | |
| 277 | ChoiceOption |
| 278 | ImagePlaneDesc::getPlaneOption() const |
no test coverage detected