QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RTransform Class Reference

Copyright (c) 2011-2020 by Andrew Mustun. More...

#include <RTransform.h>

Inheritance diagram for RTransform:

Public Member Functions

QList< RTransformOpgetOps ()
 
RTransformrotate (qreal angle, Qt::Axis axis=Qt::ZAxis)
 
RTransformrotateRadians (qreal angle, Qt::Axis axis=Qt::ZAxis)
 
 RTransform ()
 
RTransformscale (qreal sx, qreal sy)
 
RTransformtranslate (qreal dx, qreal dy)
 Copyright (c) 2011-2020 by Andrew Mustun.
 

Private Attributes

QList< RTransformOpops
 

Detailed Description

Copyright (c) 2011-2020 by Andrew Mustun.

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 with recorded operations (reproducible).

Scriptable:\nThis class is available in script environments.\n
Copyable:\nObjects are cleaned up automatically by the garbage collector of the script engine.\n

Constructor & Destructor Documentation

◆ RTransform()

RTransform::RTransform ( )
inline

Member Function Documentation

◆ getOps()

QList< RTransformOp > RTransform::getOps ( )
inline

◆ rotate()

RTransform & RTransform::rotate ( qreal angle,
Qt::Axis axis = Qt::ZAxis )

◆ rotateRadians()

RTransform & RTransform::rotateRadians ( qreal angle,
Qt::Axis axis = Qt::ZAxis )

◆ scale()

RTransform & RTransform::scale ( qreal sx,
qreal sy )

◆ translate()

RTransform & RTransform::translate ( qreal dx,
qreal dy )

Copyright (c) 2011-2020 by Andrew Mustun.

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.

Member Data Documentation

◆ ops

QList<RTransformOp> RTransform::ops
private

The documentation for this class was generated from the following files: