REllipseEntity
Class in Entity Module
Header: #include <src/entity/REllipseEntity.h>
Inherits: REntity
Description
Section titled “Description”Ellipse entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”REllipseEntity(RDocument *document, const REllipseData &data) |
|
| virtual | ~REllipseEntity() |
| RPolyline | approximateWithArcs(int segments) const |
| QList< RSpline > | approximateWithSplines() const |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< REllipseEntity > | cloneToEllipseEntity() const |
| virtual void | exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constExports the entity to the given exporter. |
| double | getAngle() const |
| double | getAngleAt(double distance, RS::From from) const |
| double | getAngleLength() const |
| RVector | getCenter() const |
| virtual REllipseData & | getData() |
| virtual const REllipseData & | getData() const |
| double | getDirection1() const |
| double | getDirection2() const |
| double | getEndAngle() const |
| double | getEndParam() const |
| RVector | getEndPoint() const |
| double | getLength() const |
| RVector | getMajorPoint() const |
| double | getMajorRadius() const |
| double | getMinorRadius() const |
| double | getParamTo(const RVector &pos) |
| RVector | getPointAt(double angle) const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| double | getRatio() const |
| RS::Side | getSideOfPoint(const RVector &point) const |
| double | getStartAngle() const |
| double | getStartParam() const |
| RVector | getStartPoint() const |
| double | getSweep() const |
| RS::Ending | getTrimEnd(const RVector &trimPoint, const RVector &clickPoint) |
| bool | isFullEllipse() const |
| bool | isReversed() const |
| virtual bool | reverse() |
| virtual QSharedPointer< REntity > | scaleNonUniform(const RVector &scaleFactors, const RVector ¢er) |
| void | setEndParam(double param) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
| void | setRatio(double ratio) |
| void | setReversed(bool reversed) |
| void | setShape(const REllipse &e) |
| void | setStartParam(double param) |
| 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 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”| REllipseData | data |
Member Documentation
Section titled “Member Documentation”REllipseEntity
Section titled “REllipseEntity”REllipseEntity::REllipseEntity(RDocument *document, const REllipseData &data)~REllipseEntity
Section titled “~REllipseEntity”virtual REllipseEntity::~REllipseEntity()virtual
approximateWithArcs
Section titled “approximateWithArcs”RPolyline REllipseEntity::approximateWithArcs(int segments) constinline const
approximateWithSplines
Section titled “approximateWithSplines”QList< RSpline > REllipseEntity::approximateWithSplines() constinline const
virtual QSharedPointer< RObject > REllipseEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToEllipseEntity
Section titled “cloneToEllipseEntity”QSharedPointer< REllipseEntity > REllipseEntity::cloneToEllipseEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void REllipseEntity::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.
getAngle
Section titled “getAngle”double REllipseEntity::getAngle() constinline const
getAngleAt
Section titled “getAngleAt”double REllipseEntity::getAngleAt(double distance, RS::From from) constinline const
getAngleLength
Section titled “getAngleLength”double REllipseEntity::getAngleLength() constinline const
getCenter
Section titled “getCenter”RVector REllipseEntity::getCenter() constinline const
getData
Section titled “getData”virtual REllipseData & REllipseEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const REllipseData & REllipseEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getDirection1
Section titled “getDirection1”double REllipseEntity::getDirection1() constinline const
getDirection2
Section titled “getDirection2”double REllipseEntity::getDirection2() constinline const
getEndAngle
Section titled “getEndAngle”double REllipseEntity::getEndAngle() constinline const
getEndParam
Section titled “getEndParam”double REllipseEntity::getEndParam() constinline const
getEndPoint
Section titled “getEndPoint”RVector REllipseEntity::getEndPoint() constinline const
getLength
Section titled “getLength”double REllipseEntity::getLength() constinline const
getMajorPoint
Section titled “getMajorPoint”RVector REllipseEntity::getMajorPoint() constinline const
getMajorRadius
Section titled “getMajorRadius”double REllipseEntity::getMajorRadius() constinline const
getMinorRadius
Section titled “getMinorRadius”double REllipseEntity::getMinorRadius() constinline const
getParamTo
Section titled “getParamTo”double REllipseEntity::getParamTo(const RVector &pos)inline
getPointAt
Section titled “getPointAt”RVector REllipseEntity::getPointAt(double angle) constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > REllipseEntity::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.
getRatio
Section titled “getRatio”double REllipseEntity::getRatio() constinline const
getSideOfPoint
Section titled “getSideOfPoint”RS::Side REllipseEntity::getSideOfPoint(const RVector &point) constinline const
getStartAngle
Section titled “getStartAngle”double REllipseEntity::getStartAngle() constinline const
getStartParam
Section titled “getStartParam”double REllipseEntity::getStartParam() constinline const
getStartPoint
Section titled “getStartPoint”RVector REllipseEntity::getStartPoint() constinline const
getSweep
Section titled “getSweep”double REllipseEntity::getSweep() constinline const
getTrimEnd
Section titled “getTrimEnd”RS::Ending REllipseEntity::getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)inline
isFullEllipse
Section titled “isFullEllipse”bool REllipseEntity::isFullEllipse() constinline const
isReversed
Section titled “isReversed”bool REllipseEntity::isReversed() constinline const
reverse
Section titled “reverse”virtual bool REllipseEntity::reverse()virtual inline
scaleNonUniform
Section titled “scaleNonUniform”virtual QSharedPointer< REntity > REllipseEntity::scaleNonUniform(const RVector &scaleFactors, const RVector ¢er)virtual
Reimplemented from scaleNonUniform.
setEndParam
Section titled “setEndParam”void REllipseEntity::setEndParam(double param)inline
setProperty
Section titled “setProperty”virtual bool REllipseEntity::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.
setRatio
Section titled “setRatio”void REllipseEntity::setRatio(double ratio)inline
setReversed
Section titled “setReversed”void REllipseEntity::setReversed(bool reversed)inline
setShape
Section titled “setShape”void REllipseEntity::setShape(const REllipse &e)setStartParam
Section titled “setStartParam”void REllipseEntity::setStartParam(double param)inline
trimEndPoint
Section titled “trimEndPoint”bool REllipseEntity::trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)inline
trimStartPoint
Section titled “trimStartPoint”bool REllipseEntity::trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)inline
getRtti
Section titled “getRtti”static RS::EntityType REllipseEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > REllipseEntity::getStaticPropertyTypeIds()static inline
static void REllipseEntity::init()static
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId REllipseEntity::PropertyBlockstatic
PropertyCenterX
Section titled “PropertyCenterX”static RPropertyTypeId REllipseEntity::PropertyCenterXstatic
PropertyCenterY
Section titled “PropertyCenterY”static RPropertyTypeId REllipseEntity::PropertyCenterYstatic
PropertyCenterZ
Section titled “PropertyCenterZ”static RPropertyTypeId REllipseEntity::PropertyCenterZstatic
PropertyCircumference
Section titled “PropertyCircumference”static RPropertyTypeId REllipseEntity::PropertyCircumferencestatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId REllipseEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId REllipseEntity::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 REllipseEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId REllipseEntity::PropertyDrawOrderstatic
PropertyEndAngle
Section titled “PropertyEndAngle”static RPropertyTypeId REllipseEntity::PropertyEndAnglestatic
PropertyEndParam
Section titled “PropertyEndParam”static RPropertyTypeId REllipseEntity::PropertyEndParamstatic
PropertyEndPointX
Section titled “PropertyEndPointX”static RPropertyTypeId REllipseEntity::PropertyEndPointXstatic
PropertyEndPointY
Section titled “PropertyEndPointY”static RPropertyTypeId REllipseEntity::PropertyEndPointYstatic
PropertyEndPointZ
Section titled “PropertyEndPointZ”static RPropertyTypeId REllipseEntity::PropertyEndPointZstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId REllipseEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId REllipseEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId REllipseEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId REllipseEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId REllipseEntity::PropertyLineweightstatic
PropertyMajorPointX
Section titled “PropertyMajorPointX”static RPropertyTypeId REllipseEntity::PropertyMajorPointXstatic
PropertyMajorPointY
Section titled “PropertyMajorPointY”static RPropertyTypeId REllipseEntity::PropertyMajorPointYstatic
PropertyMajorPointZ
Section titled “PropertyMajorPointZ”static RPropertyTypeId REllipseEntity::PropertyMajorPointZstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId REllipseEntity::PropertyProtectedstatic
PropertyRatio
Section titled “PropertyRatio”static RPropertyTypeId REllipseEntity::PropertyRatiostatic
PropertyReversed
Section titled “PropertyReversed”static RPropertyTypeId REllipseEntity::PropertyReversedstatic
PropertyStartAngle
Section titled “PropertyStartAngle”static RPropertyTypeId REllipseEntity::PropertyStartAnglestatic
PropertyStartParam
Section titled “PropertyStartParam”static RPropertyTypeId REllipseEntity::PropertyStartParamstatic
PropertyStartPointX
Section titled “PropertyStartPointX”static RPropertyTypeId REllipseEntity::PropertyStartPointXstatic
PropertyStartPointY
Section titled “PropertyStartPointY”static RPropertyTypeId REllipseEntity::PropertyStartPointYstatic
PropertyStartPointZ
Section titled “PropertyStartPointZ”static RPropertyTypeId REllipseEntity::PropertyStartPointZstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId REllipseEntity::PropertyTypestatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId REllipseEntity::PropertyWorkingSetstatic
virtual void REllipseEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
REllipseData REllipseEntity::dataprotected