RViewportEntity
Class in Core Module
Header: #include <src/core/RViewportEntity.h>
Inherits: REntity
Description
Section titled “Description”Viewport entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”RViewportEntity(RDocument *document, const RViewportData &data) |
|
| virtual | ~RViewportEntity() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RViewportEntity > | cloneToViewportEntity() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| RVector | getCenter() const |
| virtual RViewportData & | getData() |
| virtual const RViewportData & | getData() const |
| QList< RObject::Id > | getFrozenLayerIds() const |
| double | getHeight() const |
| RVector | getPosition() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| double | getRotation() const |
| double | getScale() const |
| int | getStatus() const |
| RVector | getViewCenter() const |
| RVector | getViewOffset() const |
| int | getViewportId() const |
| RVector | getViewTarget() const |
| double | getWidth() const |
| bool | isOff() const |
| bool | isOverall() const |
| void | setCenter(const RVector &c) |
| void | setData(RViewportData &d) |
| void | setFrozenLayerIds(const QList< RObject::Id > &ids) |
| void | setHeight(double h) |
| void | setOff(bool v) |
| void | setOverall(bool on) |
| void | setPosition(const RVector &p) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
| void | setRotation(double r) |
| void | setScale(double s) |
| void | setStatus(int s) |
| void | setViewCenter(const RVector &c) |
| void | setViewportId(int id) |
| void | setViewTarget(const RVector &t) |
| void | setWidth(double w) |
Static Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static QSet< RPropertyTypeId > | getStaticPropertyTypeIds() |
| static void | init() |
Static Public Attributes
Section titled “Static Public Attributes”Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RViewportData | data |
Member Documentation
Section titled “Member Documentation”RViewportEntity
Section titled “RViewportEntity”RViewportEntity::RViewportEntity(RDocument *document, const RViewportData &data)~RViewportEntity
Section titled “~RViewportEntity”virtual RViewportEntity::~RViewportEntity()virtual
virtual QSharedPointer< RObject > RViewportEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToViewportEntity
Section titled “cloneToViewportEntity”QSharedPointer< RViewportEntity > RViewportEntity::cloneToViewportEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void RViewportEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constvirtual const
Exports the entity to the given exporter.
The exporter might be a file exporter, a graphics scene or any other platform one can export entities to.
Reimplemented from exportEntity.
getCenter
Section titled “getCenter”RVector RViewportEntity::getCenter() constinline const
getData
Section titled “getData”virtual RViewportData & RViewportEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RViewportData & RViewportEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getFrozenLayerIds
Section titled “getFrozenLayerIds”QList< RObject::Id > RViewportEntity::getFrozenLayerIds() constinline const
getHeight
Section titled “getHeight”double RViewportEntity::getHeight() constinline const
getPosition
Section titled “getPosition”RVector RViewportEntity::getPosition() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RViewportEntity::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.
getRotation
Section titled “getRotation”double RViewportEntity::getRotation() constinline const
getScale
Section titled “getScale”double RViewportEntity::getScale() constinline const
getStatus
Section titled “getStatus”int RViewportEntity::getStatus() constinline const
getViewCenter
Section titled “getViewCenter”RVector RViewportEntity::getViewCenter() constinline const
getViewOffset
Section titled “getViewOffset”RVector RViewportEntity::getViewOffset() constinline const
getViewportId
Section titled “getViewportId”int RViewportEntity::getViewportId() constinline const
getViewTarget
Section titled “getViewTarget”RVector RViewportEntity::getViewTarget() constinline const
getWidth
Section titled “getWidth”double RViewportEntity::getWidth() constinline const
bool RViewportEntity::isOff() constinline const
isOverall
Section titled “isOverall”bool RViewportEntity::isOverall() constinline const
setCenter
Section titled “setCenter”void RViewportEntity::setCenter(const RVector &c)inline
setData
Section titled “setData”void RViewportEntity::setData(RViewportData &d)setFrozenLayerIds
Section titled “setFrozenLayerIds”void RViewportEntity::setFrozenLayerIds(const QList< RObject::Id > &ids)inline
setHeight
Section titled “setHeight”void RViewportEntity::setHeight(double h)inline
setOff
Section titled “setOff”void RViewportEntity::setOff(bool v)inline
setOverall
Section titled “setOverall”void RViewportEntity::setOverall(bool on)inline
setPosition
Section titled “setPosition”void RViewportEntity::setPosition(const RVector &p)inline
setProperty
Section titled “setProperty”virtual bool RViewportEntity::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.
setRotation
Section titled “setRotation”void RViewportEntity::setRotation(double r)inline
setScale
Section titled “setScale”void RViewportEntity::setScale(double s)inline
setStatus
Section titled “setStatus”void RViewportEntity::setStatus(int s)inline
setViewCenter
Section titled “setViewCenter”void RViewportEntity::setViewCenter(const RVector &c)inline
setViewportId
Section titled “setViewportId”void RViewportEntity::setViewportId(int id)inline
setViewTarget
Section titled “setViewTarget”void RViewportEntity::setViewTarget(const RVector &t)inline
setWidth
Section titled “setWidth”void RViewportEntity::setWidth(double w)inline
getRtti
Section titled “getRtti”static RS::EntityType RViewportEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RViewportEntity::getStaticPropertyTypeIds()static inline
static void RViewportEntity::init()static
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RViewportEntity::PropertyBlockstatic
PropertyCenterX
Section titled “PropertyCenterX”static RPropertyTypeId RViewportEntity::PropertyCenterXstatic
PropertyCenterY
Section titled “PropertyCenterY”static RPropertyTypeId RViewportEntity::PropertyCenterYstatic
PropertyCenterZ
Section titled “PropertyCenterZ”static RPropertyTypeId RViewportEntity::PropertyCenterZstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RViewportEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RViewportEntity::PropertyCustomstatic
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.
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RViewportEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RViewportEntity::PropertyDrawOrderstatic
PropertyFrozenLayerIds
Section titled “PropertyFrozenLayerIds”static RPropertyTypeId RViewportEntity::PropertyFrozenLayerIdsstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RViewportEntity::PropertyHandlestatic
PropertyHeight
Section titled “PropertyHeight”static RPropertyTypeId RViewportEntity::PropertyHeightstatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RViewportEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RViewportEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RViewportEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RViewportEntity::PropertyLineweightstatic
PropertyOn
Section titled “PropertyOn”static RPropertyTypeId RViewportEntity::PropertyOnstatic
PropertyOverall
Section titled “PropertyOverall”static RPropertyTypeId RViewportEntity::PropertyOverallstatic
PropertyRotation
Section titled “PropertyRotation”static RPropertyTypeId RViewportEntity::PropertyRotationstatic
PropertyScale
Section titled “PropertyScale”static RPropertyTypeId RViewportEntity::PropertyScalestatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RViewportEntity::PropertyTypestatic
PropertyViewCenterX
Section titled “PropertyViewCenterX”static RPropertyTypeId RViewportEntity::PropertyViewCenterXstatic
PropertyViewCenterY
Section titled “PropertyViewCenterY”static RPropertyTypeId RViewportEntity::PropertyViewCenterYstatic
PropertyViewTargetX
Section titled “PropertyViewTargetX”static RPropertyTypeId RViewportEntity::PropertyViewTargetXstatic
PropertyViewTargetY
Section titled “PropertyViewTargetY”static RPropertyTypeId RViewportEntity::PropertyViewTargetYstatic
PropertyViewTargetZ
Section titled “PropertyViewTargetZ”static RPropertyTypeId RViewportEntity::PropertyViewTargetZstatic
PropertyWidth
Section titled “PropertyWidth”static RPropertyTypeId RViewportEntity::PropertyWidthstatic
virtual void RViewportEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RViewportData RViewportEntity::dataprotected