97 #include <QtCore/qmath.h> 98 #include <QtCore/qnumeric.h> 100 #ifndef QT_NO_GRAPHICSVIEW 176 d->updateItem(
d->item);
208 : xScale(1), yScale(1), zScale(1) {}
250 if (
d->origin == point)
279 if (
d->xScale == scale)
309 if (
d->yScale == scale)
339 if (
d->zScale == scale)
354 matrix->
scale(
d->xScale,
d->yScale,
d->zScale);
453 :
angle(0), axis(0, 0, 1) {}
494 if (
d->origin == point)
525 if (
d->angle == angle)
629 if (
d->angle == 0. ||
d->axis.isNull() ||
qIsNaN(
d->angle))
648 #include "moc_qgraphicstransform.cpp" 651 #endif //QT_NO_GRAPHICSVIEW
void translate(const QVector3D &vector)
Multiplies this matrix by another that translates coordinates by the components of vector...
QGraphicsRotation(QObject *parent=0)
Constructs a new QGraphicsRotation with the given parent.
void yScaleChanged()
This signal is emitted whenever the yScale property changes.
The QVector3D class represents a vector or vertex in 3D space.
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsItemPrivate > d_ptr
T * data() const
Returns the value of the pointer referenced by this object.
void setOrigin(const QVector3D &point)
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
void projectedRotate(qreal angle, qreal x, qreal y, qreal z)
QGraphicsScale(QObject *parent=0)
Constructs an empty QGraphicsScale object with the given parent.
void applyTo(QMatrix4x4 *matrix) const
Reimplemented Function
void angleChanged()
This signal is emitted whenever the angle has changed.
The QObject class is the base class of all Qt objects.
void zScaleChanged()
This signal is emitted whenever the zScale property changes.
QGraphicsRotationPrivate()
quint32 dirtySceneTransform
The QGraphicsScale class provides a scale transformation.
void axisChanged()
This signal is emitted whenever the axis of the object changes.
#define QT_BEGIN_NAMESPACE
This macro expands to.
~QGraphicsScale()
Destroys the graphics scale.
void originChanged()
QGraphicsScale emits this signal when its origin changes.
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Q_CORE_EXPORT bool qIsNaN(double d)
Returns true if the double {d} is not a number (NaN).
qreal angle(const QPointF &p1, const QPointF &p2)
void prepareGeometryChange()
Prepares the item for a geometry change.
void setOrigin(const QVector3D &point)
QObject * parent() const
Returns a pointer to the parent object.
~QGraphicsRotation()
Destroys the graphics rotation.
void scaleChanged()
This signal is emitted whenever the xScale, yScale, or zScale of the object changes.
void scale(const QVector3D &vector)
Multiplies this matrix by another that scales coordinates by the components of vector.
void setAxis(const QVector3D &axis)
void xScaleChanged()
This signal is emitted whenever the xScale property changes.
TransformData * transformData
The QGraphicsRotation class provides a rotation transformation around a given axis.
void applyTo(QMatrix4x4 *matrix) const
Reimplemented Function
void originChanged()
This signal is emitted whenever the origin has changed.
int removeAll(const T &t)
Removes all occurrences of value in the list and returns the number of entries removed.