(#396) Scroll wheel now pans the plot in the depth direction

This commit is contained in:
Pål Hagen
2015-09-02 16:30:37 +02:00
parent fd3df6492b
commit 8d7bbb85a9
3 changed files with 16 additions and 1 deletions

View File

@@ -172,6 +172,15 @@ void RimWellLogPlot::zoomDepth(double zoomFactor)
setDepthRange(newMinimum, newMaximum);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlot::panDepth(double panFactor)
{
double delta = panFactor*(m_maximumVisibleDepth - m_minimumVisibleDepth);
setDepthRange(m_minimumVisibleDepth + delta, m_maximumVisibleDepth + delta);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------