mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
(#466) Clicking a plot curve selects the item in the project tree view
This commit is contained in:
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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user