mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Invert default isCurveHighlightSupported flag for RimPlot
- Make default flag = false, thus highlighting must be activated - To prevent unwanted logic for new RimPlot objects - Activate highlighting for RimSummaryPlot, RimVfpPlot and RimCorrelationMatrixPlot
This commit is contained in:
parent
3c296202c2
commit
e3a347ccaa
@ -247,6 +247,14 @@ int RimCorrelationMatrixPlot::topNFilterCount() const
|
||||
return m_topNFilterCount();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimCorrelationMatrixPlot::isCurveHighlightSupported() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -59,6 +59,7 @@ public:
|
||||
void selectAllParameters();
|
||||
bool showTopNCorrelations() const;
|
||||
int topNFilterCount() const;
|
||||
bool isCurveHighlightSupported() const override;
|
||||
|
||||
private:
|
||||
// Overridden PDM methods
|
||||
|
@ -250,14 +250,6 @@ QImage RimWellAllocationOverTimePlot::snapshotWindowContent()
|
||||
return image;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWellAllocationOverTimePlot::isCurveHighlightSupported() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -62,8 +62,6 @@ public:
|
||||
TIME_STEP_COUNT,
|
||||
};
|
||||
|
||||
bool isCurveHighlightSupported() const override;
|
||||
|
||||
public:
|
||||
RimWellAllocationOverTimePlot();
|
||||
~RimWellAllocationOverTimePlot() override;
|
||||
|
@ -308,7 +308,7 @@ void RimPlot::handleWheelEvent( QWheelEvent* event )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimPlot::isCurveHighlightSupported() const
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -172,6 +172,14 @@ RiuPlotWidget* RimVfpPlot::plotWidget()
|
||||
return m_plotWidget;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimVfpPlot::isCurveHighlightSupported() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -47,6 +47,7 @@ public:
|
||||
|
||||
// RimPlot implementations
|
||||
RiuPlotWidget* plotWidget() override;
|
||||
bool isCurveHighlightSupported() const override;
|
||||
|
||||
void setAutoScaleXEnabled( bool enabled ) override;
|
||||
void setAutoScaleYEnabled( bool enabled ) override;
|
||||
|
@ -266,6 +266,14 @@ bool RimSummaryPlot::isLogarithmicScaleEnabled( RiuPlotAxis plotAxis ) const
|
||||
return axisProperties->isLogarithmicScaleEnabled();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimSummaryPlot::isCurveHighlightSupported() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -131,6 +131,8 @@ public:
|
||||
|
||||
bool isLogarithmicScaleEnabled( RiuPlotAxis plotAxis ) const;
|
||||
|
||||
bool isCurveHighlightSupported() const override;
|
||||
|
||||
RimSummaryTimeAxisProperties* timeAxisProperties();
|
||||
time_t firstTimeStepOfFirstCurve();
|
||||
|
||||
|
@ -1349,14 +1349,6 @@ void RimWellLogTrack::onChildrenUpdated( caf::PdmChildArrayFieldHandle* chi
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWellLogTrack::isCurveHighlightSupported() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -240,7 +240,6 @@ public:
|
||||
|
||||
void setEnsembleWellLogCurveSet( RimEnsembleWellLogCurveSet* curveSet );
|
||||
void updateAxesVisibility( RiaDefines::Orientation orientation, bool isFirstTrack, bool isLastTrack );
|
||||
bool isCurveHighlightSupported() const override;
|
||||
void updateDepthMarkerLine();
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user