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

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.
 
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. More...
 
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. More...
 
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. More...
 

Detailed Description

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.

Definition at line 33 of file Checker.h.

Member Function Documentation

◆ prepareForDisplay() [1/2]

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 130 of file Checker.cpp.

◆ prepareForDisplay() [2/2]

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 168 of file Checker.cpp.

◆ updateModelAxesChecker()

void Checker::updateModelAxesChecker ( const DocumentModelAxesChecker modelAxesChecker)
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 247 of file Checker.cpp.


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