#13176 Use guarded pointers for highlighted curves

This commit is contained in:
Magne Sjaastad authored and Kristian Bendiksen committed 2025-11-14 13:06:32 +01:00
1 parent 7c8aadcd60
commit b6f0164de7
3 files changed
+17 -13

No files matched your search

@@ -162,10 +162,10 @@ public:
QwtAxisId toQwtPlotAxis( RiuPlotAxis axis ) const;
void highlightPlotItem( const QwtPlotItem* plotItem );
void highlightCurvesUpdateOrder( const std::vector<RimPlotCurve*>& curves );
void resetPlotItemHighlighting( bool doUpdateCurveOrder = true );
std::vector<RimPlotCurve*> highlightedCurves() const;
void highlightPlotItem( const QwtPlotItem* plotItem );
void highlightCurvesUpdateOrder( const std::vector<RimPlotCurve*>& curves );
void resetPlotItemHighlighting( bool doUpdateCurveOrder = true );
std::vector<caf::PdmPointer<RimPlotCurve>> highlightedCurves() const;
void replot() override;
@@ -231,9 +231,9 @@ private:
int lineWidth;
};
std::map<QwtPlotCurve*, double> m_originalZValues;
std::vector<RimPlotCurve*> m_hightlightedCurves;
std::map<RiuPlotAxis, QwtAxisId> m_axisMapping;
std::map<QwtPlotCurve*, double> m_originalZValues;
std::vector<caf::PdmPointer<RimPlotCurve>> m_highlightedCurves;
std::map<RiuPlotAxis, QwtAxisId> m_axisMapping;
QPointer<QwtPlot> m_plot;