Engauge Digitizer 2
|
Strategy base class for exporting to a file. This class provides common methods. More...
#include <ExportFileAbstractBase.h>
Public Member Functions | |
ExportFileAbstractBase () | |
Single constructor. | |
virtual | ~ExportFileAbstractBase () |
Protected Member Functions | |
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 base class for exporting to a file. This class provides common methods.
Definition at line 25 of file ExportFileAbstractBase.h.
ExportFileAbstractBase::ExportFileAbstractBase | ( | ) |
|
virtual |
Definition at line 25 of file ExportFileAbstractBase.cpp.
|
protected |
Identify curves to include in export. The specified DocumentModelExportFormat overrides same data in Document for previewing window.
Definition at line 29 of file ExportFileAbstractBase.cpp.
|
protected |
Deallocate memory for array.
Definition at line 63 of file ExportFileAbstractBase.cpp.
|
protected |
Gnuplot comment delimiter.
Definition at line 76 of file ExportFileAbstractBase.cpp.
|
protected |
Insert line(s) between successive sets of curves.
Definition at line 81 of file ExportFileAbstractBase.cpp.
|
protected |
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.
Definition at line 95 of file ExportFileAbstractBase.cpp.
|
protected |
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.
In other cases this method is a noop
Definition at line 119 of file ExportFileAbstractBase.cpp.