Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtransform.cpp File Reference

(fc00dca1c388ee04401d2e391f74b38d42c177df)

#include "qtransform.h"
#include "qdatastream.h"
#include "qdebug.h"
#include "qhashfunctions.h"
#include "qregion.h"
#include "qpainterpath.h"
#include "qpainterpath_p.h"
#include "qvariant.h"
#include "qmath_p.h"
#include <qnumeric.h>
#include <private/qbezier_p.h>
Include dependency graph for qtransform.cpp:

Go to the source code of this file.

Classes

struct  QHomogeneousCoordinate

Macros

#define Q_NEAR_CLIP   (sizeof(qreal) == sizeof(double) ? 0.000001 : 0.0001)

Functions

QT_BEGIN_NAMESPACE static Q_NEVER_INLINE void nanWarning (const char *func)
size_t qHash (const QTransform &key, size_t seed) noexcept
QDataStreamoperator<< (QDataStream &s, const QTransform &m)
QDataStreamoperator>> (QDataStream &s, QTransform &t)
QDebug operator<< (QDebug dbg, const QTransform &m)
Q_GUI_EXPORT QPainterPath qt_regionToPath (const QRegion &region)
static QHomogeneousCoordinate mapHomogeneous (const QTransform &transform, const QPointF &p)
static bool lineTo_clipped (QPainterPath &path, const QTransform &transform, const QPointF &a, const QPointF &b, bool needsMoveTo, bool needsLineTo=true)
Q_GUI_EXPORT bool qt_scaleForTransform (const QTransform &transform, qreal *scale)
static bool cubicTo_clipped (QPainterPath &path, const QTransform &transform, const QPointF &a, const QPointF &b, const QPointF &c, const QPointF &d, bool needsMoveTo)
static QPainterPath mapProjective (const QTransform &transform, const QPainterPath &path)
QDataStreamoperator>> (QDataStream &s, QTransform::Affine &m)
QDataStreamoperator<< (QDataStream &s, const QTransform::Affine &m)

Macro Definition Documentation

◆ Q_NEAR_CLIP

#define Q_NEAR_CLIP   (sizeof(qreal) == sizeof(double) ? 0.000001 : 0.0001)

Definition at line 27 of file qtransform.cpp.

Function Documentation

◆ cubicTo_clipped()

bool cubicTo_clipped ( QPainterPath & path,
const QTransform & transform,
const QPointF & a,
const QPointF & b,
const QPointF & c,
const QPointF & d,
bool needsMoveTo )
inlinestatic

Definition at line 1440 of file qtransform.cpp.

Referenced by mapProjective().

Here is the caller graph for this function:

◆ lineTo_clipped()

bool lineTo_clipped ( QPainterPath & path,
const QTransform & transform,
const QPointF & a,
const QPointF & b,
bool needsMoveTo,
bool needsLineTo = true )
inlinestatic

Definition at line 1399 of file qtransform.cpp.

Referenced by mapProjective().

Here is the caller graph for this function:

◆ mapHomogeneous()

QHomogeneousCoordinate mapHomogeneous ( const QTransform & transform,
const QPointF & p )
inlinestatic

Definition at line 1390 of file qtransform.cpp.

◆ mapProjective()

QPainterPath mapProjective ( const QTransform & transform,
const QPainterPath & path )
static

Definition at line 1459 of file qtransform.cpp.

References cubicTo_clipped(), and lineTo_clipped().

Here is the call graph for this function:

◆ nanWarning()

QT_BEGIN_NAMESPACE static Q_NEVER_INLINE void nanWarning ( const char * func)
static

Definition at line 21 of file qtransform.cpp.

◆ operator<<() [1/3]

QDataStream & operator<< ( QDataStream & s,
const QTransform & m )
related

Definition at line 1042 of file qtransform.cpp.

◆ operator<<() [2/3]

QDataStream & operator<< ( QDataStream & s,
const QTransform::Affine & m )

Definition at line 2199 of file qtransform.cpp.

◆ operator<<() [3/3]

QDebug operator<< ( QDebug dbg,
const QTransform & m )

Definition at line 1090 of file qtransform.cpp.

◆ operator>>() [1/2]

QDataStream & operator>> ( QDataStream & s,
QTransform & t )
related

Definition at line 1066 of file qtransform.cpp.

◆ operator>>() [2/2]

QDataStream & operator>> ( QDataStream & s,
QTransform::Affine & m )

Definition at line 2173 of file qtransform.cpp.

◆ qHash()

size_t qHash ( const QTransform & key,
size_t seed )
noexcept
Since
5.6 \qhashold{QTransform}

Definition at line 786 of file qtransform.cpp.

◆ qt_regionToPath()

Q_GUI_EXPORT QPainterPath qt_regionToPath ( const QRegion & region)
extern

Definition at line 1010 of file qregion.cpp.

◆ qt_scaleForTransform()

Q_GUI_EXPORT bool qt_scaleForTransform ( const QTransform & transform,
qreal * scale )

Definition at line 2132 of file qtransform.cpp.

Referenced by QX11PaintEngine::updateMatrix().

Here is the caller graph for this function: