Skip to content

RView

Class in Core Module
Header: #include <src/core/RView.h>
Inherits: RObject

Represents a view in a drawing.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RView()
RView(RDocument *document, const QString &name, RVector centerPoint, double width, double height)
virtual ~RView()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RView > cloneToView() const
RBox getBox()
RVector getCenterPoint() const
double getHeight() const
QString getName() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
virtual RS::EntityType getType() const
double getWidth() const
void scale(double factor)
void setCenterPoint(const RVector &cPoint)
void setHeight(double h)
void setName(const QString &n)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setWidth(double w)
static RS::EntityType getRtti()
static void init()
static RPropertyTypeId PropertyCenterPoint
static RPropertyTypeId PropertyHeight
static RPropertyTypeId PropertyName
static RPropertyTypeId PropertyWidth
RVector centerPoint
double height
QString name
double width

RView::RView()

RView::RView(RDocument *document, const QString &name, RVector centerPoint, double width, double height)

virtual RView::~RView()

virtual

virtual QSharedPointer< RObject > RView::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< RView > RView::cloneToView() const

inline const

RBox RView::getBox()

inline

RVector RView::getCenterPoint() const

inline const

double RView::getHeight() const

inline const

QString RView::getName() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RView::getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)

virtual

Returns: The value and attributes of the given property or an invalid property if this property owner has no property with the given ID.

Reimplemented from getProperty.

virtual RS::EntityType RView::getType() const

virtual inline const

Returns: The unique entity type, usually the same as RTTI, different for custom entities.

Reimplemented from getType.

double RView::getWidth() const

inline const

void RView::scale(double factor)

inline

void RView::setCenterPoint(const RVector &cPoint)

inline

void RView::setHeight(double h)

inline

void RView::setName(const QString &n)

inline

virtual bool RView::setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)

virtual

Sets the given property to the given value.

If this property owner does not know a property with that ID, it is up to the property owner what happens. The property might be added into a list of dynamic properties or dropped.

Returns: True if the property owner was modified in any way, false otherwise.

Reimplemented from setProperty.

void RView::setWidth(double w)

inline

static RS::EntityType RView::getRtti()

static inline

static void RView::init()

static

static RPropertyTypeId RView::PropertyCenterPoint

static

static RPropertyTypeId RView::PropertyHeight

static

static RPropertyTypeId RView::PropertyName

static

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.

static RPropertyTypeId RView::PropertyWidth

static

RVector RView::centerPoint

private

double RView::height

private

QString RView::name

private

double RView::width

private