Basic well log plot functionality with dummy data up & running

Traces can be added to and deleted from well log plots, and curves with
dummy data can be added and deleted. TODO: Replace dummy data with real
well log data and data extracted from the model.
This commit is contained in:
Pål Hagen
2015-08-31 02:06:37 +02:00
parent 3f09c1bc66
commit 9d4f9d617f
10 changed files with 172 additions and 34 deletions

View File

@@ -22,10 +22,12 @@
#include "RimWellLogPlotTrace.h"
#include "RiuWellLogPlot.h"
#include "RiuWellLogTracePlot.h"
#include "RiuMainWindow.h"
#include "cafPdmUiTreeView.h"
#include "cvfAssert.h"
CAF_PDM_SOURCE_INIT(RimWellLogPlot, "WellLogPlot");
@@ -104,8 +106,19 @@ void RimWellLogPlot::addTrace()
RimWellLogPlotTrace* trace = new RimWellLogPlotTrace();
traces.push_back(trace);
trace->setUiName(QString("Trace %1").arg(traces.size()));
RiuWellLogTracePlot* viewer = m_viewer->createTracePlot();
trace->setViewer(viewer);
RiuMainWindow::instance()->projectTreeView()->setExpanded(this, true);
updateConnectedEditors();
m_viewer->update(*this);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RiuWellLogPlot* RimWellLogPlot::viewer()
{
return m_viewer;
}