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

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.
 

Detailed Description

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.


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