24 const QStringList &curvesIncluded,
28 modelExport.extrapolateOutsideEndpoints (),
32 addGridLines (modelMainWindow,
37void CallbackGatherXThetasInGridLines::addGridLines (
const MainWindowModel &modelMainWindow,
58 int countX = qFloor (0.5 + 1 + (stopX - startX) / stepX);
59 for (
int i = 0; i < countX; i++) {
60 double x = startX + i * stepX;
65 int countX = qFloor (1.0 + (qLn (stopX) - qLn (startX)) / qLn (stepX));
66 for (
int i = 0; i < countX; i++) {
67 double x = startX * qPow (stepX, i);
77 <<
" curveName=" << curveName.toLatin1().data()
78 <<
" point=" << point.
identifier().toLatin1().data();
const bool NOT_FIRST_CURVE_ONLY
CallbackSearchReturn
Return values for search callback methods.
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
log4cpp::Category * mainCat
Base callback for collecting X/Theta independent variables, for functions, in preparation for exporti...
const Transformation & transformation() const
Get method for transformation.
void updateMinMax(const QString &curveName, const Point &point)
Update the tracked min and max values for each curve.
void addGraphX(double xGraph)
Save one graph x value.
CallbackGatherXThetasInGridLines(const MainWindowModel &modelMainWindow, const DocumentModelExportFormat &modelExport, const QStringList &curvesIncluded, const Transformation &transformation, const Document &document)
Single constructor.
virtual CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
CoordScale coordScaleXTheta() const
Get method for linear/log scale on x/theta.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
double startX() const
Get method for x grid line lower bound (inclusive).
double stepX() const
Get method for x grid line increment.
double stopX() const
Get method for x grid line upper bound (inclusive).
Storage of one imported image and the data attached to that image.
DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.
DocumentModelGridDisplay modelGridDisplay() const
Get method for DocumentModelGridDisplay.
Limit the number of grid lines so a bad combination of start/step/stop value will not lead to extreme...
void limitForXTheta(const Document &document, const Transformation &transformation, const DocumentModelCoords &modelCoords, const MainWindowModel &modelMainWindow, const DocumentModelGridDisplay &modelGrid, double &startX, double &stepX, double &stopX) const
Limit step value for x/theta coordinate. This is a noop if the maximum grid line limit in MainWindowM...
Model for DlgSettingsMainWindow.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
QString identifier() const
Unique identifier for a specific Point.
#define LOG4CPP_DEBUG_S(logger)