Skip to content

RArcEntity

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

Arc entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

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) const
Exports 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 &center)
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 RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static QSharedPointer< REntity > scaleNonUniform(REntity &entity, const RVector &scaleFactors, const RVector &center)
static RPropertyTypeId PropertyArea
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyCenterX
static RPropertyTypeId PropertyCenterY
static RPropertyTypeId PropertyCenterZ
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDiameter
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyEndAngle
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLength
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyMiddlePointX
static RPropertyTypeId PropertyMiddlePointY
static RPropertyTypeId PropertyMiddlePointZ
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyRadius
static RPropertyTypeId PropertyReversed
static RPropertyTypeId PropertyStartAngle
static RPropertyTypeId PropertySweepAngle
static RPropertyTypeId PropertyTotalArea
static RPropertyTypeId PropertyTotalLength
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RArcData data

RArcEntity::RArcEntity(const RArcEntity &other)

RArcEntity::RArcEntity(RDocument *document, const RArcData &data)

virtual RArcEntity::~RArcEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RArcEntity > RArcEntity::cloneToArc() const

inline const

virtual void RArcEntity::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 RArcEntity::getAngleAt(double distance, RS::From from) const

inline const

double RArcEntity::getAngleLength(bool allowForZeroLength=false) const

inline const

double RArcEntity::getBulge() const

inline const

RVector RArcEntity::getCenter() const

inline const

virtual RArcData & RArcEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RArcData & RArcEntity::getData() const

virtual inline const

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

Reimplemented from getData.

double RArcEntity::getDirection1() const

inline const

double RArcEntity::getDirection2() const

inline const

double RArcEntity::getEndAngle() const

inline const

RVector RArcEntity::getEndPoint() const

inline const

double RArcEntity::getLength() const

inline const

RVector RArcEntity::getMiddlePoint() const

inline const

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.

double RArcEntity::getRadius() const

inline const

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

inline const

double RArcEntity::getStartAngle() const

inline const

RVector RArcEntity::getStartPoint() const

inline const

double RArcEntity::getSweep() const

inline const

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

inline

bool RArcEntity::isReversed() const

inline const

bool RArcEntity::reverse()

inline

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

virtual

Reimplemented from scaleNonUniform.

void RArcEntity::setEndAngle(double angle)

inline

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.

void RArcEntity::setRadius(double radius)

inline

void RArcEntity::setReversed(bool reversed)

inline

void RArcEntity::setShape(const RArc &a)

void RArcEntity::setStartAngle(double angle)

inline

void RArcEntity::setSweep(double sweep)

inline

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

inline

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

inline

static RS::EntityType RArcEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RArcEntity::getStaticPropertyTypeIds()

static inline

static void RArcEntity::init()

static

static QSharedPointer< REntity > RArcEntity::scaleNonUniform(REntity &entity, const RVector &scaleFactors, const RVector &center)

static

static RPropertyTypeId RArcEntity::PropertyArea

static

static RPropertyTypeId RArcEntity::PropertyBlock

static

static RPropertyTypeId RArcEntity::PropertyCenterX

static

static RPropertyTypeId RArcEntity::PropertyCenterY

static

static RPropertyTypeId RArcEntity::PropertyCenterZ

static

static RPropertyTypeId RArcEntity::PropertyColor

static

static RPropertyTypeId RArcEntity::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 RArcEntity::PropertyDiameter

static

static RPropertyTypeId RArcEntity::PropertyDisplayedColor

static

static RPropertyTypeId RArcEntity::PropertyDrawOrder

static

static RPropertyTypeId RArcEntity::PropertyEndAngle

static

static RPropertyTypeId RArcEntity::PropertyHandle

static

static RPropertyTypeId RArcEntity::PropertyLayer

static

static RPropertyTypeId RArcEntity::PropertyLength

static

static RPropertyTypeId RArcEntity::PropertyLinetype

static

static RPropertyTypeId RArcEntity::PropertyLinetypeScale

static

static RPropertyTypeId RArcEntity::PropertyLineweight

static

static RPropertyTypeId RArcEntity::PropertyMiddlePointX

static

static RPropertyTypeId RArcEntity::PropertyMiddlePointY

static

static RPropertyTypeId RArcEntity::PropertyMiddlePointZ

static

static RPropertyTypeId RArcEntity::PropertyProtected

static

static RPropertyTypeId RArcEntity::PropertyRadius

static

static RPropertyTypeId RArcEntity::PropertyReversed

static

static RPropertyTypeId RArcEntity::PropertyStartAngle

static

static RPropertyTypeId RArcEntity::PropertySweepAngle

static

static RPropertyTypeId RArcEntity::PropertyTotalArea

static

static RPropertyTypeId RArcEntity::PropertyTotalLength

static

static RPropertyTypeId RArcEntity::PropertyType

static

static RPropertyTypeId RArcEntity::PropertyWorkingSet

static

virtual void RArcEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RArcData RArcEntity::data

protected