RView
Class in Core Module
Header: #include <src/core/RView.h>
Inherits: RObject
Description
Section titled “Description”Represents a view in a drawing.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”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 Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static void | init() |
Static Public Attributes
Section titled “Static Public Attributes”| static RPropertyTypeId | PropertyCenterPoint |
| static RPropertyTypeId | PropertyHeight |
| static RPropertyTypeId | PropertyName |
| static RPropertyTypeId | PropertyWidth |
Private Attributes
Section titled “Private Attributes”| RVector | centerPoint |
| double | height |
| QString | name |
| double | width |
Member Documentation
Section titled “Member Documentation”RView::RView()RView::RView(RDocument *document, const QString &name, RVector centerPoint, double width, double height)~RView
Section titled “~RView”virtual RView::~RView()virtual
virtual QSharedPointer< RObject > RView::clone() constvirtual inline const
Reimplemented from clone.
cloneToView
Section titled “cloneToView”QSharedPointer< RView > RView::cloneToView() constinline const
getBox
Section titled “getBox”RBox RView::getBox()inline
getCenterPoint
Section titled “getCenterPoint”RVector RView::getCenterPoint() constinline const
getHeight
Section titled “getHeight”double RView::getHeight() constinline const
getName
Section titled “getName”QString RView::getName() constinline const
getProperty
Section titled “getProperty”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.
getType
Section titled “getType”virtual RS::EntityType RView::getType() constvirtual inline const
Returns: The unique entity type, usually the same as RTTI, different for custom entities.
Reimplemented from getType.
getWidth
Section titled “getWidth”double RView::getWidth() constinline const
void RView::scale(double factor)inline
setCenterPoint
Section titled “setCenterPoint”void RView::setCenterPoint(const RVector &cPoint)inline
setHeight
Section titled “setHeight”void RView::setHeight(double h)inline
setName
Section titled “setName”void RView::setName(const QString &n)inline
setProperty
Section titled “setProperty”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.
setWidth
Section titled “setWidth”void RView::setWidth(double w)inline
getRtti
Section titled “getRtti”static RS::EntityType RView::getRtti()static inline
static void RView::init()static
PropertyCenterPoint
Section titled “PropertyCenterPoint”static RPropertyTypeId RView::PropertyCenterPointstatic
PropertyHeight
Section titled “PropertyHeight”static RPropertyTypeId RView::PropertyHeightstatic
PropertyName
Section titled “PropertyName”static RPropertyTypeId RView::PropertyNamestatic
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.
PropertyWidth
Section titled “PropertyWidth”static RPropertyTypeId RView::PropertyWidthstatic
centerPoint
Section titled “centerPoint”RVector RView::centerPointprivate
height
Section titled “height”double RView::heightprivate
QString RView::nameprivate
double RView::widthprivate