The QPolygonF class provides a vector of points using floating point precision.
More...
|
| QPolygonF () |
|
| QPolygonF (const QPolygon &polygon) |
|
| QPolygonF (const QPolygonF &other) |
|
| QPolygonF (const QRectF &rect) |
|
| QPolygonF (const QVector< QPointF > &points) |
|
| QPolygonF (int size) |
|
| QPolygonF (QPolygonF &&other) |
|
| QPolygonF (QVector< QPointF > &&points) |
|
| ~QPolygonF () |
|
QRectF | boundingRect () const |
|
bool | containsPoint (const QPointF &point, Qt::FillRule fillRule) const |
|
QPolygonF | intersected (const QPolygonF &other) const |
|
bool | intersects (const QPolygonF &other) const |
|
bool | isClosed () const |
|
| operator QVariant () const |
|
QPolygonF & | operator= (const QPolygonF &other) |
|
QPolygonF & | operator= (QPolygonF &&other) |
|
QPolygonF | subtracted (const QPolygonF &other) const |
|
void | swap (QPolygonF &other) |
|
QPolygon | toPolygon () const |
|
void | translate (const QPointF &offset) |
|
void | translate (qreal dx, qreal dy) |
|
QPolygonF | translated (const QPointF &offset) const |
|
QPolygonF | translated (qreal dx, qreal dy) const |
|
QPolygonF | united (const QPolygonF &other) const |
|
| QVector () = default |
|
| QVector (const QVector< QPointF > &other) = default |
|
| QVector (Input_Iterator first, Input_Iterator last) |
|
| QVector (QVector< QPointF > &&other) = default |
|
| QVector (size_type size) |
|
| QVector (size_type size, const QPointF &value) |
|
| QVector (std::initializer_list< QPointF > args) |
|
| ~QVector () = default |
|
void | append (const QPointF &value) |
|
void | append (const QVector< QPointF > &other) |
|
void | append (Iter begin, Iter end) |
|
void | append (QPointF &&value) |
|
const_reference | at (size_type pos) const |
|
reference | back () |
|
const_reference | back () const |
|
iterator | begin () |
|
const_iterator | begin () const |
|
size_type | capacity () const |
|
const_iterator | cbegin () const |
|
const_iterator | cend () const |
|
void | clear () |
|
const_iterator | constBegin () const |
|
const QPointF * | constData () const |
|
const_iterator | constEnd () const |
|
const_reference | constFirst () const |
|
const_reference | constLast () const |
|
bool | contains (const QPointF &value) const |
|
size_type | count () const |
|
size_type | count (const QPointF &value) const |
|
const_reverse_iterator | crbegin () const |
|
const_reverse_iterator | crend () const |
|
QPointF * | data () |
|
const QPointF * | data () const |
|
bool | empty () const |
|
iterator | end () |
|
const_iterator | end () const |
|
bool | endsWith (const QPointF &value) const |
|
iterator | erase (const_iterator begin, const_iterator end) |
|
iterator | erase (const_iterator pos) |
|
QVector< QPointF > & | fill (const QPointF &value, size_type size=-1) |
|
reference | first () |
|
const_reference | first () const |
|
reference | front () |
|
const_reference | front () const |
|
size_type | indexOf (const QPointF &value, size_type from=0) const |
|
iterator | insert (iterator before, const QPointF &value) |
|
iterator | insert (iterator before, size_type count, const QPointF &value) |
|
iterator | insert (iterator pos, Iter begin, Iter end) |
|
void | insert (size_type pos, const QPointF &value) |
|
void | insert (size_type pos, size_type count, const QPointF &value) |
|
bool | isEmpty () const |
|
reference | last () |
|
const_reference | last () const |
|
size_type | lastIndexOf (const QPointF &value, size_type from=-1) const |
|
size_type | length () const |
|
QVector< QPointF > | mid (size_type pos, size_type length=-1) const |
|
void | move (size_type from, size_type to) |
|
bool | operator!= (const QVector< QPointF > &other) const |
|
QVector< QPointF > | operator+ (const QVector< QPointF > &other) const |
|
QVector< QPointF > & | operator+= (const QPointF &value) |
|
QVector< QPointF > & | operator+= (const QVector< QPointF > &other) |
|
QVector< QPointF > & | operator<< (const QPointF &value) |
|
QVector< QPointF > & | operator<< (const QVector< QPointF > &other) |
|
QVector< QPointF > & | operator= (const QVector< QPointF > &other) = default |
|
QVector< QPointF > & | operator= (QVector< QPointF > &&other) = default |
|
bool | operator== (const QVector< QPointF > &other) const |
|
reference | operator[] (size_type i) |
|
const_reference | operator[] (size_type i) const |
|
void | pop_back () |
|
void | pop_front () |
|
void | prepend (const QPointF &value) |
|
void | push_back (const QPointF &value) |
|
void | push_back (QPointF &&value) |
|
void | push_front (const QPointF &value) |
|
void | push_front (QPointF &&value) |
|
reverse_iterator | rbegin () |
|
const_reverse_iterator | rbegin () const |
|
void | remove (size_type pos) |
|
void | remove (size_type pos, size_type count) |
|
size_type | removeAll (const QPointF &value) |
|
void | removeAt (size_type pos) |
|
void | removeFirst () |
|
void | removeLast () |
|
bool | removeOne (const QPointF &value) |
|
reverse_iterator | rend () |
|
const_reverse_iterator | rend () const |
|
void | replace (size_type i, const QPointF &value) |
|
void | reserve (size_type size) |
|
void | resize (size_type size) |
|
size_type | size () const |
|
void | squeeze () |
|
bool | startsWith (const QPointF &value) const |
|
void | swap (QVector< QPointF > &other) |
|
QPointF | takeAt (size_type pos) |
|
QPointF | takeFirst () |
|
QPointF | takeLast () |
|
QList< QPointF > | toList () const |
|
std::vector< QPointF > | toStdVector () const |
|
QPointF | value (size_type pos) const |
|
QPointF | value (size_type pos, const QPointF &defaultValue) const |
|
The QPolygonF class provides a vector of points using floating point precision.
A QPolygonF is a QVector<QPointF>. The easiest way to add points to a QPolygonF is to use the streaming operator, as illustrated below.
In addition to the functions provided by QVector, QPolygonF provides the boundingRect() and translate() functions for geometry operations. Use the QMatrix::map() function for more general transformations of QPolygonFs.
QPolygonF also provides the isClosed() function to determine whether a polygon's start and end points are the same, and the toPolygon() function returning an integer precision copy of this polygon.
The QPolygonF class is implicitly shared.
- See also
- QVector, QPolygon, QLineF