#1373 Include plot title in text for export

This commit is contained in:
Magne Sjaastad 2017-04-19 13:31:46 +02:00
parent 4ac35c4e30
commit 58065396e7
2 changed files with 18 additions and 3 deletions

View File

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

View File

@ -203,6 +203,8 @@ QString RimSummaryPlot::asciiDataForPlotExport() const
{
QString out;
out += description();
{
std::vector<RimSummaryCurve*> curves;
this->descendantsIncludingThisOfType(curves);