Depth plot as docking widget (#9909)

* Add docked depth result plot for eclipse data
* Update dock layout defaults
This commit is contained in:
jonjenssen
2023-03-03 15:21:01 +01:00
committed by GitHub
parent 39d011b1e6
commit 3d663797b6
35 changed files with 935 additions and 177 deletions

View File

@@ -50,6 +50,7 @@
#include "RimViewLinkerCollection.h"
#include "RimViewWindow.h"
#include "RiuDepthQwtPlot.h"
#include "RiuDockWidgetTools.h"
#include "RiuMdiArea.h"
#include "RiuMdiSubWindow.h"
@@ -256,6 +257,7 @@ void RiuMainWindow::cleanupGuiCaseClose()
setResultInfo( "" );
m_resultQwtPlot->deleteAllCurves();
m_depthQwtPlot->deleteAllCurves();
if ( m_relPermPlotPanel ) m_relPermPlotPanel->clearPlot();
if ( m_pvtPlotPanel ) m_pvtPlotPanel->clearPlot();
if ( m_mohrsCirclePlot ) m_mohrsCirclePlot->clearPlot();
@@ -814,6 +816,14 @@ void RiuMainWindow::createDockPanels()
bottomWidgets.push_back( dockWidget );
}
{
auto dockWidget = RiuDockWidgetTools::createDockWidget( "Depth Plot", RiuDockWidgetTools::mainWindowDepthPlotName(), dockManager() );
m_depthQwtPlot = new RiuDepthQwtPlot( dockWidget );
dockWidget->setWidget( m_depthQwtPlot );
rightWidgets.push_back( dockWidget );
}
ads::CDockAreaWidget* leftArea = addTabbedWidgets( leftWidgets, ads::DockWidgetArea::LeftDockWidgetArea );
ads::CDockAreaWidget* rightArea = addTabbedWidgets( rightWidgets, ads::DockWidgetArea::RightDockWidgetArea );
ads::CDockAreaWidget* bottomArea =
@@ -1149,6 +1159,14 @@ RiuResultQwtPlot* RiuMainWindow::resultPlot()
return m_resultQwtPlot;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RiuDepthQwtPlot* RiuMainWindow::depthPlot()
{
return m_depthQwtPlot;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -1820,6 +1838,10 @@ void RiuMainWindow::applyFontSizesToDockedPlots()
{
m_resultQwtPlot->applyFontSizes( true );
}
if ( m_depthQwtPlot )
{
m_depthQwtPlot->applyFontSizes( true );
}
if ( m_mohrsCirclePlot )
{
m_mohrsCirclePlot->applyFontSizes( true );