#include <qvdta/qvpolyline.h>
Public Member Functions | |
QVPolyline () | |
QVPolyline (const QVPolyline &polyline) | |
Static Public Member Functions | |
static QVPolyline | ellipse (uInt n, float x, float y, float maxRadio, float minRadio, float ang) |
static QVPolyline | line (int x1, int y1, int x2, int y2) |
static QVPolyline | rectangle (int x1, int y1, int x2, int y2) |
Public Attributes | |
bool | closed |
bool | direction |
A polyline is a continuous line composed of one or more straight line segments. A QVPolyline is a implementation of a polyline, specified by a list of the points located at the intersection of the segments. Thus, any QVPolyline object inherits from the class QList<QPoint>.
When a polyline is closed, then it is considered to be a polygon. In that case it is supossed to have an implicit final straight line segment, that links the first and the last point in the polyline. The property QVPolyline::closed will store the value TRUE if the polyline is a polygon, else storing FALSE.
A QVPolyline has the property QVPolyline::direction, that will indicate if it is a direct polyline, or a reverse polyline. It has only meaning for some algorithms, like getBorderContourThreshold.
Definition at line 46 of file qvpolyline.h.