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:
Jørgen Herje 2023-01-26 14:45:49 +01:00 committed by Magne Sjaastad
parent 3c296202c2
commit e3a347ccaa
11 changed files with 29 additions and 20 deletions

View File

@ -247,6 +247,14 @@ int RimCorrelationMatrixPlot::topNFilterCount() const
return m_topNFilterCount();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimCorrelationMatrixPlot::isCurveHighlightSupported() const
{
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -59,6 +59,7 @@ public:
void selectAllParameters();
bool showTopNCorrelations() const;
int topNFilterCount() const;
bool isCurveHighlightSupported() const override;
private:
// Overridden PDM methods

View File

@ -250,14 +250,6 @@ QImage RimWellAllocationOverTimePlot::snapshotWindowContent()
return image;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimWellAllocationOverTimePlot::isCurveHighlightSupported() const
{
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -62,8 +62,6 @@ public:
TIME_STEP_COUNT,
};
bool isCurveHighlightSupported() const override;
public:
RimWellAllocationOverTimePlot();
~RimWellAllocationOverTimePlot() override;

View File

@ -308,7 +308,7 @@ void RimPlot::handleWheelEvent( QWheelEvent* event )
//--------------------------------------------------------------------------------------------------
bool RimPlot::isCurveHighlightSupported() const
{
return true;
return false;
}
//--------------------------------------------------------------------------------------------------

View File

@ -172,6 +172,14 @@ RiuPlotWidget* RimVfpPlot::plotWidget()
return m_plotWidget;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimVfpPlot::isCurveHighlightSupported() const
{
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -47,6 +47,7 @@ public:
// RimPlot implementations
RiuPlotWidget* plotWidget() override;
bool isCurveHighlightSupported() const override;
void setAutoScaleXEnabled( bool enabled ) override;
void setAutoScaleYEnabled( bool enabled ) override;

View File

@ -266,6 +266,14 @@ bool RimSummaryPlot::isLogarithmicScaleEnabled( RiuPlotAxis plotAxis ) const
return axisProperties->isLogarithmicScaleEnabled();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimSummaryPlot::isCurveHighlightSupported() const
{
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -131,6 +131,8 @@ public:
bool isLogarithmicScaleEnabled( RiuPlotAxis plotAxis ) const;
bool isCurveHighlightSupported() const override;
RimSummaryTimeAxisProperties* timeAxisProperties();
time_t firstTimeStepOfFirstCurve();

View File

@ -1349,14 +1349,6 @@ void RimWellLogTrack::onChildrenUpdated( caf::PdmChildArrayFieldHandle* chi
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimWellLogTrack::isCurveHighlightSupported() const
{
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -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: