1#ifndef GRID_INITIALIZER_H
2#define GRID_INITIALIZER_H
47 const QPointF &boundingRectGraphMax,
57 const QPointF &boundingRectGraphMax,
60 const QSize &imageSize)
const;
70 void axisScale (
double xMin,
81 const QSize &imageSize)
const;
82 double roundOffToPower (
double arg,
83 int roundOffPower)
const;
85 const QRectF m_boundingRectGraph;
Model for DlgSettingsCoords and CmdSettingsCoords.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
int valuePower(double value) const
Compute power of 10 for input value, rounding down to nearest integer solution of value>=10**solution...
double computeStep(bool linearAxis, double start, double stop, int count) const
Compute axis scale step from the other axis parameters.
double computeStart(bool linearAxis, double stop, double step, int count) const
Compute axis scale start from the other axis parameters.
int computeCount(bool linearAxis, double start, double stop, double step) const
Compute axis scale count from the other axis parameters.
GridInitializer()
Single constructor.
DocumentModelGridDisplay initializeWithNarrowCoverage(const QPointF &boundingRectGraphMin, const QPointF &boundingRectGraphMax, const DocumentModelCoords &modelCoords) const
Initialize given the boundaries of the graph coordinates.
DocumentModelGridDisplay initializeWithWidePolarCoverage(const QPointF &boundingRectGraphMin, const QPointF &boundingRectGraphMax, const DocumentModelCoords &modelCoords, const Transformation &transformation, const QSize &imageSize) const
Initialize given the boundaries of the graph coordinates, and then extra processing for polar coordin...
double computeStop(bool linearAxis, double start, double step, int count) const
Compute axis scale stop from the other axis parameters.