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

Function getCornerPinPoint

Engine/TrackerContext.cpp:762–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760
761#if 0
762static
763KnobDoublePtr
764getCornerPinPoint(Node* node,
765 bool isFrom,
766 int index)
767{
768 assert(0 <= index && index < 4);
769 QString name = isFrom ? QString::fromUtf8("from%1").arg(index + 1) : QString::fromUtf8("to%1").arg(index + 1);
770 KnobIPtr knob = node->getKnobByName( name.toStdString() );
771 assert(knob);
772 KnobDoublePtr ret = std::dynamic_pointer_cast<KnobDouble>(knob);
773 assert(ret);
774
775 return ret;
776}
777
778#endif
779

Callers 1

Calls 2

toStdStringMethod · 0.80
getKnobByNameMethod · 0.45

Tested by

no test coverage detected