RCircleEntity
Class in Entity Module
Header: #include <src/entity/RCircleEntity.h>
Inherits: REntity
Description
Section titled “Description”Circle entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”RCircleEntity(const RCircleEntity &other) |
|
RCircleEntity(RDocument *document, const RCircleData &data) |
|
| virtual | ~RCircleEntity() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RCircleEntity > | cloneToCircleEntity() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| RVector | getCenter() const |
| virtual RCircleData & | getData() |
| virtual const RCircleData & | getData() const |
| double | getLength() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| double | getRadius() const |
| virtual QSharedPointer< REntity > | scaleNonUniform(const RVector &scaleFactors, const RVector ¢er) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
| void | setRadius(double radius) |
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”| static RPropertyTypeId | PropertyArea |
| static RPropertyTypeId | PropertyBlock |
| static RPropertyTypeId | PropertyCenterX |
| static RPropertyTypeId | PropertyCenterY |
| static RPropertyTypeId | PropertyCenterZ |
| static RPropertyTypeId | PropertyCircumference |
| static RPropertyTypeId | PropertyColor |
| static RPropertyTypeId | PropertyCustom |
| static RPropertyTypeId | PropertyDiameter |
| static RPropertyTypeId | PropertyDisplayedColor |
| static RPropertyTypeId | PropertyDrawOrder |
| static RPropertyTypeId | PropertyHandle |
| static RPropertyTypeId | PropertyLayer |
| static RPropertyTypeId | PropertyLinetype |
| static RPropertyTypeId | PropertyLinetypeScale |
| static RPropertyTypeId | PropertyLineweight |
| static RPropertyTypeId | PropertyProtected |
| static RPropertyTypeId | PropertyRadius |
| static RPropertyTypeId | PropertyTotalArea |
| static RPropertyTypeId | PropertyType |
| static RPropertyTypeId | PropertyWorkingSet |
Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RCircleData | data |
Member Documentation
Section titled “Member Documentation”RCircleEntity
Section titled “RCircleEntity”RCircleEntity::RCircleEntity(const RCircleEntity &other)RCircleEntity
Section titled “RCircleEntity”RCircleEntity::RCircleEntity(RDocument *document, const RCircleData &data)~RCircleEntity
Section titled “~RCircleEntity”virtual RCircleEntity::~RCircleEntity()virtual
virtual QSharedPointer< RObject > RCircleEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToCircleEntity
Section titled “cloneToCircleEntity”QSharedPointer< RCircleEntity > RCircleEntity::cloneToCircleEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void RCircleEntity::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 RCircleEntity::getCenter() constinline const
getData
Section titled “getData”virtual RCircleData & RCircleEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RCircleData & RCircleEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getLength
Section titled “getLength”double RCircleEntity::getLength() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RCircleEntity::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.
getRadius
Section titled “getRadius”double RCircleEntity::getRadius() constinline const
scaleNonUniform
Section titled “scaleNonUniform”virtual QSharedPointer< REntity > RCircleEntity::scaleNonUniform(const RVector &scaleFactors, const RVector ¢er)virtual
Reimplemented from scaleNonUniform.
setProperty
Section titled “setProperty”virtual bool RCircleEntity::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.
setRadius
Section titled “setRadius”void RCircleEntity::setRadius(double radius)inline
getRtti
Section titled “getRtti”static RS::EntityType RCircleEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RCircleEntity::getStaticPropertyTypeIds()static inline
static void RCircleEntity::init()static
PropertyArea
Section titled “PropertyArea”static RPropertyTypeId RCircleEntity::PropertyAreastatic
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RCircleEntity::PropertyBlockstatic
PropertyCenterX
Section titled “PropertyCenterX”static RPropertyTypeId RCircleEntity::PropertyCenterXstatic
PropertyCenterY
Section titled “PropertyCenterY”static RPropertyTypeId RCircleEntity::PropertyCenterYstatic
PropertyCenterZ
Section titled “PropertyCenterZ”static RPropertyTypeId RCircleEntity::PropertyCenterZstatic
PropertyCircumference
Section titled “PropertyCircumference”static RPropertyTypeId RCircleEntity::PropertyCircumferencestatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RCircleEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RCircleEntity::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.
PropertyDiameter
Section titled “PropertyDiameter”static RPropertyTypeId RCircleEntity::PropertyDiameterstatic
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RCircleEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RCircleEntity::PropertyDrawOrderstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RCircleEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RCircleEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RCircleEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RCircleEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RCircleEntity::PropertyLineweightstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RCircleEntity::PropertyProtectedstatic
PropertyRadius
Section titled “PropertyRadius”static RPropertyTypeId RCircleEntity::PropertyRadiusstatic
PropertyTotalArea
Section titled “PropertyTotalArea”static RPropertyTypeId RCircleEntity::PropertyTotalAreastatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RCircleEntity::PropertyTypestatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RCircleEntity::PropertyWorkingSetstatic
virtual void RCircleEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RCircleData RCircleEntity::dataprotected