57#include <QtCore/qmath.h>
58#include <QtCore/qnumeric.h>
140 d->updateItem(
d->item);
209 if (
d->origin == point)
304 matrix->scale(
d->xScale,
d->yScale,
d->zScale);
424 if (
d->origin == point)
544 if (
d->angle == 0. ||
d->axis.isNull() ||
qIsNaN(
d->angle))
548 matrix->projectedRotate(
d->angle,
d->axis.x(),
d->axis.y(),
d->axis.z());
562#include "moc_qgraphicstransform.cpp"
quint32 dirtySceneTransform
TransformData * transformData
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
QScopedPointer< QGraphicsItemPrivate > d_ptr
void prepareGeometryChange()
Prepares the item for a geometry change.
QGraphicsRotationPrivate()
The QGraphicsRotation class provides a rotation transformation around a given axis.
QVector3D axis
a rotation axis, specified by a vector in 3D space.
void originChanged()
This signal is emitted whenever the origin has changed.
void setAxis(const QVector3D &axis)
QGraphicsRotation(QObject *parent=nullptr)
Constructs a new QGraphicsRotation with the given parent.
~QGraphicsRotation()
Destroys the graphics rotation.
void axisChanged()
This signal is emitted whenever the axis of the object changes.
void setOrigin(const QVector3D &point)
QVector3D origin
the origin of the rotation in 3D space.
void angleChanged()
This signal is emitted whenever the angle has changed.
void applyTo(QMatrix4x4 *matrix) const override
\reimp
qreal angle
the angle for clockwise rotation, in degrees.
The QGraphicsScale class provides a scale transformation.
void applyTo(QMatrix4x4 *matrix) const override
\reimp
void setOrigin(const QVector3D &point)
qreal xScale
the horizontal scale factor.
~QGraphicsScale()
Destroys the graphics scale.
void originChanged()
QGraphicsScale emits this signal when its origin changes.
QGraphicsScale(QObject *parent=nullptr)
Constructs an empty QGraphicsScale object with the given parent.
void scaleChanged()
This signal is emitted whenever the xScale, yScale, or zScale of the object changes.
qreal zScale
the depth scale factor.
qreal yScale
the vertical scale factor.
QVector3D origin
the origin of the scale in 3D space.
qsizetype removeAll(const AT &t)
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
T * data() const noexcept
Returns the value of the pointer referenced by this object.
The QVector3D class represents a vector or vertex in 3D space.
Combined button and popup list for selecting options.
bool qIsNaN(qfloat16 f) noexcept
GLdouble GLdouble GLdouble GLdouble q
GLenum GLenum GLenum GLenum GLenum scale
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent