Skip to content

RCircleEntity

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

Circle entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

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) const
Exports 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 &center)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setRadius(double radius)
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
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
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RCircleData data

RCircleEntity::RCircleEntity(const RCircleEntity &other)

RCircleEntity::RCircleEntity(RDocument *document, const RCircleData &data)

virtual RCircleEntity::~RCircleEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RCircleEntity > RCircleEntity::cloneToCircleEntity() const

inline const

virtual void RCircleEntity::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.

RVector RCircleEntity::getCenter() const

inline const

virtual RCircleData & RCircleEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RCircleData & RCircleEntity::getData() const

virtual inline const

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

Reimplemented from getData.

double RCircleEntity::getLength() const

inline const

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.

double RCircleEntity::getRadius() const

inline const

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

virtual

Reimplemented from scaleNonUniform.

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.

void RCircleEntity::setRadius(double radius)

inline

static RS::EntityType RCircleEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RCircleEntity::getStaticPropertyTypeIds()

static inline

static void RCircleEntity::init()

static

static RPropertyTypeId RCircleEntity::PropertyArea

static

static RPropertyTypeId RCircleEntity::PropertyBlock

static

static RPropertyTypeId RCircleEntity::PropertyCenterX

static

static RPropertyTypeId RCircleEntity::PropertyCenterY

static

static RPropertyTypeId RCircleEntity::PropertyCenterZ

static

static RPropertyTypeId RCircleEntity::PropertyCircumference

static

static RPropertyTypeId RCircleEntity::PropertyColor

static

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

static

static RPropertyTypeId RCircleEntity::PropertyDisplayedColor

static

static RPropertyTypeId RCircleEntity::PropertyDrawOrder

static

static RPropertyTypeId RCircleEntity::PropertyHandle

static

static RPropertyTypeId RCircleEntity::PropertyLayer

static

static RPropertyTypeId RCircleEntity::PropertyLinetype

static

static RPropertyTypeId RCircleEntity::PropertyLinetypeScale

static

static RPropertyTypeId RCircleEntity::PropertyLineweight

static

static RPropertyTypeId RCircleEntity::PropertyProtected

static

static RPropertyTypeId RCircleEntity::PropertyRadius

static

static RPropertyTypeId RCircleEntity::PropertyTotalArea

static

static RPropertyTypeId RCircleEntity::PropertyType

static

static RPropertyTypeId RCircleEntity::PropertyWorkingSet

static

virtual void RCircleEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RCircleData RCircleEntity::data

protected