Added collection class for well log plots

This commit is contained in:
Pål Hagen
2015-08-28 10:42:57 +02:00
parent 75a34e605f
commit af9bbfdede
9 changed files with 163 additions and 42 deletions

View File

@@ -18,7 +18,7 @@
/////////////////////////////////////////////////////////////////////////////////
#include "RimMainPlotCollection.h"
#include "RimWellLogPlot.h"
#include "RimWellLogPlotCollection.h"
#include "RiuMainWindow.h"
@@ -36,8 +36,10 @@ RimMainPlotCollection::RimMainPlotCollection()
CAF_PDM_InitField(&show, "Show", true, "Show plots", "", "", "");
show.uiCapability()->setUiHidden(true);
CAF_PDM_InitFieldNoDefault(&wellLogPlots, "WellLogPlots", "", "", "", "");
wellLogPlots.uiCapability()->setUiHidden(true);
CAF_PDM_InitFieldNoDefault(&wellLogPlotCollection, "WellLogPlotCollection", "", "", "", "");
wellLogPlotCollection.uiCapability()->setUiHidden(true);
wellLogPlotCollection = new RimWellLogPlotCollection();
}
//--------------------------------------------------------------------------------------------------
@@ -45,6 +47,7 @@ RimMainPlotCollection::RimMainPlotCollection()
//--------------------------------------------------------------------------------------------------
RimMainPlotCollection::~RimMainPlotCollection()
{
if (wellLogPlotCollection()) delete wellLogPlotCollection();
}
//--------------------------------------------------------------------------------------------------
@@ -61,15 +64,3 @@ caf::PdmFieldHandle* RimMainPlotCollection::objectToggleField()
{
return &show;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimMainPlotCollection::addWellLogPlot()
{
RimWellLogPlot* view = new RimWellLogPlot();
wellLogPlots.push_back(view);
RiuMainWindow::instance()->projectTreeView()->setExpanded(this, true);
updateConnectedEditors();
}