SegmentFactory Class Reference

Factory class for Segment objects. More...

#include <SegmentFactory.h>

List of all members.

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:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on 31 May 2016 for Engauge Digitizer by  doxygen 1.6.1