Engauge Digitizer 2
|
Strategy class for exporting to a file. This strategy is external to the Document class so that class is simpler. More...
#include <ExportFileRelations.h>
Public Member Functions | |
ExportFileRelations () | |
Single constructor. | |
void | exportToFile (const DocumentModelExportFormat &modelExportOverride, const Document &document, const MainWindowModel &modelMainWindow, const Transformation &transformation, QTextStream &str, unsigned int &numWritesSoFar) const |
Export Document points according to the settings. | |
![]() | |
ExportFileAbstractBase () | |
Single constructor. | |
virtual | ~ExportFileAbstractBase () |
Friends | |
class | TestExport |
Additional Inherited Members | |
![]() | |
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 Document for previewing window. | |
void | destroy2DArray (QVector< QVector< QString * > > &array) const |
Deallocate memory for array. | |
QString | gnuplotComment () const |
Gnuplot comment delimiter. | |
void | insertLineSeparator (bool isFirst, ExportHeader exportHeader, QTextStream &str) const |
Insert line(s) between successive sets of curves. | |
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 xThetaValue < posGraphBefore.x() or xThetaValue > posGraph.x()) the given x/theta value using the two specified graph points. | |
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 English/Switzerland when dealing with numbers) then double quotes are required for the value. | |
Strategy class for exporting to a file. This strategy is external to the Document class so that class is simpler.
Definition at line 26 of file ExportFileRelations.h.
ExportFileRelations::ExportFileRelations | ( | ) |
void ExportFileRelations::exportToFile | ( | const DocumentModelExportFormat & | modelExportOverride, |
const Document & | document, | ||
const MainWindowModel & | modelMainWindow, | ||
const Transformation & | transformation, | ||
QTextStream & | str, | ||
unsigned int & | numWritesSoFar ) const |
Export Document points according to the settings.
The DocumentModelExportFormat inside the Document is ignored so DlgSettingsExport can supply its own DocumentModelExportFormat when previewing what would be exported.
Definition at line 223 of file ExportFileRelations.cpp.
|
friend |
Definition at line 29 of file ExportFileRelations.h.