Engauge Digitizer
2
|
Factory class for generating the points, composed of QGraphicsItem objects, along a GridLine. More...
#include <GridLineFactory.h>
Public Member Functions | |
GridLineFactory (QGraphicsScene &scene, const DocumentModelCoords &modelCoords, const Transformation &transformation) | |
Simple constructor for general use (i.e. not by Checker) | |
GridLineFactory (QGraphicsScene &scene, int pointRadius, const QList< Point > &pointsToIsolate, const DocumentModelCoords &modelCoords, const Transformation &transformation) | |
Constructor for use by Checker, which has points that are isolated. | |
GridLine * | createGridLine (double xFrom, double yFrom, double xTo, double yTo) |
Create grid line, either along constant X/theta or constant Y/radius side. More... | |
void | createGridLinesForEvenlySpacedGrid (const DocumentModelGridDisplay &modelGridDisplay, GridLines &gridLines) |
Create a rectangular (cartesian) or annular (polar) grid of evenly spaced grid lines. | |
Factory class for generating the points, composed of QGraphicsItem objects, along a GridLine.
For polar coordinates, the grid lines will appear as an annular segments.
For the Checker class, a set of Points can be specified which will be isolated by having grid lines stop at a specified distance (or radius) from each point
Definition at line 27 of file GridLineFactory.h.
GridLine * GridLineFactory::createGridLine | ( | double | xFrom, |
double | yFrom, | ||
double | xTo, | ||
double | yTo | ||
) |
Create grid line, either along constant X/theta or constant Y/radius side.
Line goes from pointFromGraph to pointToGraph. If the coordinates are polar, we go clockwise from pointFromGraph to pointToGraph (as set up by adjustPolarAngleRange).
Definition at line 76 of file GridLineFactory.cpp.