Fix zoom all in well log plots

This commit is contained in:
Gaute Lindkvist 2019-11-27 11:44:56 +01:00
parent 62817054c4
commit 18090338c7
4 changed files with 23 additions and 14 deletions

View File

@ -279,6 +279,17 @@ void RimMultiPlotWindow::updateSubPlotNames() {}
//--------------------------------------------------------------------------------------------------
void RimMultiPlotWindow::updatePlotWindowTitle() {}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimMultiPlotWindow::doSetAutoScaleYEnabled( bool enabled )
{
for ( RimPlot* plot : plots() )
{
plot->setAutoScaleYEnabled( enabled );
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@ -309,10 +320,7 @@ void RimMultiPlotWindow::setAutoScaleXEnabled( bool enabled )
//--------------------------------------------------------------------------------------------------
void RimMultiPlotWindow::setAutoScaleYEnabled( bool enabled )
{
for ( RimPlot* plot : plots() )
{
plot->setAutoScaleYEnabled( enabled );
}
doSetAutoScaleYEnabled( enabled );
}
//--------------------------------------------------------------------------------------------------

View File

@ -128,6 +128,7 @@ private:
void doUpdateLayout() override;
virtual void updateSubPlotNames();
virtual void updatePlotWindowTitle();
virtual void doSetAutoScaleYEnabled( bool enabled );
protected:
caf::PdmField<bool> m_showPlotWindowTitle;

View File

@ -277,15 +277,6 @@ void RimWellLogPlot::visibleDepthRange( double* minimumDepth, double* maximumDep
*maximumDepth = m_maxVisibleDepth;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlot::setAutoScaleYEnabled( bool on )
{
m_isAutoScaleDepthEnabled = on;
m_isAutoScaleDepthEnabled.uiCapability()->updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@ -551,6 +542,15 @@ void RimWellLogPlot::updatePlotWindowTitle()
performAutoNameUpdate();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlot::doSetAutoScaleYEnabled( bool on )
{
m_isAutoScaleDepthEnabled = on;
m_isAutoScaleDepthEnabled.uiCapability()->updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -86,7 +86,6 @@ public:
void availableDepthRange( double* minimumDepth, double* maximumDepth ) const;
void visibleDepthRange( double* minimumDepth, double* maximumDepth ) const;
void setAutoScaleYEnabled( bool enabled );
void enableAllAutoNameTags( bool enable );
void uiOrderingForDepthAxis( QString uiConfigName, caf::PdmUiOrdering& uiOrdering );
@ -128,6 +127,7 @@ protected:
private:
void updateSubPlotNames() override;
void updatePlotWindowTitle() override;
void doSetAutoScaleYEnabled( bool enabled ) override;
protected:
caf::PdmChildField<RimWellLogCurveCommonDataSource*> m_commonDataSource;