mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5051 Fix Well Log Plot zoom with scrolling with scrollbar
This commit is contained in:
@@ -268,6 +268,15 @@ void RimWellLogPlot::availableDepthRange( double* minimumDepth, double* maximumD
|
|||||||
*maximumDepth = m_maxAvailableDepth;
|
*maximumDepth = m_maxAvailableDepth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimWellLogPlot::visibleDepthRange( double* minimumDepth, double* maximumDepth ) const
|
||||||
|
{
|
||||||
|
*minimumDepth = m_minVisibleDepth;
|
||||||
|
*maximumDepth = m_maxVisibleDepth;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ public:
|
|||||||
|
|
||||||
void calculateAvailableDepthRange();
|
void calculateAvailableDepthRange();
|
||||||
void availableDepthRange( double* minimumDepth, double* maximumDepth ) const;
|
void availableDepthRange( double* minimumDepth, double* maximumDepth ) const;
|
||||||
|
void visibleDepthRange( double* minimumDepth, double* maximumDepth ) const;
|
||||||
|
|
||||||
void setAutoScaleYEnabled( bool enabled );
|
void setAutoScaleYEnabled( bool enabled );
|
||||||
void enableAllAutoNameTags( bool enable );
|
void enableAllAutoNameTags( bool enable );
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ void RiuWellLogPlot::slotSetMinDepth( int value )
|
|||||||
{
|
{
|
||||||
double minimumDepth;
|
double minimumDepth;
|
||||||
double maximumDepth;
|
double maximumDepth;
|
||||||
wellLogPlotDefinition()->availableDepthRange( &minimumDepth, &maximumDepth );
|
wellLogPlotDefinition()->visibleDepthRange( &minimumDepth, &maximumDepth );
|
||||||
|
|
||||||
double delta = value - minimumDepth;
|
double delta = value - minimumDepth;
|
||||||
wellLogPlotDefinition()->setDepthAxisRange( minimumDepth + delta, maximumDepth + delta );
|
wellLogPlotDefinition()->setDepthAxisRange( minimumDepth + delta, maximumDepth + delta );
|
||||||
|
|||||||
Reference in New Issue
Block a user