//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- 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(); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimGridInfo::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_gridName); uiOrdering.add(&m_eclipseGridIndex); uiOrdering.skipRemainingFields(); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellLogPlotNameConfig::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { RimNameConfig::defineUiOrdering(uiConfigName, uiOrdering); uiOrdering.add(&m_addCaseName); uiOrdering.add(&m_addWellName); uiOrdering.add(&m_addTimestep); uiOrdering.add(&m_addAirGap); uiOrdering.add(&m_addWaterDepth); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimAnnotationLineAppearance::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { if (!m_lineFieldsHidden()) { uiOrdering.add(&m_color); uiOrdering.add(&m_style); uiOrdering.add(&m_thickness); } uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellLogPlot::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_userName); uiOrdering.add(&m_depthType); uiOrdering.add(&m_depthUnit); caf::PdmUiGroup* gridGroup = uiOrdering.addNewGroup("Visible Depth Range"); gridGroup->add(&m_isAutoScaleDepthEnabled); gridGroup->add(&m_minVisibleDepth); gridGroup->add(&m_maxVisibleDepth); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimPolylineAppearance::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { RimAnnotationLineAppearance::defineUiOrdering(uiConfigName, uiOrdering); if (!m_sphereFieldsHidden) { uiOrdering.add(&m_sphereColor); uiOrdering.add(&m_sphereRadiusFactor); } uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- 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); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RicSummaryCurveCreator::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { // Appearance settings caf::PdmUiGroup* appearanceGroup = uiOrdering.addNewGroupWithKeyword("Curve Appearance Assignment", RiuSummaryCurveDefinitionKeywords::appearance()); caf::PdmUiGroup* appearanceSubGroup = appearanceGroup->addNewGroup("Appearance Type Assignment"); appearanceSubGroup->setCollapsedByDefault(true); appearanceSubGroup->add(&m_useAutoAppearanceAssignment); appearanceSubGroup->add(&m_caseAppearanceType); appearanceSubGroup->add(&m_variableAppearanceType); appearanceSubGroup->add(&m_wellAppearanceType); appearanceSubGroup->add(&m_groupAppearanceType); appearanceSubGroup->add(&m_regionAppearanceType); appearanceGroup->add(&m_appearanceApplyButton); // Appearance option sensitivity { m_caseAppearanceType.uiCapability()->setUiReadOnly(m_useAutoAppearanceAssignment); m_variableAppearanceType.uiCapability()->setUiReadOnly(m_useAutoAppearanceAssignment); m_wellAppearanceType.uiCapability()->setUiReadOnly(m_useAutoAppearanceAssignment); m_groupAppearanceType.uiCapability()->setUiReadOnly(m_useAutoAppearanceAssignment); m_regionAppearanceType.uiCapability()->setUiReadOnly(m_useAutoAppearanceAssignment); } // Name config caf::PdmUiGroup* autoNameGroup = uiOrdering.addNewGroupWithKeyword("Plot and Curve Name Configuration", RiuSummaryCurveDefinitionKeywords::nameConfig()); autoNameGroup->setCollapsedByDefault(true); autoNameGroup->add(&m_useAutoPlotTitleProxy); m_curveNameConfig->uiOrdering(uiConfigName, *autoNameGroup); // Fields to be displayed directly in UI uiOrdering.add(&m_targetPlot); uiOrdering.add(&m_okButtonField); uiOrdering.add(&m_applyButtonField); uiOrdering.add(&m_closeButtonField); uiOrdering.skipRemainingFields(true); syncPreviewCurvesFromUiSelection(); m_summaryCurveSelectionEditor->updateUi(); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimGeoMechPropertyFilter::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&name); caf::PdmUiGroup* group1 = uiOrdering.addNewGroup("Result"); resultDefinition->uiOrdering(uiConfigName, *group1); caf::PdmUiGroup& group2 = *(uiOrdering.addNewGroup("Filter Settings")); group2.add(&filterMode); if ( resultDefinition->hasCategoryResult() ) { group2.add(&m_selectedCategoryValues); } else { group2.add(&lowerBound); group2.add(&upperBound); } updateReadOnlyStateOfAllFields(); uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimGeoMechCase::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&caseUserDescription); uiOrdering.add(&caseId); uiOrdering.add(&m_caseFileName); caf::PdmUiGroup* caseGroup = uiOrdering.addNewGroup("Case Options"); caseGroup->add(&activeFormationNames); caseGroup->add(&m_cohesion); caseGroup->add(&m_frictionAngleDeg); caf::PdmUiGroup* elmPropGroup = uiOrdering.addNewGroup("Element Properties"); elmPropGroup->add(&m_elementPropertyFileNameIndexUiSelection); elmPropGroup->add(&m_reloadElementPropertyFileCommand); elmPropGroup->add(&m_closeElementPropertyFileCommand); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RiaPreferences::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&navigationPolicy); caf::PdmUiGroup* scriptGroup = uiOrdering.addNewGroup("Script configuration"); scriptGroup->add(&scriptDirectories); scriptGroup->add(&scriptEditorExecutable); caf::PdmUiGroup* octaveGroup = uiOrdering.addNewGroup("Octave"); octaveGroup->add(&octaveExecutable); octaveGroup->add(&octaveShowHeaderInfoWhenExecutingScripts); caf::PdmUiGroup* defaultSettingsGroup = uiOrdering.addNewGroup("Default settings"); defaultSettingsGroup->add(&defaultScaleFactorZ); defaultSettingsGroup->add(&defaultViewerBackgroundColor); defaultSettingsGroup->add(&defaultGridLines); defaultSettingsGroup->add(&defaultGridLineColors); defaultSettingsGroup->add(&defaultFaultGridLineColors); defaultSettingsGroup->add(&defaultWellLabelColor); caf::PdmUiGroup* autoComputeGroup = uiOrdering.addNewGroup("Behavior when loading new case"); autoComputeGroup->add(&autocomputeDepthRelatedProperties); autoComputeGroup->add(&loadAndShowSoil); caf::PdmUiGroup* readerSettingsGroup = uiOrdering.addNewGroup("Reader settings"); std::vector<caf::PdmFieldHandle*> readerSettingsFields; readerSettings->fields(readerSettingsFields); for (size_t i = 0; i < readerSettingsFields.size(); i++) { readerSettingsGroup->add(readerSettingsFields[i]); } }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- 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. }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellLogPlot::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_userName); uiOrderingForPlot(uiOrdering); uiOrderingForVisibleDepthRange(uiOrdering); uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimSummaryCurveAutoName::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_caseName); uiOrdering.add(&m_vectorName); uiOrdering.add(&m_wellGroupName); uiOrdering.add(&m_wellName); if (m_showAdvancedProperties) { uiOrdering.add(&m_regionNumber); uiOrdering.add(&m_lgrName); uiOrdering.add(&m_completion); uiOrdering.add(&m_wellSegmentNumber); uiOrdering.add(&m_unit); } uiOrdering.add(&m_showAdvancedProperties); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimPlotCurve::appearanceUiOrdering(caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_curveColor); uiOrdering.add(&m_pointSymbol); uiOrdering.add(&m_symbolEdgeColor); uiOrdering.add(&m_symbolSize); uiOrdering.add(&m_symbolSkipPixelDistance); uiOrdering.add(&m_lineStyle); uiOrdering.add(&m_curveThickness); uiOrdering.add(&m_curveInterpolation); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellLogTrack::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_userName); caf::PdmUiGroup* gridGroup = uiOrdering.addNewGroup("Visible X Axis Range"); gridGroup->add(&m_isAutoScaleXEnabled); gridGroup->add(&m_visibleXRangeMin); gridGroup->add(&m_visibleXRangeMax); gridGroup->add(&m_isLogarithmicScaleEnabled); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void ManyGroups::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_toggleField); uiOrdering.add(&m_multiSelectList); /* { caf::PdmUiGroup* group = uiOrdering.addNewGroup("First"); caf::PdmUiGroup* subGroup = group->addNewGroup("First_Content"); subGroup->add(&m_doubleField); subGroup->add(&m_intField); caf::PdmUiGroup* subGroup2 = group->addNewGroup("First_Content_2"); } { caf::PdmUiGroup* group = uiOrdering.addNewGroup("Second"); caf::PdmUiGroup* subGroup = group->addNewGroup("Second_Content"); } { caf::PdmUiGroup* group = uiOrdering.addNewGroup("Third"); caf::PdmUiGroup* subGroup = group->addNewGroup("Third_Content"); } { caf::PdmUiGroup* group = uiOrdering.addNewGroup("Fourth"); caf::PdmUiGroup* subGroup = group->addNewGroup("Fourth_Content"); subGroup->add(&m_textField); } { caf::PdmUiGroup* group = uiOrdering.addNewGroup("Fifth"); caf::PdmUiGroup* subGroup = group->addNewGroup("Fifth_Content"); subGroup->add(&m_proxyDoubleField); } */ }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellLogPlot::uiOrderingForPlot(caf::PdmUiOrdering& uiOrdering) { RimWellRftPlot* rftp = rftPlot(); if (!(rftp || pltPlot())) { uiOrdering.add(&m_depthType); } RimWellAllocationPlot* wap; firstAncestorOrThisOfType(wap); if (!(wap || rftp)) { uiOrdering.add(&m_depthUnit); } uiOrdering.add(&m_showTrackLegends); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellLogFile::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_fileName); uiOrdering.add(&m_date); m_date.uiCapability()->setUiReadOnly(m_lasFileHasValidDate); auto timespec = m_date().timeSpec(); if (!isDateValid(m_date())) { uiOrdering.add(&m_invalidDateMessage); } if (hasFlowData()) { uiOrdering.add(&m_wellFlowCondition); } uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimFractureTemplate::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { prepareFieldsForUiDisplay(); { auto group = uiOrdering.addNewGroup("Sensitivity Scale Factors"); group->setCollapsedByDefault(false); group->add(&m_heightScaleFactor); group->add(&m_widthScaleFactor); group->add(&m_dFactorScaleFactor); group->add(&m_conductivityScaleFactor); group->add(&m_scaleApplyButton); } auto nonDarcyFlowGroup = uiOrdering.addNewGroup("Non-Darcy Flow"); nonDarcyFlowGroup->add(&m_nonDarcyFlowType); if (m_nonDarcyFlowType == RimFractureTemplate::NON_DARCY_USER_DEFINED) { nonDarcyFlowGroup->add(&m_userDefinedDFactor); } if (m_nonDarcyFlowType == RimFractureTemplate::NON_DARCY_COMPUTED) { nonDarcyFlowGroup->add(&m_inertialCoefficient); { auto group = nonDarcyFlowGroup->addNewGroup("Effective Permeability"); group->add(&m_permeabilityType); group->add(&m_relativePermeability); group->add(&m_userDefinedEffectivePermeability); } { auto group = nonDarcyFlowGroup->addNewGroup("Width"); group->add(&m_fractureWidthType); group->add(&m_fractureWidth); } nonDarcyFlowGroup->add(&m_relativeGasDensity); nonDarcyFlowGroup->add(&m_gasViscosity); nonDarcyFlowGroup->add(&m_dFactorDisplayField); { auto group = nonDarcyFlowGroup->addNewGroup("D Factor Details"); group->setCollapsedByDefault(true); group->add(&m_dFactorSummaryText); } } uiOrdering.add(&m_fractureTemplateUnit); uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimCellPropertyFilter::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(&isActive); uiOrdering.add(&filterMode); // Fields declared in this class (RimCellPropertyFilter) uiOrdering.add(&lowerBound); uiOrdering.add(&upperBound); uiOrdering.add(&filterMode); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimPerforationInterval::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { { RimWellPath* wellPath; firstAncestorOrThisOfType(wellPath); if (wellPath) { if (wellPath->unitSystem() == RiaEclipseUnitTools::UNITS_METRIC) { m_startMD.uiCapability()->setUiName("Start MD [m]"); m_endMD.uiCapability()->setUiName("End MD [m]"); m_diameter.uiCapability()->setUiName("Diameter [m]"); } else if (wellPath->unitSystem() == RiaEclipseUnitTools::UNITS_FIELD) { m_startMD.uiCapability()->setUiName("Start MD [ft]"); m_endMD.uiCapability()->setUiName("End MD [ft]"); m_diameter.uiCapability()->setUiName("Diameter [ft]"); } } } m_date.uiCapability()->setUiReadOnly(m_startOfHistory()); uiOrdering.add(&m_startMD); uiOrdering.add(&m_endMD); uiOrdering.add(&m_diameter); uiOrdering.add(&m_skinFactor); uiOrdering.add(&m_startOfHistory); uiOrdering.add(&m_date); uiOrdering.skipRemainingFields(); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellPathFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { RimFracture::defineUiOrdering(uiConfigName, uiOrdering); if (m_fractureTemplate()) { uiOrdering.add(nameField(), caf::PdmUiOrdering::LayoutOptions(true, 3, 1)); uiOrdering.add(&m_fractureTemplate, {true, 2, 1}); uiOrdering.add(&m_editFractureTemplate, {false, 1, 0}); } else { uiOrdering.add(nameField()); { RimProject* project = nullptr; this->firstAncestorOrThisOfTypeAsserted(project); if (project->allFractureTemplates().empty()) { uiOrdering.add(&m_createEllipseFractureTemplate); uiOrdering.add(&m_createStimPlanFractureTemplate, false); } else { uiOrdering.add(&m_fractureTemplate); } } } caf::PdmUiGroup* locationGroup = uiOrdering.addNewGroup("Location / Orientation"); locationGroup->add(&m_measuredDepth); locationGroup->add(&m_azimuth); locationGroup->add(&m_uiWellPathAzimuth); locationGroup->add(&m_uiWellFractureAzimuthDiff); locationGroup->add(&m_wellFractureAzimuthAngleWarning); locationGroup->add(&m_dip); locationGroup->add(&m_tilt); caf::PdmUiGroup* propertyGroup = uiOrdering.addNewGroup("Properties"); propertyGroup->add(&m_fractureUnit); propertyGroup->add(&m_stimPlanTimeIndexToPlot); propertyGroup->add(&m_perforationLength); propertyGroup->add(&m_perforationEfficiency); propertyGroup->add(&m_wellDiameter); caf::PdmUiGroup* fractureCenterGroup = uiOrdering.addNewGroup("Fracture Center Info"); fractureCenterGroup->add(&m_uiAnchorPosition); uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellPathGeometryDef::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_wellStartType); if (m_wellStartType == START_FROM_OTHER_WELL) { uiOrdering.add(&m_parentWell); m_kickoffDepthOrMD.uiCapability()->setUiName("Measured Depth"); uiOrdering.add(&m_kickoffDepthOrMD); } if (m_wellStartType == START_AT_SURFACE) { m_kickoffDepthOrMD.uiCapability()->setUiName("Kick-Off Depth"); uiOrdering.add(&m_kickoffDepthOrMD); } uiOrdering.add(&m_referencePointUtmXyd); uiOrdering.add(&m_mdrkbAtFirstTarget); uiOrdering.add(&m_wellTargets); uiOrdering.add(&m_pickPointsEnabled); uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RiaPreferences::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&navigationPolicy); caf::PdmUiGroup* scriptGroup = uiOrdering.addNewGroup("Script configuration"); scriptGroup->add(&scriptDirectories); scriptGroup->add(&scriptEditorExecutable); scriptGroup->add(&octaveExecutable); caf::PdmUiGroup* defaultSettingsGroup = uiOrdering.addNewGroup("Default settings"); defaultSettingsGroup->add(&defaultScaleFactorZ); defaultSettingsGroup->add(&defaultViewerBackgroundColor); defaultSettingsGroup->add(&defaultGridLines); defaultSettingsGroup->add(&defaultGridLineColors); defaultSettingsGroup->add(&defaultFaultGridLineColors); caf::PdmUiGroup* autoComputeGroup = uiOrdering.addNewGroup("Compute when loading new case"); autoComputeGroup->add(&autocomputeSOIL); autoComputeGroup->add(&autocomputeDepthRelatedProperties); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- 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); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimPlotCurve::curveNameUiOrdering(caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_isUsingAutoName); uiOrdering.add(&m_curveName); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimCellRangeFilter::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { bool readOnlyState = isRangeFilterControlled(); std::vector<caf::PdmFieldHandle*> objFields; this->fields(objFields); for (auto& objField : objFields) { objField->uiCapability()->setUiReadOnly(readOnlyState); } const cvf::StructGridInterface* grid = selectedGrid(); RimCase* rimCase = nullptr; this->firstAncestorOrThisOfTypeAsserted(rimCase); const cvf::StructGridInterface* mainGrid = RigReservoirGridTools::mainGrid(rimCase); Rim3dView* rimView = nullptr; this->firstAncestorOrThisOfTypeAsserted(rimView); auto actCellInfo = RigReservoirGridTools::activeCellInfo(rimView); if (grid == mainGrid && actCellInfo) { cvf::Vec3st min, max; actCellInfo->IJKBoundingBox(min, max); // Adjust to Eclipse indexing min.x() = min.x() + 1; min.y() = min.y() + 1; min.z() = min.z() + 1; max.x() = max.x() + 1; max.y() = max.y() + 1; max.z() = max.z() + 1; startIndexI.uiCapability()->setUiName(QString("I Start (%1)").arg(min.x())); startIndexJ.uiCapability()->setUiName(QString("J Start (%1)").arg(min.y())); startIndexK.uiCapability()->setUiName(QString("K Start (%1)").arg(min.z())); cellCountI.uiCapability()->setUiName(QString(" Width (%1)").arg(max.x() - min.x() + 1)); cellCountJ.uiCapability()->setUiName(QString(" Width (%1)").arg(max.y() - min.y() + 1)); cellCountK.uiCapability()->setUiName(QString(" Width (%1)").arg(max.z() - min.z() + 1)); } else { startIndexI.uiCapability()->setUiName(QString("I Start")); startIndexJ.uiCapability()->setUiName(QString("J Start")); startIndexK.uiCapability()->setUiName(QString("K Start")); cellCountI.uiCapability()->setUiName(QString(" Width")); cellCountJ.uiCapability()->setUiName(QString(" Width")); cellCountK.uiCapability()->setUiName(QString(" Width")); } uiOrdering.add(&name); uiOrdering.add(&filterMode); uiOrdering.add(&m_gridIndex); uiOrdering.add(&propagateToSubGrids); uiOrdering.add(&startIndexI); uiOrdering.add(&cellCountI); uiOrdering.add(&startIndexJ); uiOrdering.add(&cellCountJ); uiOrdering.add(&startIndexK); uiOrdering.add(&cellCountK); if(RiaApplication::enableDevelopmentFeatures()) { auto group = uiOrdering.addNewGroup("Single Cell Filtering (TEST)"); group->setCollapsedByDefault(true); group->add(&m_useIndividualCellIndices); group->add(&m_individualCellIndices); m_individualCellIndices.uiCapability()->setUiReadOnly(!m_useIndividualCellIndices); } uiOrdering.skipRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimSummaryFilter::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_filterType); caf::PdmUiGroup* curveVarFilterGroup = nullptr; if(m_filterType() == SUM_FILTER_VAR_STRING) { uiOrdering.add(&m_completeVarStringFilter); } else { caf::PdmUiOrdering* curveVarFilterGroup = &uiOrdering;//uiOrdering.addNewGroup("Search Options"); curveVarFilterGroup->add(&m_filterQuantityName); switch(m_filterType()) { case SUM_FILTER_ANY: { curveVarFilterGroup->add(&m_wellNameFilter); curveVarFilterGroup->add(&m_wellGroupNameFilter); curveVarFilterGroup->add(&m_regionNumberFilter); curveVarFilterGroup->add(&m_regionNumber2Filter); curveVarFilterGroup->add(&m_wellSegmentNumberFilter); curveVarFilterGroup->add(&m_lgrNameFilter); curveVarFilterGroup->add(&m_cellIJKFilter); } break; case SUM_FILTER_REGION: { curveVarFilterGroup->add(&m_regionNumberFilter); } break; case SUM_FILTER_REGION_2_REGION: { curveVarFilterGroup->add(&m_regionNumberFilter); curveVarFilterGroup->add(&m_regionNumber2Filter); } break; case SUM_FILTER_WELL_GROUP: { curveVarFilterGroup->add(&m_wellGroupNameFilter); } break; case SUM_FILTER_WELL: { curveVarFilterGroup->add(&m_wellNameFilter); } break; case SUM_FILTER_WELL_COMPLETION: { curveVarFilterGroup->add(&m_wellNameFilter); curveVarFilterGroup->add(&m_cellIJKFilter); } break; case SUM_FILTER_WELL_LGR: { curveVarFilterGroup->add(&m_wellNameFilter); curveVarFilterGroup->add(&m_lgrNameFilter); } break; case SUM_FILTER_WELL_COMPLETION_LGR: { curveVarFilterGroup->add(&m_wellNameFilter); curveVarFilterGroup->add(&m_lgrNameFilter); curveVarFilterGroup->add(&m_cellIJKFilter); } break; case SUM_FILTER_WELL_SEGMENT: { curveVarFilterGroup->add(&m_wellNameFilter); curveVarFilterGroup->add(&m_wellSegmentNumberFilter); } break; case SUM_FILTER_BLOCK: { curveVarFilterGroup->add(&m_cellIJKFilter); } break; case SUM_FILTER_BLOCK_LGR: { curveVarFilterGroup->add(&m_lgrNameFilter); curveVarFilterGroup->add(&m_cellIJKFilter); } break; } } uiOrdering.skipRemainingFields(); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimFishboneWellPath::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) { uiOrdering.add(&m_displayCoordinates); }