mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3807 Make sure changing weights updates contour map
This commit is contained in:
parent
9a6d0ab9ef
commit
59a9136bf1
@ -767,3 +767,17 @@ RimEclipseContourMapView* RimEclipseContourMapProjection::view() const
|
|||||||
firstAncestorOrThisOfTypeAsserted(view);
|
firstAncestorOrThisOfTypeAsserted(view);
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimEclipseContourMapProjection::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
|
||||||
|
const QVariant& oldValue,
|
||||||
|
const QVariant& newValue)
|
||||||
|
{
|
||||||
|
RimContourMapProjection::fieldChangedByUi(changedField, oldValue, newValue);
|
||||||
|
if (changedField == &m_weightByParameter || changedField == &m_weightingResult)
|
||||||
|
{
|
||||||
|
clearGridMapping();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -78,8 +78,10 @@ protected:
|
|||||||
RimEclipseResultCase* eclipseCase() const;
|
RimEclipseResultCase* eclipseCase() const;
|
||||||
RimEclipseContourMapView* view() const;
|
RimEclipseContourMapView* view() const;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Framework overrides
|
// Framework overrides
|
||||||
|
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||||
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||||
void initAfterRead() override;
|
void initAfterRead() override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user