本文整理汇总了C++中KnobGuiPtr::hide方法的典型用法代码示例。如果您正苦于以下问题:C++ KnobGuiPtr::hide方法的具体用法?C++ KnobGuiPtr::hide怎么用?C++ KnobGuiPtr::hide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KnobGuiPtr
的用法示例。
在下文中一共展示了KnobGuiPtr::hide方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
void
KnobGuiGroup::setCheckedInternal(bool checked,
bool userRequested)
{
if (checked == _checked) {
return;
}
_checked = checked;
if (userRequested) {
KnobGroupPtr knob = _knob.lock();
if (knob) {
knob->setValue(checked);
}
}
//getGui()->getPropertiesBin()->setUpdatesEnabled(false);
for (std::list<KnobGuiWPtr>::iterator it = _children.begin(); it != _children.end(); ++it) {
KnobGuiPtr knob = it->lock();
if (!knob) {
continue;
}
if (!checked) {
knob->hide();
} else if ( !knob->getKnob()->getIsSecret() ) {
knob->show();
}
}
//getGui()->getPropertiesBin()->setUpdatesEnabled(true);
}
示例2:
void
KnobGuiGroup::_hide()
{
if (_button) {
_button->hide();
}
for (std::list<KnobGuiWPtr>::iterator it = _children.begin(); it != _children.end(); ++it) {
KnobGuiPtr k = it->lock();
if (!k) {
continue;
}
k->hide();
}
}
示例3:
void
KnobGuiGroup::setWidgetsVisible(bool visible)
{
if (_button) {
_button->setVisible(visible);
}
for (std::list<KnobGuiWPtr>::iterator it = _children.begin(); it != _children.end(); ++it) {
KnobGuiPtr k = it->lock();
if (!k) {
continue;
}
if (visible) {
k->show();
} else {
k->hide();
}
}
}
示例4: getActualIndexInLayout
void
KnobGuiGroup::setCheckedInternal(bool checked, bool userRequested)
{
if (checked == _checked) {
return;
}
_checked = checked;
if (userRequested) {
boost::shared_ptr<KnobGroup> knob = _knob.lock();
if (knob) {
knob->setValue(checked, ViewSpec::all(), 0, eValueChangedReasonUserEdited, 0);
}
}
///get the current index of the group knob in the layout, and reinsert
///the children back with an offset relative to the group.
int realIndexInLayout = getActualIndexInLayout();
int startChildIndex = realIndexInLayout + 1;
//getGui()->getPropertiesBin()->setUpdatesEnabled(false);
for (std::list<KnobGuiWPtr>::iterator it = _children.begin(); it != _children.end(); ++it) {
KnobGuiPtr knob = it->lock();
if (!knob) {
continue;
}
if (!checked) {
knob->hide();
} else if ( !knob->getKnob()->getIsSecret() ) {
knob->show(startChildIndex);
if ( knob->getKnob()->isNewLineActivated() ) {
++startChildIndex;
}
}
}
//getGui()->getPropertiesBin()->setUpdatesEnabled(true);
}