(#466) Clicking a plot curve selects the item in the project tree view

This commit is contained in:
Pål Hagen committed 2015-09-17 11:34:03 +02:00
1 parent ce6c33fa09
commit ca375d90ea
5 files changed
+72

No files matched your search

@@ -47,6 +47,9 @@ public:
void setPlot(RiuWellLogTracePlot* plot);
void detachCurve();
QwtPlotCurve* plotCurve() const { return m_plotCurve; }
virtual void updatePlotData();
protected:
@@ -232,3 +232,19 @@ void RimWellLogPlotTrace::updateAxisRangesAndReplot()
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellLogPlotCurve* RimWellLogPlotTrace::curveDefinitionFromCurve(const QwtPlotCurve* curve) const
{
for (size_t idx = 0; idx < curves.size(); idx++)
{
if (curves[idx]->plotCurve() == curve)
{
return curves[idx];
}
}
return NULL;
}
@@ -30,6 +30,8 @@
class RimWellLogPlotCurve;
class RiuWellLogTracePlot;
class QwtPlotCurve;
//==================================================================================================
///
///
@@ -53,6 +55,8 @@ public:
void updateAxisRangesAndReplot();
RiuWellLogTracePlot* viewer();
RimWellLogPlotCurve* curveDefinitionFromCurve(const QwtPlotCurve* curve) const;
protected: