#include "qpolygon.h"
#include "qrect.h"
#include "qdatastream.h"
#include "qmatrix.h"
#include "qdebug.h"
#include "qpainterpath.h"
#include "qvariant.h"
#include "qpainterpath_p.h"
#include "qbezier_p.h"
#include <stdarg.h>
Go to the source code of this file.
◆ operator<<() [1/4]
Definition at line 516 of file qpolygon.cpp.
518 #ifndef Q_BROKEN_DEBUG_STREAM 520 for (
int i = 0; i < a.
count(); ++i)
525 qWarning(
"This compiler doesn't support streaming QPolygon to QDebug");
int count(const T &t) const
Returns the number of occurrences of value in the vector.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
Q_CORE_EXPORT void qWarning(const char *,...)
const T & at(int i) const
Returns the item at index position i in the vector.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ operator<<() [2/4]
Definition at line 828 of file qpolygon.cpp.
long ASN1_INTEGER_get ASN1_INTEGER * a
◆ operator<<() [3/4]
Definition at line 871 of file qpolygon.cpp.
877 for (i = 0; i < len; ++i)
const T & at(int i) const
Returns the item at index position i in the vector.
int size() const
Returns the number of items in the vector.
◆ operator<<() [4/4]
Definition at line 912 of file qpolygon.cpp.
914 #ifndef Q_BROKEN_DEBUG_STREAM 916 for (
int i = 0; i < a.
count(); ++i)
921 qWarning(
"This compiler doesn't support streaming QPolygonF to QDebug");
int count(const T &t) const
Returns the number of occurrences of value in the vector.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
Q_CORE_EXPORT void qWarning(const char *,...)
const T & at(int i) const
Returns the item at index position i in the vector.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ operator>>() [1/2]
Definition at line 847 of file qpolygon.cpp.
long ASN1_INTEGER_get ASN1_INTEGER * a
◆ operator>>() [2/2]
Definition at line 895 of file qpolygon.cpp.
903 for (i = 0; i < len; ++i) {
The QPointF class defines a point in the plane using floating point precision.
void insert(int i, const T &t)
Inserts value at index position i in the vector.
void reserve(int size)
Attempts to allocate memory for at least size elements.
int size() const
Returns the number of items in the vector.
◆ qt_polygon_isect_line()
static void qt_polygon_isect_line |
( |
const QPointF & |
p1, |
|
|
const QPointF & |
p2, |
|
|
const QPointF & |
pos, |
|
|
int * |
winding |
|
) |
| |
|
static |
Definition at line 57 of file qpolygon.cpp.
Referenced by QPolygon::containsPoint(), and QPolygonF::containsPoint().
72 qreal x_tmp = x2; x2 = x1; x1 = x_tmp;
73 qreal y_tmp = y2; y2 = y1; y1 = y_tmp;
77 if (y >= y1 && y < y2) {
78 qreal x = x1 + ((x2 - x1) / (y2 - y1)) * (y - y1);
qreal x() const
Returns the x-coordinate of this point.
qreal y() const
Returns the y-coordinate of this point.
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
The qFuzzyCompare function is for comparing two matrices using a fuzziness factor.