当前位置: 首页>>代码示例>>C++>>正文


C++ PdmUiOrdering::setForgetRemainingFields方法代码示例

本文整理汇总了C++中caf::PdmUiOrdering::setForgetRemainingFields方法的典型用法代码示例。如果您正苦于以下问题:C++ PdmUiOrdering::setForgetRemainingFields方法的具体用法?C++ PdmUiOrdering::setForgetRemainingFields怎么用?C++ PdmUiOrdering::setForgetRemainingFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在caf::PdmUiOrdering的用法示例。


在下文中一共展示了PdmUiOrdering::setForgetRemainingFields方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: defineUiOrdering

//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void RimSummaryCurve::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
{
    caf::PdmUiGroup* curveDataGroup = uiOrdering.addNewGroup("Summary Vector");
    curveDataGroup->add(&m_summaryCase);
    curveDataGroup->add(&m_selectedVariableDisplayField);

    caf::PdmUiGroup* curveVarSelectionGroup = curveDataGroup->addNewGroup("Vector Selection");
    m_summaryFilter->defineUiOrdering(uiConfigName, *curveVarSelectionGroup);

    curveVarSelectionGroup->add(&m_uiFilterResultSelection);

    caf::PdmUiGroup* appearanceGroup = uiOrdering.addNewGroup("Appearance");
    appearanceGroup->add(&m_curveColor);
    appearanceGroup->add(&m_curveThickness);
    appearanceGroup->add(&m_pointSymbol);
    appearanceGroup->add(&m_symbolSkipPixelDistance);
    appearanceGroup->add(&m_lineStyle);
    appearanceGroup->add(&m_curveName);
    appearanceGroup->add(&m_isUsingAutoName);

    if (m_isUsingAutoName)
    {
        caf::PdmUiGroup* autoNameGroup = appearanceGroup->addNewGroup("Auto Name Config");
        m_curveNameConfig->defineUiOrdering(uiConfigName, *autoNameGroup);
    }

    uiOrdering.add(&m_plotAxis);

    uiOrdering.setForgetRemainingFields(true); // For now. 
}
开发者ID:magnesj,项目名称:ResInsight,代码行数:33,代码来源:RimSummaryCurve.cpp

示例2: defineUiOrdering

//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void RimEclipsePropertyFilter::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) 
{
    // Fields declared in RimCellFilter
    uiOrdering.add(&name);

    // Fields declared in RimResultDefinition
    caf::PdmUiGroup* group1 = uiOrdering.addNewGroup("Result");
    group1->add(&(resultDefinition->m_resultTypeUiField));
    group1->add(&(resultDefinition->m_porosityModelUiField));
    group1->add(&(resultDefinition->m_resultVariableUiField));
    
    // Fields declared in RimCellFilter
    uiOrdering.add(&filterMode);
    uiOrdering.add(&m_categorySelection);

    // Fields declared in this class (RimCellPropertyFilter)
    uiOrdering.add(&m_lowerBound);
    uiOrdering.add(&m_upperBound);

    uiOrdering.add(&m_selectedCategoryValues);

    uiOrdering.setForgetRemainingFields(true);

    updateReadOnlyStateOfAllFields();
}
开发者ID:magnesj,项目名称:ResInsight,代码行数:28,代码来源:RimEclipsePropertyFilter.cpp

示例3: defineUiOrdering

