Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ExportXThetaValuesMergedFunctions Class Reference

Creates the set of merged x/theta values for exporting functions, using interpolation. More...

#include <ExportXThetaValuesMergedFunctions.h>

Collaboration diagram for ExportXThetaValuesMergedFunctions:
Collaboration graph

Public Member Functions

 ExportXThetaValuesMergedFunctions (const DocumentModelExportFormat &modelExport, const ValuesVectorXOrY &xThetaValuesRaw, const Transformation &transformation)
 Single constructor.
 
ExportValuesXOrY xThetaValues () const
 Resulting x/theta values for all included functions.
 

Detailed Description

Creates the set of merged x/theta values for exporting functions, using interpolation.

Definition at line 19 of file ExportXThetaValuesMergedFunctions.h.

Constructor & Destructor Documentation

◆ ExportXThetaValuesMergedFunctions()

ExportXThetaValuesMergedFunctions::ExportXThetaValuesMergedFunctions ( const DocumentModelExportFormat & modelExport,
const ValuesVectorXOrY & xThetaValuesRaw,
const Transformation & transformation )

Single constructor.

Definition at line 19 of file ExportXThetaValuesMergedFunctions.cpp.

21 :
22 m_modelExport (modelExport),
23 m_xThetaValuesRaw (xThetaValuesRaw),
24 m_transformation (transformation)
25{
26}

Member Function Documentation

◆ xThetaValues()

ExportValuesXOrY ExportXThetaValuesMergedFunctions::xThetaValues ( ) const

Resulting x/theta values for all included functions.

Definition at line 263 of file ExportXThetaValuesMergedFunctions.cpp.

264{
265 LOG4CPP_INFO_S ((*mainCat)) << "ExportXThetaValuesMergedFunctions::xThetaValues";
266
268
269 // Special case that occurs when there are no points
270 if (qAbs (m_modelExport.pointsIntervalFunctions()) <= 0) {
271
273 return empty;
274
275 } else {
276
277 bool isLinear = (m_transformation.modelCoords().coordScaleXTheta() == COORD_SCALE_LINEAR);
278 if (isLinear) {
279 return periodicLinear ();
280 } else {
281 return periodicLog ();
282 }
283 }
284 } else {
285
286 // Return the gathered values
287 return m_xThetaValuesRaw.keys();
288
289 }
290}
@ COORD_SCALE_LINEAR
Definition CoordScale.h:13
const int INNER_RADIUS_MIN
@ EXPORT_POINTS_SELECTION_FUNCTIONS_INTERPOLATE_PERIODIC
QList< double > ExportValuesXOrY
log4cpp::Category * mainCat
Definition Logger.cpp:14
CoordScale coordScaleXTheta() const
Get method for linear/log scale on x/theta.
ExportPointsSelectionFunctions pointsSelectionFunctions() const
Get method for point selection for functions.
double pointsIntervalFunctions() const
Get method for points interval for functions.
DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

The documentation for this class was generated from the following files: