82 void createAcceptablePoint(
bool *pFirst,
95 void dumpToGnuplot (QTextStream &strDump,
110 bool isCorner (
double yLast,
115 bool pointIsCloseToLine(
double xLeft,
double yLeft,
double xInt,
double yInt,
116 double xRight,
double yRight);
119 bool pointsAreCloseToLine(
double xLeft,
double yLeft, QList<QPoint> removedPoints,
120 double xRight,
double yRight);
122 QGraphicsScene &m_scene;
131 QList<SegmentLine*> m_lines;
Model for DlgSettingsSegments and CmdSettingsSegments.
This class is a special case of the standard QGraphicsLineItem for segments.
void lockHoverState()
Disable hover events. This is used only by DlgSettingsSegments to stop hover events in the preview wi...
void signalMouseClickOnSegment(QPointF posSegmentStart)
Pass mouse press event, with coordinates of first point in the Segment since that info uniquely ident...
double length() const
Get method for length in pixels.
int lineCount() const
Get method for number of lines.
QList< QPoint > fillPoints(const DocumentModelSegments &modelSegments)
Create evenly spaced points along the segment.
Segment(QGraphicsScene &scene, int yLast, bool isGnuplot)
Single constructor.
void forwardMousePress()
Forward mouse press event from a component SegmentLine that was just clicked on.
void slotHover(bool hover)
Slot for hover enter/leave events in the associated SegmentLines.
void updateModelSegment(const DocumentModelSegments &modelSegments)
Update this segment given the new settings.
void appendColumn(int x, int y, const DocumentModelSegments &modelSegments)
Add some more pixels in a new column to an active segment.
QPointF firstPoint() const
Coordinates of first point in Segment.
void removeUnneededLines(int *foldedLines)
Try to compress a segment that was just completed, by folding together line from point i to point i+1...