mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added first cut extraction and plotting of RelPerm plots. Also added skeleton implementation of extraction and plotting of PVT plots. #1991, #1992, #1992, #2014
This commit is contained in:
committed by
sigurdp
parent
3ef2ec3f33
commit
71caab54ec
@@ -46,6 +46,8 @@
|
||||
#include "RiuToolTipMenu.h"
|
||||
#include "RiuTreeViewEventFilter.h"
|
||||
#include "RiuViewer.h"
|
||||
#include "RiuRelativePermeabilityPlotPanel.h"
|
||||
#include "RiuPvtPlotPanel.h"
|
||||
|
||||
#include "cafAnimationToolBar.h"
|
||||
#include "cafCmdExecCommandManager.h"
|
||||
@@ -98,6 +100,8 @@ RiuMainWindow* RiuMainWindow::sm_mainWindowInstance = NULL;
|
||||
RiuMainWindow::RiuMainWindow()
|
||||
: m_pdmRoot(NULL),
|
||||
m_mainViewer(NULL),
|
||||
m_relPermPlotPanel(NULL),
|
||||
m_pvtPlotPanel(NULL),
|
||||
m_windowMenu(NULL),
|
||||
m_blockSlotSubWindowActivated(false)
|
||||
{
|
||||
@@ -169,6 +173,8 @@ void RiuMainWindow::cleanupGuiCaseClose()
|
||||
setResultInfo("");
|
||||
|
||||
m_resultQwtPlot->deleteAllCurves();
|
||||
if (m_relPermPlotPanel) m_relPermPlotPanel->clearPlot();
|
||||
if (m_pvtPlotPanel) m_pvtPlotPanel->clearPlot();
|
||||
|
||||
if (m_pdmUiPropertyView)
|
||||
{
|
||||
@@ -615,6 +621,28 @@ void RiuMainWindow::createDockPanels()
|
||||
addDockWidget(Qt::BottomDockWidgetArea, dockPanel);
|
||||
}
|
||||
|
||||
{
|
||||
QDockWidget* dockPanel = new QDockWidget("Relative Permeability Plot", this);
|
||||
dockPanel->setObjectName("dockRelativePermeabilityPlotPanel");
|
||||
dockPanel->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
|
||||
m_relPermPlotPanel = new RiuRelativePermeabilityPlotPanel(dockPanel);
|
||||
dockPanel->setWidget(m_relPermPlotPanel);
|
||||
|
||||
addDockWidget(Qt::BottomDockWidgetArea, dockPanel);
|
||||
dockPanel->hide();
|
||||
}
|
||||
|
||||
{
|
||||
QDockWidget* dockPanel = new QDockWidget("PVT Plot", this);
|
||||
dockPanel->setObjectName("dockPvtPlotPanel");
|
||||
dockPanel->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
|
||||
m_pvtPlotPanel = new RiuPvtPlotPanel(dockPanel);
|
||||
dockPanel->setWidget(m_pvtPlotPanel);
|
||||
|
||||
addDockWidget(Qt::BottomDockWidgetArea, dockPanel);
|
||||
dockPanel->hide();
|
||||
}
|
||||
|
||||
{
|
||||
QDockWidget* dockWidget = new QDockWidget("Messages", this);
|
||||
dockWidget->setObjectName("dockMessages");
|
||||
@@ -838,6 +866,22 @@ RiuResultQwtPlot* RiuMainWindow::resultPlot()
|
||||
return m_resultQwtPlot;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuRelativePermeabilityPlotPanel* RiuMainWindow::relativePermeabilityPlotPanel()
|
||||
{
|
||||
return m_relPermPlotPanel;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPvtPlotPanel* RiuMainWindow::pvtPlotPanel()
|
||||
{
|
||||
return m_pvtPlotPanel;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user