Engauge Digitizer 2
|
Box shape that is drawn through the three axis points, to temporarily (usually) or permanently (rarely) highlight the local up/down/left/right directions when all axis points have been defined. More...
#include <Checker.h>
Public Member Functions | |
Checker (QGraphicsScene &scene) | |
Single constructor for DlgSettingsAxesChecker, which does not have an explicit transformation. The identity transformation is assumed. | |
virtual | ~Checker () |
void | prepareForDisplay (const QPolygonF &polygon, int pointRadius, const DocumentModelAxesChecker &modelAxesChecker, const DocumentModelCoords &modelCoords, DocumentAxesPointsRequired documentAxesPointsRequired) |
Create the polygon from current information, including pixel coordinates, just prior to display. | |
void | prepareForDisplay (const QList< Point > &Points, int pointRadius, const DocumentModelAxesChecker &modelAxesChecker, const DocumentModelCoords &modelCoords, const Transformation &transformation, DocumentAxesPointsRequired documentAxesPointsRequired) |
Create the polygon from current information, including pixel and graph coordinates, just prior to display. | |
void | setVisible (bool visible) |
Show/hide this axes checker. | |
virtual void | updateModelAxesChecker (const DocumentModelAxesChecker &modelAxesChecker) |
Apply the new DocumentModelAxesChecker, to the points already associated with this object. | |
Box shape that is drawn through the three axis points, to temporarily (usually) or permanently (rarely) highlight the local up/down/left/right directions when all axis points have been defined.
The goal of the checker is to make it obvious when a mistake has happened so the screen-to-graph transformation is currently wrong - since the expected up/down/left/right directions will be awry which will distort the checker somehow. Unfortunately, errors in scale are not revealed by the checker.
Checker::Checker | ( | QGraphicsScene & | scene | ) |
Single constructor for DlgSettingsAxesChecker, which does not have an explicit transformation. The identity transformation is assumed.
Definition at line 34 of file Checker.cpp.
|
virtual |
Definition at line 39 of file Checker.cpp.
void Checker::prepareForDisplay | ( | const QList< Point > & | Points, |
int | pointRadius, | ||
const DocumentModelAxesChecker & | modelAxesChecker, | ||
const DocumentModelCoords & | modelCoords, | ||
const Transformation & | transformation, | ||
DocumentAxesPointsRequired | documentAxesPointsRequired ) |
Create the polygon from current information, including pixel and graph coordinates, just prior to display.
This is for TransformationStateDefined. The point radius is used to exclude the lines from the axes points for clarity
Definition at line 173 of file Checker.cpp.
void Checker::prepareForDisplay | ( | const QPolygonF & | polygon, |
int | pointRadius, | ||
const DocumentModelAxesChecker & | modelAxesChecker, | ||
const DocumentModelCoords & | modelCoords, | ||
DocumentAxesPointsRequired | documentAxesPointsRequired ) |
Create the polygon from current information, including pixel coordinates, just prior to display.
This is for DlgSettingsAxesChecker. The identity matrix is used for the transformations between screen and graph coordinates. The point radius is used to exclude the lines from the axes points for clarity
Definition at line 135 of file Checker.cpp.
Show/hide this axes checker.
Definition at line 247 of file Checker.cpp.
|
virtual |
Apply the new DocumentModelAxesChecker, to the points already associated with this object.
This method starts the timer unless the mode is never or forever
Definition at line 252 of file Checker.cpp.