Cleaned away dummy data and moved curve creation logic to the command feature

This commit is contained in:
Jacob Støren
2015-09-01 09:06:02 +02:00
parent 3a7959ff13
commit 57d195d9d8
5 changed files with 16 additions and 28 deletions

View File

@@ -69,6 +69,9 @@ void RimWellLogPlotCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
m_plot->replot();
}
}
//--------------------------------------------------------------------------------------------------
@@ -82,15 +85,13 @@ caf::PdmFieldHandle* RimWellLogPlotCurve::objectToggleField()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotCurve::plot(const std::vector<double>& depthValues, const std::vector<double>& values)
void RimWellLogPlotCurve::updatePlot()
{
CVF_ASSERT(m_plot);
m_depthValues = depthValues;
m_values = values;
m_plotCurve->setTitle(this->uiName());
m_plotCurve->setSamples(values.data(), depthValues.data(), (int) depthValues.size());
//m_plotCurve->setSamples(values.data(), depthValues.data(), (int) depthValues.size());
m_plotCurve->attach(m_plot);
m_plot->replot();
}