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

Function getCornerPinPoint

Gui/MultiInstancePanel.cpp:2318–2331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2316
2317namespace {
2318KnobDoublePtr
2319getCornerPinPoint(Node* node,
2320 bool isFrom,
2321 int index)
2322{
2323 assert(0 <= index && index < 4);
2324 QString name = isFrom ? QString::fromUtf8("from%1").arg(index + 1) : QString::fromUtf8("to%1").arg(index + 1);
2325 KnobIPtr knob = node->getKnobByName( name.toStdString() );
2326 assert(knob);
2327 KnobDoublePtr ret = std::dynamic_pointer_cast<KnobDouble>(knob);
2328 assert(ret);
2329
2330 return ret;
2331}
2332}
2333
2334void

Callers 1

Calls 2

toStdStringMethod · 0.80
getKnobByNameMethod · 0.45

Tested by

no test coverage detected