|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
53 double width,
double height);
98 return RBox(centerPoint -
RVector(width, height) / 2, centerPoint
103 centerPoint.scale(factor);
108 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
110 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
virtual RObject * clone() const =0
RVector getCenterPoint() const
Definition: RView.h:73
@ ObjectView
Definition: RS.h:134
double getWidth() const
Definition: RView.h:81
Abstract base class for all objects.
Definition: RObject.h:61
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
QString getName() const
Definition: RView.h:65
double height
Definition: RView.h:118
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:125
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition: RObject.cpp:106
void setWidth(double w)
Definition: RView.h:85
void setName(const QString &n)
Definition: RView.h:69
static RPropertyTypeId PropertyCenterPoint
Definition: RView.h:45
static RPropertyTypeId PropertyHeight
Definition: RView.h:47
QString name
Definition: RView.h:115
static RPropertyTypeId PropertyName
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RView.h:44
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition: RObject.cpp:151
Q_DECLARE_METATYPE(RMath *)
RBox getBox()
Definition: RView.h:97
void setHeight(double h)
Definition: RView.h:93
double getHeight() const
Definition: RView.h:89
Represents a view in a drawing.
Definition: RView.h:42
static void init()
Definition: RObject.cpp:67
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPropertyTypeId.h:59
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
void setCenterPoint(const RVector &cPoint)
Definition: RView.h:77
virtual RS::EntityType getType() const
Definition: RView.h:59
static RPropertyTypeId PropertyWidth
Definition: RView.h:46
Transaction implementation.
Definition: RTransaction.h:74
Represents a box e.g.
Definition: RBox.h:43
double width
Definition: RView.h:117
RVector centerPoint
Definition: RView.h:116
QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RView &v)
Stream operator for QDebug.
Definition: RView.cpp:84
void scale(double factor)
Definition: RView.h:102
#define QCADCORE_EXPORT
Definition: core_global.h:10