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

Method createChoiceParam

Engine/PyNode.cpp:689–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687}
688
689ChoiceParam*
690UserParamHolder::createChoiceParam(const QString& name,
691 const QString& label)
692{
693 boost::shared_ptr<KnobChoice> knob = _holder->createChoiceKnob( name.toStdString(), label.toStdString() );
694
695 if (knob) {
696 boost::shared_ptr<KnobPage> userPage = _holder->getOrCreateUserPageKnob();
697 if (userPage) {
698 userPage->addKnob(knob);
699 }
700
701 return new ChoiceParam(knob);
702 } else {
703 return 0;
704 }
705}
706
707ColorParam*
708UserParamHolder::createColorParam(const QString& name,

Callers 8

createInstanceFunction · 0.80
createInstanceFunction · 0.80
createInstanceFunction · 0.80
createInstanceFunction · 0.80
createInstanceFunction · 0.80
createInstanceFunction · 0.80
createInstanceFunction · 0.80

Calls 4

createChoiceKnobMethod · 0.80
toStdStringMethod · 0.80
addKnobMethod · 0.45

Tested by

no test coverage detected