mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Added grid to well log trace plot. Using light gray solid lines.
This commit is contained in:
parent
2bac87972f
commit
513e9d9075
@ -19,12 +19,17 @@
|
|||||||
|
|
||||||
#include "RiuWellLogTracePlot.h"
|
#include "RiuWellLogTracePlot.h"
|
||||||
|
|
||||||
|
#include "qwt_plot_grid.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent)
|
RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent)
|
||||||
: QwtPlot(parent)
|
: QwtPlot(parent)
|
||||||
{
|
{
|
||||||
|
m_grid = new QwtPlotGrid();
|
||||||
|
m_grid->attach(this);
|
||||||
|
|
||||||
setDefaults();
|
setDefaults();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,6 +38,8 @@ RiuWellLogTracePlot::RiuWellLogTracePlot(QWidget* parent)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuWellLogTracePlot::~RiuWellLogTracePlot()
|
RiuWellLogTracePlot::~RiuWellLogTracePlot()
|
||||||
{
|
{
|
||||||
|
m_grid->detach();
|
||||||
|
delete m_grid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -53,4 +60,8 @@ void RiuWellLogTracePlot::setDefaults()
|
|||||||
{
|
{
|
||||||
canvasFrame->setFrameShape(QFrame::NoFrame);
|
canvasFrame->setFrameShape(QFrame::NoFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QPen gridPen(Qt::SolidLine);
|
||||||
|
gridPen.setColor(Qt::lightGray);
|
||||||
|
m_grid->setPen(gridPen);
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include "qwt_plot.h"
|
#include "qwt_plot.h"
|
||||||
|
|
||||||
|
class QwtPlotGrid;
|
||||||
|
|
||||||
//==================================================================================================
|
//==================================================================================================
|
||||||
//
|
//
|
||||||
// RiuWellLogTracePlot
|
// RiuWellLogTracePlot
|
||||||
@ -36,5 +38,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void setDefaults();
|
void setDefaults();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QwtPlotGrid* m_grid;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user