本文整理汇总了C++中KnobChoicePtr::setIsPersistent方法的典型用法代码示例。如果您正苦于以下问题:C++ KnobChoicePtr::setIsPersistent方法的具体用法?C++ KnobChoicePtr::setIsPersistent怎么用?C++ KnobChoicePtr::setIsPersistent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KnobChoicePtr
的用法示例。
在下文中一共展示了KnobChoicePtr::setIsPersistent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: assert
void
RotoShapeRenderNode::initializeKnobs()
{
assert(!isRenderClone());
KnobPagePtr page = createKnob<KnobPage>("controlsPage");
page->setLabel(tr("Controls"));
{
KnobChoicePtr param = createKnob<KnobChoice>(kRotoShapeRenderNodeParamType);
param->setLabel(tr(kRotoShapeRenderNodeParamTypeLabel));
{
std::vector<ChoiceOption> options;
options.push_back(ChoiceOption(kRotoShapeRenderNodeParamTypeSolid, "", ""));
options.push_back(ChoiceOption(kRotoShapeRenderNodeParamTypeSmear, "", ""));
param->populateChoices(options);
}
param->setIsMetadataSlave(true);
page->addKnob(param);
_imp->renderType = param;
}
{
KnobChoicePtr param = createKnob<KnobChoice>(kRotoOutputRodType);
param->setLabel(tr(kRotoOutputRodTypeLabel));
param->setHintToolTip(tr(kRotoOutputRodTypeHint));
std::vector<ChoiceOption> options;
options.push_back(ChoiceOption(kRotoOutputRodTypeDefaultID, kRotoOutputRodTypeDefaultLabel, tr(kRotoOutputRodTypeDefaultHint).toStdString()));
options.push_back(ChoiceOption(kRotoOutputRodTypeFormatID, kRotoOutputRodTypeFormatLabel, tr(kRotoOutputRodTypeFormatHint).toStdString()));
options.push_back(ChoiceOption(kRotoOutputRodTypeProjectID, kRotoOutputRodTypeProjectLabel, tr(kRotoOutputRodTypeProjectHint).toStdString()));
param->populateChoices(options);
param->setAddNewLine(false);
param->setIsPersistent(false);
page->addKnob(param);
_imp->outputRoDTypeKnob = param;
}
{
KnobChoicePtr param = createKnob<KnobChoice>(kRotoFormatParam);
param->setLabel(tr(kRotoFormatParamLabel));
param->setHintToolTip(tr(kRotoFormatParamHint));
page->addKnob(param);
param->setIsPersistent(false);
_imp->outputFormatKnob = param;
}
{
KnobIntPtr param = createKnob<KnobInt>(kRotoFormatSize, 2);
param->setSecret(true);
page->addKnob(param);
param->setIsPersistent(false);
_imp->outputFormatSizeKnob = param;
}
{
KnobDoublePtr param = createKnob<KnobDouble>(kRotoFormatPar);
param->setSecret(true);
page->addKnob(param);
param->setIsPersistent(false);
_imp->outputFormatParKnob = param;
}
{
KnobBoolPtr param = createKnob<KnobBool>(kRotoClipToFormatParam);
param->setLabel(tr(kRotoClipToFormatParamLabel));
param->setHintToolTip(tr(kRotoClipToFormatParamHint));
param->setDefaultValue(false);
page->addKnob(param);
_imp->clipToFormatKnob = param;
}
}