1// qgraphicstransform.sip generated by MetaSIP 2// 3// This file is part of the QtWidgets Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23class QGraphicsTransform : QObject 24{ 25%TypeHeaderCode 26#include <qgraphicstransform.h> 27%End 28 29public: 30 QGraphicsTransform(QObject *parent /TransferThis/ = 0); 31 virtual ~QGraphicsTransform(); 32 virtual void applyTo(QMatrix4x4 *matrix) const = 0; 33 34protected slots: 35 void update(); 36}; 37 38class QGraphicsScale : QGraphicsTransform 39{ 40%TypeHeaderCode 41#include <qgraphicstransform.h> 42%End 43 44public: 45 QGraphicsScale(QObject *parent /TransferThis/ = 0); 46 virtual ~QGraphicsScale(); 47 QVector3D origin() const; 48 void setOrigin(const QVector3D &point); 49 qreal xScale() const; 50 void setXScale(qreal); 51 qreal yScale() const; 52 void setYScale(qreal); 53 qreal zScale() const; 54 void setZScale(qreal); 55 virtual void applyTo(QMatrix4x4 *matrix) const; 56 57signals: 58 void originChanged(); 59 void scaleChanged(); 60 void xScaleChanged(); 61 void yScaleChanged(); 62 void zScaleChanged(); 63}; 64 65class QGraphicsRotation : QGraphicsTransform 66{ 67%TypeHeaderCode 68#include <qgraphicstransform.h> 69%End 70 71public: 72 QGraphicsRotation(QObject *parent /TransferThis/ = 0); 73 virtual ~QGraphicsRotation(); 74 QVector3D origin() const; 75 void setOrigin(const QVector3D &point); 76 qreal angle() const; 77 void setAngle(qreal); 78 QVector3D axis() const; 79 void setAxis(const QVector3D &axis); 80 void setAxis(Qt::Axis axis); 81 virtual void applyTo(QMatrix4x4 *matrix) const; 82 83signals: 84 void originChanged(); 85 void angleChanged(); 86 void axisChanged(); 87}; 88