Skip to content

REllipseEntity

Class in Entity Module
Header: #include <src/entity/REllipseEntity.h>
Inherits: REntity

Ellipse entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

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) const
Exports 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 &center)
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 RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyCenterX
static RPropertyTypeId PropertyCenterY
static RPropertyTypeId PropertyCenterZ
static RPropertyTypeId PropertyCircumference
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyEndAngle
static RPropertyTypeId PropertyEndParam
static RPropertyTypeId PropertyEndPointX
static RPropertyTypeId PropertyEndPointY
static RPropertyTypeId PropertyEndPointZ
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyMajorPointX
static RPropertyTypeId PropertyMajorPointY
static RPropertyTypeId PropertyMajorPointZ
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyRatio
static RPropertyTypeId PropertyReversed
static RPropertyTypeId PropertyStartAngle
static RPropertyTypeId PropertyStartParam
static RPropertyTypeId PropertyStartPointX
static RPropertyTypeId PropertyStartPointY
static RPropertyTypeId PropertyStartPointZ
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
REllipseData data

REllipseEntity::REllipseEntity(RDocument *document, const REllipseData &data)

virtual REllipseEntity::~REllipseEntity()

virtual

RPolyline REllipseEntity::approximateWithArcs(int segments) const

inline const

QList< RSpline > REllipseEntity::approximateWithSplines() const

inline const

virtual QSharedPointer< RObject > REllipseEntity::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< REllipseEntity > REllipseEntity::cloneToEllipseEntity() const

inline const

virtual void REllipseEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const

virtual 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.

double REllipseEntity::getAngle() const

inline const

double REllipseEntity::getAngleAt(double distance, RS::From from) const

inline const

double REllipseEntity::getAngleLength() const

inline const

RVector REllipseEntity::getCenter() const

inline const

virtual REllipseData & REllipseEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const REllipseData & REllipseEntity::getData() const

virtual inline const

Returns: Const reference to the data object of the entity.

Reimplemented from getData.

double REllipseEntity::getDirection1() const

inline const

double REllipseEntity::getDirection2() const

inline const

double REllipseEntity::getEndAngle() const

inline const

double REllipseEntity::getEndParam() const

inline const

RVector REllipseEntity::getEndPoint() const

inline const

double REllipseEntity::getLength() const

inline const

RVector REllipseEntity::getMajorPoint() const

inline const

double REllipseEntity::getMajorRadius() const

inline const

double REllipseEntity::getMinorRadius() const

inline const

double REllipseEntity::getParamTo(const RVector &pos)

inline

RVector REllipseEntity::getPointAt(double angle) const

inline const

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.

double REllipseEntity::getRatio() const

inline const

RS::Side REllipseEntity::getSideOfPoint(const RVector &point) const

inline const

double REllipseEntity::getStartAngle() const

inline const

double REllipseEntity::getStartParam() const

inline const

RVector REllipseEntity::getStartPoint() const

inline const

double REllipseEntity::getSweep() const

inline const

RS::Ending REllipseEntity::getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)

inline

bool REllipseEntity::isFullEllipse() const

inline const

bool REllipseEntity::isReversed() const

inline const

virtual bool REllipseEntity::reverse()

virtual inline

virtual QSharedPointer< REntity > REllipseEntity::scaleNonUniform(const RVector &scaleFactors, const RVector &center)

virtual

Reimplemented from scaleNonUniform.

void REllipseEntity::setEndParam(double param)

inline

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.

void REllipseEntity::setRatio(double ratio)

inline

void REllipseEntity::setReversed(bool reversed)

inline

void REllipseEntity::setShape(const REllipse &e)

void REllipseEntity::setStartParam(double param)

inline

bool REllipseEntity::trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)

inline

bool REllipseEntity::trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)

inline

static RS::EntityType REllipseEntity::getRtti()

static inline

static QSet< RPropertyTypeId > REllipseEntity::getStaticPropertyTypeIds()

static inline

static void REllipseEntity::init()

static

static RPropertyTypeId REllipseEntity::PropertyBlock

static

static RPropertyTypeId REllipseEntity::PropertyCenterX

static

static RPropertyTypeId REllipseEntity::PropertyCenterY

static

static RPropertyTypeId REllipseEntity::PropertyCenterZ

static

static RPropertyTypeId REllipseEntity::PropertyCircumference

static

static RPropertyTypeId REllipseEntity::PropertyColor

static

static RPropertyTypeId REllipseEntity::PropertyCustom

static

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.

static RPropertyTypeId REllipseEntity::PropertyDisplayedColor

static

static RPropertyTypeId REllipseEntity::PropertyDrawOrder

static

static RPropertyTypeId REllipseEntity::PropertyEndAngle

static

static RPropertyTypeId REllipseEntity::PropertyEndParam

static

static RPropertyTypeId REllipseEntity::PropertyEndPointX

static

static RPropertyTypeId REllipseEntity::PropertyEndPointY

static

static RPropertyTypeId REllipseEntity::PropertyEndPointZ

static

static RPropertyTypeId REllipseEntity::PropertyHandle

static

static RPropertyTypeId REllipseEntity::PropertyLayer

static

static RPropertyTypeId REllipseEntity::PropertyLinetype

static

static RPropertyTypeId REllipseEntity::PropertyLinetypeScale

static

static RPropertyTypeId REllipseEntity::PropertyLineweight

static

static RPropertyTypeId REllipseEntity::PropertyMajorPointX

static

static RPropertyTypeId REllipseEntity::PropertyMajorPointY

static

static RPropertyTypeId REllipseEntity::PropertyMajorPointZ

static

static RPropertyTypeId REllipseEntity::PropertyProtected

static

static RPropertyTypeId REllipseEntity::PropertyRatio

static

static RPropertyTypeId REllipseEntity::PropertyReversed

static

static RPropertyTypeId REllipseEntity::PropertyStartAngle

static

static RPropertyTypeId REllipseEntity::PropertyStartParam

static

static RPropertyTypeId REllipseEntity::PropertyStartPointX

static

static RPropertyTypeId REllipseEntity::PropertyStartPointY

static

static RPropertyTypeId REllipseEntity::PropertyStartPointZ

static

static RPropertyTypeId REllipseEntity::PropertyType

static

static RPropertyTypeId REllipseEntity::PropertyWorkingSet

static

virtual void REllipseEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

REllipseData REllipseEntity::data

protected