mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add simple fix for Grid Cross plot as well
* TODO: make sure the methods in RimSummaryPlot and RimGridCrossPlot are called when using the generic virtual method in RimPlotInterface. * This requires a bit of thought, since they have parameters which the generic version does not have
This commit is contained in:
@@ -152,7 +152,7 @@ public:
|
|||||||
virtual QString tabText( int tabIndex ) const override
|
virtual QString tabText( int tabIndex ) const override
|
||||||
{
|
{
|
||||||
CVF_ASSERT( m_crossPlot.notNull() && "Need to check that provider is valid" );
|
CVF_ASSERT( m_crossPlot.notNull() && "Need to check that provider is valid" );
|
||||||
return m_crossPlot->asciiDataForPlotExport( tabIndex );
|
return m_crossPlot->asciiDataForGridCrossPlotExport( tabIndex );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int tabCount() const override
|
virtual int tabCount() const override
|
||||||
|
|||||||
@@ -620,7 +620,7 @@ QString RimGridCrossPlot::asciiTitleForPlotExport( int dataSetIndex ) const
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
QString RimGridCrossPlot::asciiDataForPlotExport( int dataSetIndex ) const
|
QString RimGridCrossPlot::asciiDataForGridCrossPlotExport( int dataSetIndex ) const
|
||||||
{
|
{
|
||||||
if ( (size_t)dataSetIndex < m_crossPlotDataSets.size() )
|
if ( (size_t)dataSetIndex < m_crossPlotDataSets.size() )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ public:
|
|||||||
void updateCurveNamesAndPlotTitle();
|
void updateCurveNamesAndPlotTitle();
|
||||||
void swapAxes();
|
void swapAxes();
|
||||||
QString asciiTitleForPlotExport( int dataSetIndex ) const;
|
QString asciiTitleForPlotExport( int dataSetIndex ) const;
|
||||||
QString asciiDataForPlotExport( int dataSetIndex ) const;
|
QString asciiDataForGridCrossPlotExport( int dataSetIndex ) const;
|
||||||
|
|
||||||
bool isXAxisLogarithmic() const;
|
bool isXAxisLogarithmic() const;
|
||||||
bool isYAxisLogarithmic() const;
|
bool isYAxisLogarithmic() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user