RTransformOp
Class in Math Module
Header: #include <src/core/math/RTransformOp.h>
Description
Section titled “Description”All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD. Represents a transform operation within an RTransform object.
Scriptable: This class is available in script environments.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Public Types
Section titled “Public Types”| enum | Type { Translation, Scale, Rotation } |
Public Functions
Section titled “Public Functions”| qreal | getD1() const |
| qreal | getD2() const |
| RTransformOp::Type | getType() const |
Static Public Functions
Section titled “Static Public Functions”| static RTransformOp | createRotation(qreal a) |
| static RTransformOp | createScale(qreal sx, qreal sy) |
| static RTransformOp | createTranslation(qreal dx, qreal dy) |
Public Attributes
Section titled “Public Attributes”| qreal | d1 Getter function for this property: getD1. |
| qreal | d2 Getter function for this property: getD2. |
| RTransformOp::Type | type Getter function for this property: getType. |
Member Documentation
Section titled “Member Documentation”enum Type| Value | Description |
|---|---|
Translation |
|
Scale |
|
Rotation |
qreal RTransformOp::getD1() constinline const
qreal RTransformOp::getD2() constinline const
getType
Section titled “getType”RTransformOp::Type RTransformOp::getType() constinline const
createRotation
Section titled “createRotation”static RTransformOp RTransformOp::createRotation(qreal a)static inline
createScale
Section titled “createScale”static RTransformOp RTransformOp::createScale(qreal sx, qreal sy)static inline
createTranslation
Section titled “createTranslation”static RTransformOp RTransformOp::createTranslation(qreal dx, qreal dy)static inline
qreal RTransformOp::d1Getter function for this property: getD1.
qreal RTransformOp::d2Getter function for this property: getD2.
RTransformOp::Type RTransformOp::typeGetter function for this property: getType.