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

Method getConnected

Engine/OfxClipInstance.cpp:475–501  ·  view source on GitHub ↗

overridden from OFX::Host::ImageEffect::ClipInstance Connected - Says whether the clip is actually connected at the moment.

Source from the content-addressed store, hash-verified

473//
474// Says whether the clip is actually connected at the moment.
475bool
476OfxClipInstance::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 -

Callers 2

getRegionOfDefinitionMethod · 0.80

Calls 6

getNameFunction · 0.85
getNodeMethod · 0.45
hasOutputConnectedMethod · 0.45
isMaskEnabledMethod · 0.45
getInputMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected