QCAD
Open Source 2D CAD
RTransformOp Class Reference

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

#include <RTransformOp.h>

Public Types

enum  Type { Translation, Scale, Rotation }
 

Public Member Functions

qreal getD1 () const
 
qreal getD2 () const
 
RTransformOp::Type getType () const
 

Static Public Member Functions

static RTransformOp createRotation (qreal a)
 
static RTransformOp createScale (qreal sx, qreal sy)
 
static RTransformOp createTranslation (qreal dx, qreal dy)
 

Public Attributes

qreal d1
 
Getter function for this property: getD1
More...
 
qreal d2
 
Getter function for this property: getD2
More...
 
RTransformOp::Type type
 
Getter function for this property: getType
More...
 

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 operation within an RTransform object.

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

Member Enumeration Documentation

◆ Type

Enumerator
Translation 
Scale 
Rotation 

Member Function Documentation

◆ createRotation()

static RTransformOp RTransformOp::createRotation ( qreal  a)
inlinestatic

◆ createScale()

static RTransformOp RTransformOp::createScale ( qreal  sx,
qreal  sy 
)
inlinestatic

◆ createTranslation()

static RTransformOp RTransformOp::createTranslation ( qreal  dx,
qreal  dy 
)
inlinestatic

◆ getD1()

qreal RTransformOp::getD1 ( ) const
inline

◆ getD2()

qreal RTransformOp::getD2 ( ) const
inline

◆ getType()

RTransformOp::Type RTransformOp::getType ( ) const
inline

Member Data Documentation

◆ d1

qreal RTransformOp::d1


Getter function for this property: getD1

◆ d2

qreal RTransformOp::d2


Getter function for this property: getD2

◆ type

RTransformOp::Type RTransformOp::type


Getter function for this property: getType


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