mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 02:12:12 -05:00
#1138 - pre-proto - Using legend config for controlling colors of stimPlan fracture
This commit is contained in:
1 parent
3ae816a9aa
commit
8a603c7f73
3 files changed
+36
-20
No files matched your search
@@ -705,10 +705,9 @@ void RimFracture::defineEditorAttribute(const caf::PdmFieldHandle* field, QStrin
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFracture::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/)
|
||||
{
|
||||
// TODO: Based on selected result, show correct legend
|
||||
if (RimFracture::CONDUCTIVITY) uiTreeOrdering.add(m_legendConfigConductivity);
|
||||
if (RimFracture::PERMEABILITY) uiTreeOrdering.add(m_legendConfigPermeability);
|
||||
if (RimFracture::WIDTH) uiTreeOrdering.add(m_legendConfigWidth);
|
||||
if (stimPlanParameterToPlot == RimFracture::CONDUCTIVITY) uiTreeOrdering.add(m_legendConfigConductivity);
|
||||
else if (stimPlanParameterToPlot == RimFracture::PERMEABILITY) uiTreeOrdering.add(m_legendConfigPermeability);
|
||||
else if (stimPlanParameterToPlot == RimFracture::WIDTH) uiTreeOrdering.add(m_legendConfigWidth);
|
||||
|
||||
uiTreeOrdering.setForgetRemainingFields(true);
|
||||
}
|
||||
@@ -794,6 +793,18 @@ RivWellFracturePartMgr* RimFracture::fracturePartManager()
|
||||
return m_rivFracture.p();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimLegendConfig* RimFracture::activeLegend()
|
||||
{
|
||||
if (stimPlanParameterToPlot == RimFracture::CONDUCTIVITY) return m_legendConfigConductivity;
|
||||
else if (stimPlanParameterToPlot == RimFracture::PERMEABILITY) return m_legendConfigPermeability;
|
||||
else if (stimPlanParameterToPlot == RimFracture::WIDTH) return m_legendConfigWidth;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -80,6 +80,7 @@ public:
|
||||
RimFractureTemplate* attachedFractureDefinition() const;
|
||||
|
||||
RivWellFracturePartMgr* fracturePartManager();
|
||||
RimLegendConfig* activeLegend();
|
||||
|
||||
bool hasValidGeometry() const;
|
||||
void computeGeometry();
|
||||
|
||||
Reference in new issue
Block a user