Engauge Digitizer
2
|
Factory class for Segment objects. More...
#include <SegmentFactory.h>
Public Member Functions | |
SegmentFactory (QGraphicsScene &scene, bool isGnuplot) | |
Single constructor. | |
void | clearSegments (QList< Segment *> &segments) |
Remove the segments created by makeSegments. | |
QList< QPoint > | fillPoints (const DocumentModelSegments &modelSegments, QList< Segment *> segments) |
Return segment fill points for all segments, for previewing. | |
void | makeSegments (const QImage &imageFiltered, const DocumentModelSegments &modelSegments, QList< Segment *> &segments, bool useDlg=true) |
Main entry point for creating all Segments for the filtered image. | |
Factory class for Segment objects.
The input is the filtered image.
The strategy is to fill out the segments output array as each segment finishes. This makes it easy to keep too-short Segments out of the output array, versus adding every new Segment to the output array as soon as it is created
Definition at line 27 of file SegmentFactory.h.