mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1373 Include plot title in text for export
This commit is contained in:
parent
4ac35c4e30
commit
58065396e7
@ -21,6 +21,10 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RigWellLogCurveData.h"
|
||||
|
||||
#include "RimWellAllocationPlot.h"
|
||||
#include "RimWellLogCurve.h"
|
||||
#include "RimWellLogTrack.h"
|
||||
|
||||
#include "RiuMainPlotWindow.h"
|
||||
@ -30,9 +34,6 @@
|
||||
#include "cvfAssert.h"
|
||||
|
||||
#include <math.h>
|
||||
#include "RimWellAllocationPlot.h"
|
||||
#include "RimWellLogCurve.h"
|
||||
#include "RigWellLogCurveData.h"
|
||||
|
||||
#define RI_LOGPLOT_MINDEPTH_DEFAULT 0.0
|
||||
#define RI_LOGPLOT_MAXDEPTH_DEFAULT 1000.0
|
||||
@ -392,6 +393,18 @@ QString RimWellLogPlot::asciiDataForPlotExport() const
|
||||
{
|
||||
QString out;
|
||||
|
||||
RimWellAllocationPlot* wellAllocPlot = nullptr;
|
||||
this->firstAncestorOrThisOfType(wellAllocPlot);
|
||||
if (wellAllocPlot)
|
||||
{
|
||||
out += wellAllocPlot->description();
|
||||
}
|
||||
else
|
||||
{
|
||||
out += description();
|
||||
}
|
||||
out += "\n";
|
||||
|
||||
for (RimWellLogTrack* track : m_tracks)
|
||||
{
|
||||
if (!track->isVisible()) continue;
|
||||
|
@ -203,6 +203,8 @@ QString RimSummaryPlot::asciiDataForPlotExport() const
|
||||
{
|
||||
QString out;
|
||||
|
||||
out += description();
|
||||
|
||||
{
|
||||
std::vector<RimSummaryCurve*> curves;
|
||||
this->descendantsIncludingThisOfType(curves);
|
||||
|
Loading…
Reference in New Issue
Block a user