Engauge Digitizer 2
|
This class initializes the count, start, step and stop parameters for one coordinate (either x/theta or y/range) More...
#include <GridInitializer.h>
Public Member Functions | |
GridInitializer () | |
Single constructor. | |
int | computeCount (bool linearAxis, double start, double stop, double step) const |
Compute axis scale count 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. | |
double | computeStep (bool linearAxis, double start, double stop, int count) const |
Compute axis scale step from the other axis parameters. | |
double | computeStop (bool linearAxis, double start, double step, int count) const |
Compute axis scale stop from the other axis parameters. | |
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 coordinates: | |
int | valuePower (double value) const |
Compute power of 10 for input value, rounding down to nearest integer solution of value>=10**solution. |
This class initializes the count, start, step and stop parameters for one coordinate (either x/theta or y/range)
Definition at line 13 of file GridInitializer.h.
GridInitializer::GridInitializer | ( | ) |
int GridInitializer::computeCount | ( | bool | linearAxis, |
double | start, | ||
double | stop, | ||
double | step ) const |
Compute axis scale count from the other axis parameters.
Definition at line 95 of file GridInitializer.cpp.
double GridInitializer::computeStart | ( | bool | linearAxis, |
double | stop, | ||
double | step, | ||
int | count ) const |
Compute axis scale start from the other axis parameters.
Definition at line 119 of file GridInitializer.cpp.
double GridInitializer::computeStep | ( | bool | linearAxis, |
double | start, | ||
double | stop, | ||
int | count ) const |
Compute axis scale step from the other axis parameters.
Definition at line 135 of file GridInitializer.cpp.
double GridInitializer::computeStop | ( | bool | linearAxis, |
double | start, | ||
double | step, | ||
int | count ) const |
Compute axis scale stop from the other axis parameters.
Definition at line 163 of file GridInitializer.cpp.
DocumentModelGridDisplay GridInitializer::initializeWithNarrowCoverage | ( | const QPointF & | boundingRectGraphMin, |
const QPointF & | boundingRectGraphMax, | ||
const DocumentModelCoords & | modelCoords ) const |
Initialize given the boundaries of the graph coordinates.
The output is useful for the Checker class. The bounding rectangle is handled as two QPointFs rather one QRectF since QRectF rounds off the lower coordinate to zero when there is a large dynamic range (1e-3 to 1e+9) and zeros break log calculations
Definition at line 179 of file GridInitializer.cpp.
DocumentModelGridDisplay GridInitializer::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 coordinates:
Definition at line 225 of file GridInitializer.cpp.
int GridInitializer::valuePower | ( | double | value | ) | const |
Compute power of 10 for input value, rounding down to nearest integer solution of value>=10**solution.
Definition at line 308 of file GridInitializer.cpp.