Engauge Digitizer  2
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. More...
 
ExportValuesXOrY xThetaValues () const
 Resulting x/theta values for all included functions. More...
 

Detailed Description

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

Definition at line 18 of file ExportXThetaValuesMergedFunctions.h.

Constructor & Destructor Documentation

◆ ExportXThetaValuesMergedFunctions()

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

Single constructor.

Definition at line 18 of file ExportXThetaValuesMergedFunctions.cpp.

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

Member Function Documentation

◆ xThetaValues()

ExportValuesXOrY ExportXThetaValuesMergedFunctions::xThetaValues ( ) const

Resulting x/theta values for all included functions.

Definition at line 262 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 
272  ExportValuesXOrY empty;
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  }

The documentation for this class was generated from the following files:
DocumentModelExportFormat::pointsSelectionFunctions
ExportPointsSelectionFunctions pointsSelectionFunctions() const
Get method for point selection for functions.
Definition: DocumentModelExportFormat.cpp:253
COORD_SCALE_LINEAR
Definition: CoordScale.h:15
EXPORT_POINTS_SELECTION_FUNCTIONS_INTERPOLATE_PERIODIC
Definition: ExportPointsSelectionFunctions.h:17
DocumentModelExportFormat::pointsIntervalFunctions
double pointsIntervalFunctions() const
Get method for points interval for functions.
Definition: DocumentModelExportFormat.cpp:233
Transformation::modelCoords
DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.
Definition: Transformation.cpp:262
ExportValuesXOrY
QList< double > ExportValuesXOrY
Definition: ExportValuesXOrY.h:11
LOG4CPP_INFO_S
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
mainCat
log4cpp::Category * mainCat
Definition: Logger.cpp:14
DocumentModelCoords::coordScaleXTheta
CoordScale coordScaleXTheta() const
Get method for linear/log scale on x/theta.
Definition: DocumentModelCoords.cpp:84