| 5379 | } |
| 5380 | |
| 5381 | bool |
| 5382 | Node::hasAtLeastOneChannelToProcess() const |
| 5383 | { |
| 5384 | std::map<int, ChannelSelector>::const_iterator foundSelector = _imp->channelsSelectors.find(-1); |
| 5385 | |
| 5386 | if ( foundSelector == _imp->channelsSelectors.end() ) { |
| 5387 | return true; |
| 5388 | } |
| 5389 | if ( _imp->enabledChan[0].lock() ) { |
| 5390 | std::bitset<4> processChannels; |
| 5391 | processChannels[0] = _imp->enabledChan[0].lock()->getValue(); |
| 5392 | processChannels[1] = _imp->enabledChan[1].lock()->getValue(); |
| 5393 | processChannels[2] = _imp->enabledChan[2].lock()->getValue(); |
| 5394 | processChannels[3] = _imp->enabledChan[3].lock()->getValue(); |
| 5395 | if (!processChannels[0] && !processChannels[1] && !processChannels[2] && !processChannels[3]) { |
| 5396 | return false; |
| 5397 | } |
| 5398 | } |
| 5399 | |
| 5400 | return true; |
| 5401 | } |
| 5402 | |
| 5403 | void |
| 5404 | Node::replaceCustomDataInlabel(const QString & data) |
no test coverage detected