overridden from OFX::Host::ImageEffect::ClipInstance Connected - Says whether the clip is actually connected at the moment.
| 473 | // |
| 474 | // Says whether the clip is actually connected at the moment. |
| 475 | bool |
| 476 | OfxClipInstance::getConnected() const |
| 477 | { |
| 478 | ///a roto brush is always connected |
| 479 | EffectInstancePtr effect = getEffectHolder(); |
| 480 | |
| 481 | assert(effect); |
| 482 | if ( (getName() == CLIP_OFX_ROTO) && effect->getNode()->isRotoNode() ) { |
| 483 | return true; |
| 484 | } else { |
| 485 | if (_isOutput) { |
| 486 | return effect->hasOutputConnected(); |
| 487 | } else { |
| 488 | int inputNb = getInputNb(); |
| 489 | EffectInstancePtr input; |
| 490 | |
| 491 | if ( !effect->getNode()->isMaskEnabled(inputNb) ) { |
| 492 | return false; |
| 493 | } |
| 494 | if (!input) { |
| 495 | input = effect->getInput(inputNb); |
| 496 | } |
| 497 | |
| 498 | return input.get() != 0; |
| 499 | } |
| 500 | } |
| 501 | } |
| 502 | |
| 503 | // overridden from OFX::Host::ImageEffect::ClipInstance |
| 504 | // Unmapped Frame Rate - |
no test coverage detected