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 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 
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  }
290 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
double pointsIntervalFunctions() const
Get method for points interval for functions.
DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.
QList< double > ExportValuesXOrY
CoordScale coordScaleXTheta() const
Get method for linear/log scale on x/theta.
log4cpp::Category * mainCat
Definition: Logger.cpp:14
ExportPointsSelectionFunctions pointsSelectionFunctions() const
Get method for point selection for functions.

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