Engauge Digitizer 2
Loading...
Searching...
No Matches
ExportFileAbstractBase.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef EXPORT_FILE_ABSTRACT_BASE_H
8#define EXPORT_FILE_ABSTRACT_BASE_H
9
10#include "CurveConnectAs.h"
11#include "ExportHeader.h"
12#include <QPointF>
13#include <QStringList>
14#include <QVector>
15#include <vector>
16
17class Document;
20class QTextStream;
21class SplinePair;
22class Transformation;
23
26{
27public:
30 virtual ~ExportFileAbstractBase ();
31
32protected:
33
35 QStringList curvesToInclude (const DocumentModelExportFormat &modelExportOverride,
36 const Document &document,
37 const QStringList &curvesGraphsNames,
40
43
45 QString gnuplotComment() const;
46
50 QTextStream &str) const;
51
56 const DocumentModelCoords &modelCoords,
58 const QPointF &posGraph) const;
59
64 const QString &valueString) const;
65};
66
67#endif // EXPORT_FILE_ABSTRACT_BASE_H
CurveConnectAs
const int INNER_RADIUS_MIN
ExportHeader
Model for DlgSettingsCoords and CmdSettingsCoords.
Model for DlgSettingsExportFormat and CmdSettingsExportFormat.
Storage of one imported image and the data attached to that image.
Definition Document.h:42
Strategy base class for exporting to a file. This class provides common methods.
void destroy2DArray(QVector< QVector< QString * > > &array) const
Deallocate memory for array.
double linearlyInterpolateYRadiusFromTwoPoints(double xThetaValue, const DocumentModelCoords &modelCoords, const QPointF &posGraphBefore, const QPointF &posGraph) const
Interpolate (if xThetaValue is between posGraphBefore.x() and posGraph.x()) or extrapolate (if xTheta...
QString wrapInDoubleQuotesIfNeeded(const DocumentModelExportFormat &modelExportOverride, const QString &valueString) const
RFC 4180 says if values are delimited by a comma AND a value has commas in it (for locale like Englis...
QString gnuplotComment() const
Gnuplot comment delimiter.
QStringList curvesToInclude(const DocumentModelExportFormat &modelExportOverride, const Document &document, const QStringList &curvesGraphsNames, CurveConnectAs curveConnectAs1, CurveConnectAs curveConnectAs2) const
Identify curves to include in export. The specified DocumentModelExportFormat overrides same data in ...
ExportFileAbstractBase()
Single constructor.
void insertLineSeparator(bool isFirst, ExportHeader exportHeader, QTextStream &str) const
Insert line(s) between successive sets of curves.
Single X/Y pair for cubic spline interpolation initialization and calculations.
Definition SplinePair.h:14
Affine transformation between screen and graph coordinates, based on digitized axis points.