mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6039 Well Allocation Plot: Update flow rate curves after change of visibility
This commit is contained in:
parent
c50ace8a01
commit
396a71da37
@ -161,16 +161,13 @@ void RimWellFlowRateCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
|||||||
{
|
{
|
||||||
this->RimPlotCurve::updateCurvePresentation( updateParentPlot );
|
this->RimPlotCurve::updateCurvePresentation( updateParentPlot );
|
||||||
|
|
||||||
if ( isCurveVisible() )
|
m_qwtPlotCurve->setTitle( createCurveAutoName() );
|
||||||
{
|
|
||||||
m_qwtPlotCurve->setTitle( createCurveAutoName() );
|
|
||||||
|
|
||||||
updateStackedPlotData();
|
updateStackedPlotData();
|
||||||
|
|
||||||
updateZoomInParentPlot();
|
updateZoomInParentPlot();
|
||||||
|
|
||||||
if ( m_parentQwtPlot ) m_parentQwtPlot->replot();
|
if ( m_parentQwtPlot ) m_parentQwtPlot->replot();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -186,7 +183,11 @@ void RimWellFlowRateCurve::updateCurveAppearance()
|
|||||||
firstAncestorOrThisOfTypeAsserted( wellLogTrack );
|
firstAncestorOrThisOfTypeAsserted( wellLogTrack );
|
||||||
std::map<int, std::vector<RimWellFlowRateCurve*>> stackedCurveGroups = wellLogTrack->visibleStackedCurves();
|
std::map<int, std::vector<RimWellFlowRateCurve*>> stackedCurveGroups = wellLogTrack->visibleStackedCurves();
|
||||||
const std::vector<RimWellFlowRateCurve*>& curveGroup = stackedCurveGroups[this->m_groupId];
|
const std::vector<RimWellFlowRateCurve*>& curveGroup = stackedCurveGroups[this->m_groupId];
|
||||||
isLastCurveInGroup = ( curveGroup.back() == this );
|
|
||||||
|
if ( !curveGroup.empty() )
|
||||||
|
{
|
||||||
|
isLastCurveInGroup = ( curveGroup.back() == this );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isUsingConnectionNumberDepthType() )
|
if ( isUsingConnectionNumberDepthType() )
|
||||||
@ -241,6 +242,21 @@ void RimWellFlowRateCurve::defineUiOrdering( QString uiConfigName, caf::PdmUiOrd
|
|||||||
uiOrdering.skipRemainingFields();
|
uiOrdering.skipRemainingFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimWellFlowRateCurve::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||||
|
const QVariant& oldValue,
|
||||||
|
const QVariant& newValue )
|
||||||
|
{
|
||||||
|
if ( changedField == &m_showCurve )
|
||||||
|
{
|
||||||
|
loadDataAndUpdate( true );
|
||||||
|
}
|
||||||
|
|
||||||
|
RimWellLogCurve::fieldChangedByUi( changedField, oldValue, newValue );
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -61,6 +61,7 @@ protected:
|
|||||||
void updateCurveAppearance() override;
|
void updateCurveAppearance() override;
|
||||||
|
|
||||||
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
||||||
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool isUsingConnectionNumberDepthType() const;
|
bool isUsingConnectionNumberDepthType() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user