mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1628 Turning off viaualization of polygon for fracture templates, and hiding all related parameters from UI.
This commit is contained in:
@@ -94,7 +94,8 @@ RimFracture::RimFracture(void)
|
||||
CAF_PDM_InitField(&wellDiameter, "wellDiameter", 0.216, "Well Diameter at Fracture", "", "", "");
|
||||
CAF_PDM_InitField(&dip, "Dip", 0.0, "Dip", "", "", "");
|
||||
CAF_PDM_InitField(&tilt, "Tilt", 0.0, "Tilt", "", "", "");
|
||||
CAF_PDM_InitField(&showPolygonFractureOutline, "showPolygonFractureOutline", true, "Show Polygon Outline", "", "", "");
|
||||
CAF_PDM_InitField(&showPolygonFractureOutline, "showPolygonFractureOutline", false, "Show Polygon Outline", "", "", "");
|
||||
showPolygonFractureOutline.uiCapability()->setUiHidden(true);
|
||||
CAF_PDM_InitField(&m_fractureUnit, "fractureUnit", caf::AppEnum<RiaEclipseUnitTools::UnitSystem>(RiaEclipseUnitTools::UNITS_METRIC), "Fracture Unit System", "", "", "");
|
||||
m_fractureUnit.uiCapability()->setUiReadOnly(true);
|
||||
|
||||
@@ -452,14 +453,10 @@ void RimFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiO
|
||||
{
|
||||
stimPlanTimeIndexToPlot.uiCapability()->setUiHidden(false);
|
||||
stimPlanTimeIndexToPlot.uiCapability()->setUiReadOnly(true);
|
||||
|
||||
showPolygonFractureOutline.uiCapability()->setUiHidden(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
stimPlanTimeIndexToPlot.uiCapability()->setUiHidden(true);
|
||||
|
||||
showPolygonFractureOutline.uiCapability()->setUiHidden(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -66,6 +66,8 @@ RimStimPlanFractureTemplate::RimStimPlanFractureTemplate(void)
|
||||
m_wellPathDepthAtFracture.uiCapability()->setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());
|
||||
|
||||
CAF_PDM_InitField(&m_borderPolygonResultName, "parameterForPolyton", QString(""), "Parameter", "", "", "");
|
||||
m_borderPolygonResultName.uiCapability()->setUiHidden(true);
|
||||
|
||||
CAF_PDM_InitField(&m_activeTimeStepIndex, "activeTimeStepIndex", 0, "Active TimeStep Index", "", "", "");
|
||||
CAF_PDM_InitField(&m_showStimPlanMesh, "showStimPlanMesh", true, "Show StimPlan Mesh", "", "", "");
|
||||
|
||||
@@ -214,6 +216,12 @@ bool RimStimPlanFractureTemplate::setBorderPolygonResultNameToDefault()
|
||||
return true;
|
||||
}
|
||||
}
|
||||
//else: Set to first property
|
||||
if (resultNamesWithUnit().size() > 1)
|
||||
{
|
||||
m_borderPolygonResultName = resultNamesWithUnit()[0].first;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -451,9 +459,6 @@ void RimStimPlanFractureTemplate::defineUiOrdering(QString uiConfigName, caf::Pd
|
||||
propertyGroup->add(&perforationLength);
|
||||
propertyGroup->add(&perforationEfficiency);
|
||||
propertyGroup->add(&wellDiameter);
|
||||
|
||||
caf::PdmUiGroup* polygonGroup = uiOrdering.addNewGroup("Fracture Polygon Basis");
|
||||
polygonGroup->add(&m_borderPolygonResultName);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user