(#459) Added support for plotting of discontinuous curves

This commit is contained in:
Pål Hagen
2015-09-17 18:42:35 +02:00
parent 3d09ceb92b
commit ffbc4f13e7
8 changed files with 233 additions and 28 deletions

View File

@@ -20,7 +20,8 @@
#include "RimWellLogPlotCurve.h"
#include "RimWellLogPlot.h"
#include "RiuWellLogTracePlot.h"
#include "qwt_plot_curve.h"
#include "RiuWellLogPlotCurve.h"
#include "cvfAssert.h"
CAF_PDM_SOURCE_INIT(RimWellLogPlotCurve, "WellLogPlotCurve");
@@ -38,7 +39,7 @@ RimWellLogPlotCurve::RimWellLogPlotCurve()
CAF_PDM_InitField(&m_curveColor, "Color", cvf::Color3f(cvf::Color3::BLACK), "Color", "", "", "");
m_plotCurve = new QwtPlotCurve;
m_plotCurve = new RiuWellLogPlotCurve;
m_plotCurve->setXAxis(QwtPlot::xTop);
m_plotCurve->setYAxis(QwtPlot::yLeft);
}
@@ -172,3 +173,11 @@ void RimWellLogPlotCurve::detachCurve()
m_plotCurve->detach();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QwtPlotCurve* RimWellLogPlotCurve::plotCurve() const
{
return m_plotCurve;
}