Engauge Digitizer  2
Public Member Functions | List of all members
GridInitializer Class Reference

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 QRectF &boundingRectGraph, const DocumentModelCoords &modelCoords) const
 Initialize given the boundaries of the graph coordinates. The output is useful for the Checker class.
 
DocumentModelGridDisplay initializeWithWidePolarCoverage (const QRectF &boundingRectGraph, 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:

  1. radial range expanded to cover the center (to remove hole at center) to the image corners (to guarantee coverage at corners of graph)
  2. angular range is expanded to cover the entire circle (so coverage is total for all directions)

 
int valuePower (double value) const
 Compute power of 10 for input value, rounding down to nearest integer solution of value>=10**solution.
 

Detailed Description

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.


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