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

Function getCornerPinPoint

Engine/TrackerContext.cpp:743–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741
742#if 0
743static
744boost::shared_ptr<KnobDouble>
745getCornerPinPoint(Node* node,
746 bool isFrom,
747 int index)
748{
749 assert(0 <= index && index < 4);
750 QString name = isFrom ? QString::fromUtf8("from%1").arg(index + 1) : QString::fromUtf8("to%1").arg(index + 1);
751 boost::shared_ptr<KnobI> knob = node->getKnobByName( name.toStdString() );
752 assert(knob);
753 boost::shared_ptr<KnobDouble> ret = boost::dynamic_pointer_cast<KnobDouble>(knob);
754 assert(ret);
755
756 return ret;
757}
758
759#endif
760

Callers 1

Calls 2

toStdStringMethod · 0.80
getKnobByNameMethod · 0.45

Tested by

no test coverage detected