QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RTransform.h
Go to the documentation of this file.
1
20#ifndef RTRANSFORM_H
21#define RTRANSFORM_H
22
23#include "../core_global.h"
24
25#include <QTransform>
26
27#include "RTransformOp.h"
28
29
37class QCADCORE_EXPORT RTransform : public QTransform {
38public:
40 }
41
42 RTransform& translate(qreal dx, qreal dy);
43 RTransform& scale(qreal sx, qreal sy);
44 RTransform& rotateRadians(qreal angle, Qt::Axis axis = Qt::ZAxis);
45 RTransform& rotate(qreal angle, Qt::Axis axis = Qt::ZAxis);
46
47 QList<RTransformOp> getOps() {
48 return ops;
49 }
50
51private:
52 QList<RTransformOp> ops;
53};
54
57
58#endif
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2020 by Andrew Mustun.
Definition RTransform.h:37
QList< RTransformOp > getOps()
Definition RTransform.h:47
RTransform()
Definition RTransform.h:39
QList< RTransformOp > ops
Definition RTransform.h:52
#define QCADCORE_EXPORT
Definition core_global.h:10
void rotate(void e, void angle, void center)
Rotates the given entity or shape by the given angle around the given center.
Definition simple_modify.js:109
void scale(void e, void factor, void focusPoint)
Scales the given entity or shape by the given factor with the given focus point.
Definition simple_modify.js:15