Engauge Digitizer 2
Loading...
Searching...
No Matches
DocumentModelExportFormat.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 DOCUMENT_MODEL_EXPORT_FORMAT_H
8#define DOCUMENT_MODEL_EXPORT_FORMAT_H
9
11#include "ExportDelimiter.h"
12#include "ExportHeader.h"
17#include <QStringList>
18
19class Document;
20class QTextStream;
21
24{
25public:
28
30 DocumentModelExportFormat(const Document &document);
31
34
37
40
43
45 bool extrapolateOutsideEndpoints() const;
46
48 ExportHeader header() const;
49
52
53 virtual void loadXml(QXmlStreamReader &reader);
54
56 bool overrideCsvTsv () const;
57
59 double pointsIntervalFunctions () const;
60
62 double pointsIntervalRelations () const;
63
66
69
72
75
78 QTextStream &str) const;
79
80 virtual void saveXml(QXmlStreamWriter &writer) const;
81
84
87
90
93
96
99
102
105
108
111
114
117
119 void setXLabel (const QString &xLabel);
120
122 QString xLabel () const;
123
124private:
125
126 // Curves to be excluded from export. New curves will not appear in this so they will be exported by default.
127 QStringList m_curveNamesNotExported;
128
129 ExportPointsSelectionFunctions m_pointsSelectionFunctions;
130 double m_pointsIntervalFunctions;
131 ExportPointsIntervalUnits m_pointsIntervalUnitsFunctions;
132 ExportPointsSelectionRelations m_pointsSelectionRelations;
133 double m_pointsIntervalRelations;
134 ExportPointsIntervalUnits m_pointsIntervalUnitsRelations;
135 ExportLayoutFunctions m_layoutFunctions;
136 ExportDelimiter m_delimiter;
137 bool m_extrapolateOutsideEndpoints;
138 bool m_overrideCsvTsv;
139 ExportHeader m_header;
140 QString m_xLabel;
141};
142
143#endif // DOCUMENT_MODEL_EXPORT_FORMAT_H
const int INNER_RADIUS_MIN
ExportDelimiter
Delimiter values that may or may not be overridden by DOCUMENT_SERIALIZE_EXPORT_DELIMITER_OVERRIDE_CS...
ExportHeader
ExportLayoutFunctions
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
Model for DlgSettingsExportFormat and CmdSettingsExportFormat.
bool extrapolateOutsideEndpoints() const
Get methods for extrapolation.
ExportHeader header() const
Get method for header.
ExportPointsSelectionRelations pointsSelectionRelations() const
Get method for point selection for relations.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void setPointsIntervalFunctions(double pointsIntervalFunctions)
Set method for points interval for functions.
QStringList curveNamesNotExported() const
Get method for curve names not exported.
void setPointsIntervalRelations(double pointsIntervalRelations)
Set method for relations interval for relations.
double pointsIntervalRelations() const
Get method for relations interval for relations.
void setLayoutFunctions(ExportLayoutFunctions exportLayoutFunctions)
Set method for functions layout.
void setXLabel(const QString &xLabel)
Set method for x label.
void setHeader(ExportHeader exportHeader)
Set method for header.
bool overrideCsvTsv() const
Get method for csv/tsv format override.
DocumentModelExportFormat()
Default constructor.
QString xLabel() const
Get method for x label.
ExportPointsSelectionFunctions pointsSelectionFunctions() const
Get method for point selection for functions.
void setDelimiter(ExportDelimiter exportDelimiter)
Set method for delimiter.
double pointsIntervalFunctions() const
Get method for points interval for functions.
ExportPointsIntervalUnits pointsIntervalUnitsRelations() const
Get method for points interval units for relations.
void setCurveNamesNotExported(const QStringList &curveNamesNotExported)
Set method for curve names not exported.
void setPointsSelectionRelations(ExportPointsSelectionRelations exportPointsSelectionRelations)
Set method for point selection for relations.
ExportDelimiter delimiter() const
Get method for delimiter.
void setPointsSelectionFunctions(ExportPointsSelectionFunctions exportPointsSelectionFunctions)
Set method for point selection for functions.
void setOverrideCsvTsv(bool overrideCsvTsv)
Set method for csv/tsv format override.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setPointsIntervalUnitsFunctions(ExportPointsIntervalUnits pointsIntervalUnitsFunctions)
Set method for points interval units for functions.
ExportLayoutFunctions layoutFunctions() const
Get method for functions layout.
void setExtrapolateOutsideEndpoints(bool extrapolateOutsideEndpoints)
Set methods for extrapolation.
DocumentModelExportFormat & operator=(const DocumentModelExportFormat &other)
Assignment constructor.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setPointsIntervalUnitsRelations(ExportPointsIntervalUnits pointsIntervalUnitsRelations)
Set method for points interval units for relations.
ExportPointsIntervalUnits pointsIntervalUnitsFunctions() const
Get method for points interval units for functions.
Storage of one imported image and the data attached to that image.
Definition Document.h:42