RArcEntity
Class in Entity Module
Header: #include <src/entity/RArcEntity.h>
Inherits: REntity
Description
Section titled “Description”Arc entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”RArcEntity(const RArcEntity &other) |
|
RArcEntity(RDocument *document, const RArcData &data) |
|
| virtual | ~RArcEntity() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RArcEntity > | cloneToArc() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| double | getAngleAt(double distance, RS::From from) const |
| double | getAngleLength(bool allowForZeroLength=false) const |
| double | getBulge() const |
| RVector | getCenter() const |
| virtual RArcData & | getData() |
| virtual const RArcData & | getData() const |
| double | getDirection1() const |
| double | getDirection2() const |
| double | getEndAngle() const |
| RVector | getEndPoint() const |
| double | getLength() const |
| RVector | getMiddlePoint() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| double | getRadius() const |
| RS::Side | getSideOfPoint(const RVector &point) const |
| double | getStartAngle() const |
| RVector | getStartPoint() const |
| double | getSweep() const |
| RS::Ending | getTrimEnd(const RVector &trimPoint, const RVector &clickPoint) |
| bool | isReversed() const |
| bool | reverse() |
| virtual QSharedPointer< REntity > | scaleNonUniform(const RVector &scaleFactors, const RVector ¢er) |
| void | setEndAngle(double angle) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
| void | setRadius(double radius) |
| void | setReversed(bool reversed) |
| void | setShape(const RArc &a) |
| void | setStartAngle(double angle) |
| void | setSweep(double sweep) |
| bool | trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false) |
| bool | trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false) |
Static Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static QSet< RPropertyTypeId > | getStaticPropertyTypeIds() |
| static void | init() |
| static QSharedPointer< REntity > | scaleNonUniform(REntity &entity, const RVector &scaleFactors, const RVector ¢er) |
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”| RArcData | data |
Member Documentation
Section titled “Member Documentation”RArcEntity
Section titled “RArcEntity”RArcEntity::RArcEntity(const RArcEntity &other)RArcEntity
Section titled “RArcEntity”RArcEntity::RArcEntity(RDocument *document, const RArcData &data)~RArcEntity
Section titled “~RArcEntity”virtual RArcEntity::~RArcEntity()virtual
virtual QSharedPointer< RObject > RArcEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToArc
Section titled “cloneToArc”QSharedPointer< RArcEntity > RArcEntity::cloneToArc() constinline const
exportEntity
Section titled “exportEntity”virtual void RArcEntity::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.
getAngleAt
Section titled “getAngleAt”double RArcEntity::getAngleAt(double distance, RS::From from) constinline const
getAngleLength
Section titled “getAngleLength”double RArcEntity::getAngleLength(bool allowForZeroLength=false) constinline const
getBulge
Section titled “getBulge”double RArcEntity::getBulge() constinline const
getCenter
Section titled “getCenter”RVector RArcEntity::getCenter() constinline const
getData
Section titled “getData”virtual RArcData & RArcEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RArcData & RArcEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getDirection1
Section titled “getDirection1”double RArcEntity::getDirection1() constinline const
getDirection2
Section titled “getDirection2”double RArcEntity::getDirection2() constinline const
getEndAngle
Section titled “getEndAngle”double RArcEntity::getEndAngle() constinline const
getEndPoint
Section titled “getEndPoint”RVector RArcEntity::getEndPoint() constinline const
getLength
Section titled “getLength”double RArcEntity::getLength() constinline const
getMiddlePoint
Section titled “getMiddlePoint”RVector RArcEntity::getMiddlePoint() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RArcEntity::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 RArcEntity::getRadius() constinline const
getSideOfPoint
Section titled “getSideOfPoint”RS::Side RArcEntity::getSideOfPoint(const RVector &point) constinline const
getStartAngle
Section titled “getStartAngle”double RArcEntity::getStartAngle() constinline const
getStartPoint
Section titled “getStartPoint”RVector RArcEntity::getStartPoint() constinline const
getSweep
Section titled “getSweep”double RArcEntity::getSweep() constinline const
getTrimEnd
Section titled “getTrimEnd”RS::Ending RArcEntity::getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)inline
isReversed
Section titled “isReversed”bool RArcEntity::isReversed() constinline const
reverse
Section titled “reverse”bool RArcEntity::reverse()inline
scaleNonUniform
Section titled “scaleNonUniform”virtual QSharedPointer< REntity > RArcEntity::scaleNonUniform(const RVector &scaleFactors, const RVector ¢er)virtual
Reimplemented from scaleNonUniform.
setEndAngle
Section titled “setEndAngle”void RArcEntity::setEndAngle(double angle)inline
setProperty
Section titled “setProperty”virtual bool RArcEntity::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 RArcEntity::setRadius(double radius)inline
setReversed
Section titled “setReversed”void RArcEntity::setReversed(bool reversed)inline
setShape
Section titled “setShape”void RArcEntity::setShape(const RArc &a)setStartAngle
Section titled “setStartAngle”void RArcEntity::setStartAngle(double angle)inline
setSweep
Section titled “setSweep”void RArcEntity::setSweep(double sweep)inline
trimEndPoint
Section titled “trimEndPoint”bool RArcEntity::trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)inline
trimStartPoint
Section titled “trimStartPoint”bool RArcEntity::trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)inline
getRtti
Section titled “getRtti”static RS::EntityType RArcEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RArcEntity::getStaticPropertyTypeIds()static inline
static void RArcEntity::init()static
scaleNonUniform
Section titled “scaleNonUniform”static QSharedPointer< REntity > RArcEntity::scaleNonUniform(REntity &entity, const RVector &scaleFactors, const RVector ¢er)static
PropertyArea
Section titled “PropertyArea”static RPropertyTypeId RArcEntity::PropertyAreastatic
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RArcEntity::PropertyBlockstatic
PropertyCenterX
Section titled “PropertyCenterX”static RPropertyTypeId RArcEntity::PropertyCenterXstatic
PropertyCenterY
Section titled “PropertyCenterY”static RPropertyTypeId RArcEntity::PropertyCenterYstatic
PropertyCenterZ
Section titled “PropertyCenterZ”static RPropertyTypeId RArcEntity::PropertyCenterZstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RArcEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RArcEntity::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 RArcEntity::PropertyDiameterstatic
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RArcEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RArcEntity::PropertyDrawOrderstatic
PropertyEndAngle
Section titled “PropertyEndAngle”static RPropertyTypeId RArcEntity::PropertyEndAnglestatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RArcEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RArcEntity::PropertyLayerstatic
PropertyLength
Section titled “PropertyLength”static RPropertyTypeId RArcEntity::PropertyLengthstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RArcEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RArcEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RArcEntity::PropertyLineweightstatic
PropertyMiddlePointX
Section titled “PropertyMiddlePointX”static RPropertyTypeId RArcEntity::PropertyMiddlePointXstatic
PropertyMiddlePointY
Section titled “PropertyMiddlePointY”static RPropertyTypeId RArcEntity::PropertyMiddlePointYstatic
PropertyMiddlePointZ
Section titled “PropertyMiddlePointZ”static RPropertyTypeId RArcEntity::PropertyMiddlePointZstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RArcEntity::PropertyProtectedstatic
PropertyRadius
Section titled “PropertyRadius”static RPropertyTypeId RArcEntity::PropertyRadiusstatic
PropertyReversed
Section titled “PropertyReversed”static RPropertyTypeId RArcEntity::PropertyReversedstatic
PropertyStartAngle
Section titled “PropertyStartAngle”static RPropertyTypeId RArcEntity::PropertyStartAnglestatic
PropertySweepAngle
Section titled “PropertySweepAngle”static RPropertyTypeId RArcEntity::PropertySweepAnglestatic
PropertyTotalArea
Section titled “PropertyTotalArea”static RPropertyTypeId RArcEntity::PropertyTotalAreastatic
PropertyTotalLength
Section titled “PropertyTotalLength”static RPropertyTypeId RArcEntity::PropertyTotalLengthstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RArcEntity::PropertyTypestatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RArcEntity::PropertyWorkingSetstatic
virtual void RArcEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RArcData RArcEntity::dataprotected