13void GridInitializer::axisScale (
double xMin,
180 const QPointF &boundingRectGraphMax,
191 axisScale (boundingRectGraphMin.x(),
192 boundingRectGraphMax.x(),
200 modelGridDisplay.
setCountX (
unsigned (count));
206 axisScale (boundingRectGraphMin.y(),
207 boundingRectGraphMax.y(),
215 modelGridDisplay.
setCountY (
unsigned (count));
222 return modelGridDisplay;
226 const QPointF &boundingRectGraphMax,
234 boundingRectGraphMax,
239 overridePolarCoordinateSettings (modelCoords,
245 return modelGridDisplay;
248void GridInitializer::overridePolarCoordinateSettings (
const DocumentModelCoords &modelCoords,
258 double stopX = 360.0;
260 int countX =
qFloor (0.5 + (stopX - startX) / stepX);
264 modelGridDisplay.
setCountX (
unsigned (countX));
284 double stopY = radius;
285 double stepY = modelGridDisplay.
stepY ();
298 modelGridDisplay.
setCountY (
unsigned (countY));
301double GridInitializer::roundOffToPower(
double arg,
const int INNER_RADIUS_MIN
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
@ GRID_COORD_DISABLE_COUNT
log4cpp::Category * mainCat
Model for DlgSettingsCoords and CmdSettingsCoords.
CoordScale coordScaleYRadius() const
Get method for linear/log scale on y/radius.
CoordScale coordScaleXTheta() const
Get method for linear/log scale on x/theta.
CoordsType coordsType() const
Get method for coordinates type.
double originRadius() const
Get method for origin radius in polar mode.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
void setStepX(double stepX)
Set method for x grid line increment.
void setStepY(double yStep)
Set method for y grid line increment.
void setStopX(double stopX)
Set method for x grid line upper bound (inclusive).
void setDisableX(GridCoordDisable disableX)
Set method for x grid line disabled variable.
void setStopY(double yStop)
Set method for y grid line upper bound (inclusive).
void setDisableY(GridCoordDisable disableY)
Set method for y grid line disabled variable.
double stepY() const
Get method for y grid line increment.
void setCountX(unsigned int countX)
Set method for x grid line count.
void setStartX(double startX)
Set method for x grid line lower bound (inclusive).
void setStable(bool stable)
Set method for stable flag.
void setStartY(double yStart)
Set method for y grid line lower bound (inclusive).
void setCountY(unsigned int countY)
Set method for y grid line count.
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.
#define LOG4CPP_INFO_S(logger)