//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimSimWellInView::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/) { for (RimSimWellFracture* fracture : simwellFractureCollection()->simwellFractures()) { uiTreeOrdering.add(fracture); } uiTreeOrdering.skipRemainingChildren(true); const RimEclipseView* reservoirView = nullptr; this->firstAncestorOrThisOfType(reservoirView); if (!reservoirView) return; if (reservoirView->rangeFilterCollection() && !reservoirView->rangeFilterCollection()->hasActiveFilters()) { this->uiCapability()->setUiReadOnly(false); return; } const RimSimWellInViewCollection* wellColl = nullptr; this->firstAncestorOrThisOfType(wellColl); if (!wellColl) return; if (wellColl->showWellsIntersectingVisibleCells() && !this->intersectsDynamicWellCellsFilteredCells(static_cast<size_t>(reservoirView->currentTimeStep()))) { // Mark well as read only if well is not intersecting visible cells this->uiCapability()->setUiReadOnly(true); } else { this->uiCapability()->setUiReadOnly(false); } }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimEclipseCellColors::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/) { if (this->resultVariable() == RiaDefines::ternarySaturationResultName()) { uiTreeOrdering.add(m_ternaryLegendConfig()); } else { uiTreeOrdering.add(m_legendConfigPtrField()); } uiTreeOrdering.skipRemainingChildren(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimGeoMechCase::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/) { std::vector<PdmObjectHandle*> children; geoMechViews.childObjects(&children); for ( auto child : children ) uiTreeOrdering.add(child); if (!m_2dIntersectionViewCollection->views().empty()) { uiTreeOrdering.add(&m_2dIntersectionViewCollection); } uiTreeOrdering.skipRemainingChildren(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimGridCollection::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/) { if (mainEclipseGrid()) { uiTreeOrdering.add(m_mainGrid()); if (hasPersistentLgrs()) { uiTreeOrdering.add(m_persistentLgrs()); } if (hasTemporaryLgrs()) { uiTreeOrdering.add(m_temporaryLgrs()); } } uiTreeOrdering.skipRemainingChildren(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellPathCompletions::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName) { uiTreeOrdering.skipRemainingChildren(true); if (!perforationCollection()->perforations().empty()) { uiTreeOrdering.add(&m_perforationCollection); } if (!fishbonesCollection()->allFishbonesSubs().empty() || !fishbonesCollection()->wellPathCollection()->wellPaths().empty()) { uiTreeOrdering.add(&m_fishbonesCollection); } if (!fractureCollection()->allFractures().empty()) { uiTreeOrdering.add(&m_fractureCollection); } }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimGeoMechView::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/) { uiTreeOrdering.add(m_overlayInfoConfig()); uiTreeOrdering.add(m_gridCollection()); uiTreeOrdering.add(cellResult()); uiTreeOrdering.add(crossSectionCollection()); uiTreeOrdering.add(m_rangeFilterCollection()); uiTreeOrdering.add(m_propertyFilterCollection()); uiTreeOrdering.setForgetRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellLogExtractionCurve::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/) { uiTreeOrdering.skipRemainingChildren(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimCellEdgeColors::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/) { uiTreeOrdering.add(legendConfig()); uiTreeOrdering.setForgetRemainingFields(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimWellPathGeometryDef::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName) { uiTreeOrdering.skipRemainingChildren(true); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimStimPlanLegendConfig::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/) { uiTreeOrdering.skipRemainingChildren(true); }