qgraphicstransform.sip 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // qgraphicstransform.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtWidgets Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  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. class QGraphicsTransform : public QObject
  22. {
  23. %TypeHeaderCode
  24. #include <qgraphicstransform.h>
  25. %End
  26. public:
  27. QGraphicsTransform(QObject *parent /TransferThis/ = 0);
  28. virtual ~QGraphicsTransform();
  29. virtual void applyTo(QMatrix4x4 *matrix) const = 0;
  30. protected slots:
  31. void update();
  32. };
  33. class QGraphicsScale : public QGraphicsTransform
  34. {
  35. %TypeHeaderCode
  36. #include <qgraphicstransform.h>
  37. %End
  38. public:
  39. QGraphicsScale(QObject *parent /TransferThis/ = 0);
  40. virtual ~QGraphicsScale();
  41. QVector3D origin() const;
  42. void setOrigin(const QVector3D &point);
  43. qreal xScale() const;
  44. void setXScale(qreal);
  45. qreal yScale() const;
  46. void setYScale(qreal);
  47. qreal zScale() const;
  48. void setZScale(qreal);
  49. virtual void applyTo(QMatrix4x4 *matrix) const;
  50. signals:
  51. void originChanged();
  52. void scaleChanged();
  53. void xScaleChanged();
  54. void yScaleChanged();
  55. void zScaleChanged();
  56. };
  57. class QGraphicsRotation : public QGraphicsTransform
  58. {
  59. %TypeHeaderCode
  60. #include <qgraphicstransform.h>
  61. %End
  62. public:
  63. QGraphicsRotation(QObject *parent /TransferThis/ = 0);
  64. virtual ~QGraphicsRotation();
  65. QVector3D origin() const;
  66. void setOrigin(const QVector3D &point);
  67. qreal angle() const;
  68. void setAngle(qreal);
  69. QVector3D axis() const;
  70. void setAxis(const QVector3D &axis);
  71. void setAxis(Qt::Axis axis);
  72. virtual void applyTo(QMatrix4x4 *matrix) const;
  73. signals:
  74. void originChanged();
  75. void angleChanged();
  76. void axisChanged();
  77. };