4 #include "CheckerMode.h"
7 #include <QPainterPath>
13 class QGraphicsEllipseItem;
19 typedef QList<QGraphicsItem *> SideSegments;
64 const QList<Point> &points,
68 void bindItemToScene(QGraphicsItem *item)
const;
72 void createSide (
int pointRadius,
73 const QList<Point> &points,
80 SideSegments &sideSegments);
82 double radiusLinearCartesian,
83 const QPointF &posOriginScreen,
84 QTransform &transformAlign,
86 double &ellipseYAxis)
const;
87 void deleteSide (SideSegments &sideSegments);
89 double radiusLinearCartesian,
90 const QPointF &posStartScreen,
91 const QPointF &posEndScreen)
const;
93 const QPointF &posStartScreen,
94 const QPointF &posEndScreen,
98 SideSegments &sideSegments)
const;
99 QGraphicsItem *lineItem (
const QPointF &posStartScreen,
100 const QPointF &posEndScreen)
const;
101 double minScreenDistanceFromPoints (
const QPointF &posScreen,
102 const QList<Point> &points);
105 void setLineColor (SideSegments &sideSegments,
108 void setVisibleSide (SideSegments &sideSegments,
111 QGraphicsScene &m_scene;
122 SideSegments m_sideLeft;
123 SideSegments m_sideTop;
124 SideSegments m_sideRight;
125 SideSegments m_sideBottom;
virtual void updateModelAxesChecker(const DocumentModelAxesChecker &modelAxesChecker)
Apply the new DocumentModelAxesChecker, to the points already associated with this object...
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Box shape that is drawn through the three axis points, to temporarily (usually) or permanently (rarel...
Model for DlgSettingsCoords and CmdSettingsCoords.
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
void setVisible(bool visible)
Show/hide this axes checker.
void prepareForDisplay(const QPolygonF &polygon, int pointRadius, const DocumentModelAxesChecker &modelAxesChecker, const DocumentModelCoords &modelCoords)
Create the polygon from current information, including pixel coordinates, just prior to display...