GridLineFactory Class Reference

Factory class for generating the points, composed of QGraphicsItem objects, along a GridLine. More...

#include <GridLineFactory.h>

List of all members.

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.
GridLinecreateGridLine (double xFrom, double yFrom, double xTo, double yTo)
 Create grid line, either along constant X/theta or constant Y/radius side.
void createGridLinesForEvenlySpacedGrid (const DocumentModelGridDisplay &modelGridDisplay, 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 27 of file GridLineFactory.h.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on 31 May 2016 for Engauge Digitizer by  doxygen 1.6.1