52 double width,
double height);
66 virtual QSharedPointer<RObject>
clone()
const {
67 return QSharedPointer<RObject>(
new RView(*
this));
71 return QSharedPointer<RView>(
new RView(*
this));
107 return RBox(centerPoint -
RVector(width, height) / 2, centerPoint
112 centerPoint.scale(factor);
117 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
119 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
Q_DECLARE_METATYPE(RMath *)
QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RView &v)
Stream operator for QDebug.
Definition RView.cpp:79
Represents a box e.g.
Definition RBox.h:46
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Abstract base class for all objects.
Definition RObject.h:64
static void init()
Definition RObject.cpp:68
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition RObject.cpp:180
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition RObject.cpp:136
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyTypeId.h:54
EntityType
Entity types used for property handling / filtering.
Definition RS.h:227
@ ObjectView
Definition RS.h:236
Transaction implementation.
Definition RTransaction.h:73
Represents a 3d vector (x/y/z).
Definition RVector.h:47
Represents a view in a drawing.
Definition RView.h:41
static RPropertyTypeId PropertyCenterPoint
Definition RView.h:44
static RS::EntityType getRtti()
Definition RView.h:58
double height
Definition RView.h:127
RBox getBox()
Definition RView.h:106
void scale(double factor)
Definition RView.h:111
void setHeight(double h)
Definition RView.h:102
void setName(const QString &n)
Definition RView.h:78
QString getName() const
Definition RView.h:74
double width
Definition RView.h:126
void setCenterPoint(const RVector &cPoint)
Definition RView.h:86
virtual QSharedPointer< RObject > clone() const
Definition RView.h:66
QSharedPointer< RView > cloneToView() const
Definition RView.h:70
static RPropertyTypeId PropertyHeight
Definition RView.h:46
virtual RS::EntityType getType() const
Definition RView.h:62
double getWidth() const
Definition RView.h:90
QString name
Definition RView.h:124
void setWidth(double w)
Definition RView.h:94
static RPropertyTypeId PropertyWidth
Definition RView.h:45
double getHeight() const
Definition RView.h:98
RVector centerPoint
Definition RView.h:125
RVector getCenterPoint() const
Definition RView.h:82
static RPropertyTypeId PropertyName
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RView.h:43
#define QCADCORE_EXPORT
Definition core_global.h:10
#define NULL
Definition opennurbs_system.h:256