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

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)
 Simple constructor for general use (i.e. not by Checker)
 
 GridLineFactory (QGraphicsScene &scene, int pointRadius, const QList< Point > &pointsToIsolate, const DocumentModelCoords &modelCoords)
 Constructor for use by Checker, which has points that are isolated.
 
GridLinecreateGridLine (double xFrom, double yFrom, double xTo, double yTo, const Transformation &transformation)
 Create grid line, either along constant X/theta or constant Y/radius side. More...
 
void createGridLinesForEvenlySpacedGrid (const DocumentModelGridDisplay &modelGridDisplay, const Document &document, const MainWindowModel &modelMainWindow, const Transformation &transformation, GridLines &gridLines)
 Create a rectangular (cartesian) or annular (polar) grid of evenly spaced grid lines.
 

Detailed Description

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 29 of file GridLineFactory.h.

Member Function Documentation

◆ createGridLine()

GridLine * GridLineFactory::createGridLine ( double  xFrom,
double  yFrom,
double  xTo,
double  yTo,
const Transformation transformation 
)

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 73 of file GridLineFactory.cpp.


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