Added command feature for addition of a new trace to a well log plot

This commit is contained in:
Pål Hagen
2015-08-28 11:32:25 +02:00
parent af9bbfdede
commit 0fdf5292d0
6 changed files with 132 additions and 0 deletions

View File

@@ -24,6 +24,9 @@
#include "RiuWellLogPlot.h"
#include "RiuMainWindow.h"
#include "cafPdmUiTreeView.h"
CAF_PDM_SOURCE_INIT(RimWellLogPlot, "WellLogPlot");
//--------------------------------------------------------------------------------------------------
@@ -92,3 +95,15 @@ caf::PdmFieldHandle* RimWellLogPlot::objectToggleField()
{
return &showWindow;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlot::addTrace()
{
RimWellLogPlotTrace* trace = new RimWellLogPlotTrace();
traces.push_back(trace);
RiuMainWindow::instance()->projectTreeView()->setExpanded(this, true);
updateConnectedEditors();
}