//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void RiaPreferences::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) 
{
    if (uiConfigName == m_tabNames[0])
    {
        caf::PdmUiGroup* defaultSettingsGroup = uiOrdering.addNewGroup("Default settings");
        defaultSettingsGroup->add(&defaultViewerBackgroundColor);
        defaultSettingsGroup->add(&defaultGridLines);
        defaultSettingsGroup->add(&defaultGridLineColors);
        defaultSettingsGroup->add(&defaultFaultGridLineColors);
        defaultSettingsGroup->add(&defaultWellLabelColor);
        defaultSettingsGroup->add(&fontSizeInScene);

        caf::PdmUiGroup* viewsGroup = uiOrdering.addNewGroup("3D views");
        viewsGroup->add(&navigationPolicy);
        viewsGroup->add(&useShaders);
        viewsGroup->add(&showHud);

        caf::PdmUiGroup* newCaseBehaviourGroup = uiOrdering.addNewGroup("Behavior when loading new case");
        newCaseBehaviourGroup->add(&defaultScaleFactorZ);
        newCaseBehaviourGroup->add(&autocomputeDepthRelatedProperties);
        newCaseBehaviourGroup->add(&loadAndShowSoil);
        newCaseBehaviourGroup->add(&showLasCurveWithoutTvdWarning);
    
        std::vector<caf::PdmFieldHandle*> readerSettingsFields;
        readerSettings->fields(readerSettingsFields);
        for (size_t i = 0; i < readerSettingsFields.size(); i++)
        {
            newCaseBehaviourGroup->add(readerSettingsFields[i]);
        }

        caf::PdmUiGroup* ssihubGroup = uiOrdering.addNewGroup("SSIHUB");
        ssihubGroup->add(&ssihubAddress);

        uiOrdering.add(&appendClassNameToUiText);
    }
    else if (uiConfigName == m_tabNames[1])
    {
        caf::PdmUiGroup* octaveGroup = uiOrdering.addNewGroup("Octave");
        octaveGroup->add(&octaveExecutable);
        octaveGroup->add(&octaveShowHeaderInfoWhenExecutingScripts);

        caf::PdmUiGroup* scriptGroup = uiOrdering.addNewGroup("Script files");
        scriptGroup->add(&scriptDirectories);
        scriptGroup->add(&scriptEditorExecutable);
    }
    else if (uiConfigName == m_tabNames[2])
    {
        uiOrdering.add(&autoCreatePlotsOnImport);
        uiOrdering.add(&defaultCurveFilter);
    }

    uiOrdering.setForgetRemainingFields(true);
}
开发者ID:babrodtk,项目名称:ResInsight,代码行数:56,代码来源:RiaPreferences.cpp

示例4: defineUiOrdering

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimCellEdgeColors::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
{
    uiOrdering.add(&m_propertyType);

    if (isUsingSingleVariable())
    {
        uiOrdering.add(&(m_singleVarEdgeResultColors->m_resultTypeUiField));
        uiOrdering.add(&(m_singleVarEdgeResultColors->m_porosityModelUiField));
        uiOrdering.add(&(m_singleVarEdgeResultColors->m_resultVariableUiField));
    }
    else
    {
        uiOrdering.add(&m_resultVariable);

        uiOrdering.add(&useXVariable);
        uiOrdering.add(&useYVariable);
        uiOrdering.add(&useZVariable);
    }

    uiOrdering.setForgetRemainingFields(true);
}
开发者ID:OPM,项目名称:ResInsight,代码行数:24,代码来源:RimCellEdgeColors.cpp

示例5: defineUiOrdering

//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void RimTernaryLegendConfig::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
{
    caf::PdmUiOrdering* formatGr = uiOrdering.addNewGroup("Format");
    formatGr->add(&precision);
    formatGr->add(&rangeMode);

    if (rangeMode == USER_DEFINED)
    {
        caf::PdmUiOrdering* ternaryGroupContainer = uiOrdering.addNewGroup("Ternary ");
        {
            caf::PdmUiOrdering* ternaryGroup = ternaryGroupContainer->addNewGroup("SOIL");
            ternaryGroup->add(&userDefinedMinValueSoil);
            ternaryGroup->add(&userDefinedMaxValueSoil);
        }

        {
            caf::PdmUiOrdering* ternaryGroup = ternaryGroupContainer->addNewGroup("SGAS");
            ternaryGroup->add(&userDefinedMinValueSgas);
            ternaryGroup->add(&userDefinedMaxValueSgas);
        }

        {
            caf::PdmUiOrdering* ternaryGroup = ternaryGroupContainer->addNewGroup("SWAT");
            ternaryGroup->add(&userDefinedMinValueSwat);
            ternaryGroup->add(&userDefinedMaxValueSwat);
        }

        ternaryGroupContainer->add(&applyLocalMinMax);
        ternaryGroupContainer->add(&applyGlobalMinMax);
        ternaryGroupContainer->add(&applyFullRangeMinMax);
    }
    else
    {
        caf::PdmUiOrdering* group = uiOrdering.addNewGroup("Summary");
        group->add(&ternaryRangeSummary);
    }

    uiOrdering.setForgetRemainingFields(true);
}
开发者ID:andlaus,项目名称:ResInsight,代码行数:42,代码来源:RimTernaryLegendConfig.cpp


注:本文中的caf::PdmUiOrdering::setForgetRemainingFields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。