Skip to content

RAttributeEntity

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

Attribute entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RAttributeEntity(RDocument *document, const RAttributeData &data)
virtual ~RAttributeEntity()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RAttributeEntity > cloneToAttributeEntity()
virtual void exportEntity(RExporter &e, bool preview, bool forceSelected=false) const
Exports the entity to the given exporter.
virtual RAttributeData & getData()
virtual const RAttributeData & getData() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
QString getTag() const
bool isInvisible() const
virtual bool isSelectable() const
void setData(RAttributeData &d)
void setInvisible(bool i)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setTag(const QString &t)
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyAngle
static RPropertyTypeId PropertyBackward
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyBold
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyFontName
static RPropertyTypeId PropertyHAlign
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyHeight
static RPropertyTypeId PropertyInvisible
static RPropertyTypeId PropertyItalic
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLineSpacingFactor
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyParentId
static RPropertyTypeId PropertyPlainText
static RPropertyTypeId PropertyPositionX
static RPropertyTypeId PropertyPositionY
static RPropertyTypeId PropertyPositionZ
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyTag
static RPropertyTypeId PropertyText
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyUpsideDown
static RPropertyTypeId PropertyVAlign
static RPropertyTypeId PropertyWidth
static RPropertyTypeId PropertyWorkingSet
static RPropertyTypeId PropertyXScale
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RAttributeData data

RAttributeEntity::RAttributeEntity(RDocument *document, const RAttributeData &data)

virtual RAttributeEntity::~RAttributeEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RAttributeEntity > RAttributeEntity::cloneToAttributeEntity()

inline

virtual void RAttributeEntity::exportEntity(RExporter &e, bool preview, 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.

virtual RAttributeData & RAttributeEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RAttributeData & RAttributeEntity::getData() const

virtual inline const

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

Reimplemented from getData.

virtual QPair< QVariant, RPropertyAttributes > RAttributeEntity::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.

QString RAttributeEntity::getTag() const

inline const

bool RAttributeEntity::isInvisible() const

inline const

virtual bool RAttributeEntity::isSelectable() const

virtual inline const

Reimplemented from isSelectable.

void RAttributeEntity::setData(RAttributeData &d)

inline

void RAttributeEntity::setInvisible(bool i)

inline

virtual bool RAttributeEntity::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 RAttributeEntity::setTag(const QString &t)

inline

static RS::EntityType RAttributeEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RAttributeEntity::getStaticPropertyTypeIds()

static inline

static void RAttributeEntity::init()

static

static RPropertyTypeId RAttributeEntity::PropertyAngle

static

static RPropertyTypeId RAttributeEntity::PropertyBackward

static

static RPropertyTypeId RAttributeEntity::PropertyBlock

static

static RPropertyTypeId RAttributeEntity::PropertyBold

static

static RPropertyTypeId RAttributeEntity::PropertyColor

static

static RPropertyTypeId RAttributeEntity::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 RAttributeEntity::PropertyDisplayedColor

static

static RPropertyTypeId RAttributeEntity::PropertyDrawOrder

static

static RPropertyTypeId RAttributeEntity::PropertyFontName

static

static RPropertyTypeId RAttributeEntity::PropertyHAlign

static

static RPropertyTypeId RAttributeEntity::PropertyHandle

static

static RPropertyTypeId RAttributeEntity::PropertyHeight

static

static RPropertyTypeId RAttributeEntity::PropertyInvisible

static

static RPropertyTypeId RAttributeEntity::PropertyItalic

static

static RPropertyTypeId RAttributeEntity::PropertyLayer

static

static RPropertyTypeId RAttributeEntity::PropertyLineSpacingFactor

static

static RPropertyTypeId RAttributeEntity::PropertyLinetype

static

static RPropertyTypeId RAttributeEntity::PropertyLinetypeScale

static

static RPropertyTypeId RAttributeEntity::PropertyLineweight

static

static RPropertyTypeId RAttributeEntity::PropertyParentId

static

static RPropertyTypeId RAttributeEntity::PropertyPlainText

static

static RPropertyTypeId RAttributeEntity::PropertyPositionX

static

static RPropertyTypeId RAttributeEntity::PropertyPositionY

static

static RPropertyTypeId RAttributeEntity::PropertyPositionZ

static

static RPropertyTypeId RAttributeEntity::PropertyProtected

static

static RPropertyTypeId RAttributeEntity::PropertyTag

static

static RPropertyTypeId RAttributeEntity::PropertyText

static

static RPropertyTypeId RAttributeEntity::PropertyType

static

static RPropertyTypeId RAttributeEntity::PropertyUpsideDown

static

static RPropertyTypeId RAttributeEntity::PropertyVAlign

static

static RPropertyTypeId RAttributeEntity::PropertyWidth

static

static RPropertyTypeId RAttributeEntity::PropertyWorkingSet

static

static RPropertyTypeId RAttributeEntity::PropertyXScale

static

virtual void RAttributeEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RAttributeData RAttributeEntity::data

protected