RAttributeEntity
Class in Entity Module
Header: #include <src/entity/RAttributeEntity.h>
Inherits: RTextBasedEntity
Description
Section titled “Description”Attribute entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”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) constExports 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 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”| RAttributeData | data |
Member Documentation
Section titled “Member Documentation”RAttributeEntity
Section titled “RAttributeEntity”RAttributeEntity::RAttributeEntity(RDocument *document, const RAttributeData &data)~RAttributeEntity
Section titled “~RAttributeEntity”virtual RAttributeEntity::~RAttributeEntity()virtual
virtual QSharedPointer< RObject > RAttributeEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToAttributeEntity
Section titled “cloneToAttributeEntity”QSharedPointer< RAttributeEntity > RAttributeEntity::cloneToAttributeEntity()inline
exportEntity
Section titled “exportEntity”virtual void RAttributeEntity::exportEntity(RExporter &e, bool preview, 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.
getData
Section titled “getData”virtual RAttributeData & RAttributeEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RAttributeData & RAttributeEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getProperty
Section titled “getProperty”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.
getTag
Section titled “getTag”QString RAttributeEntity::getTag() constinline const
isInvisible
Section titled “isInvisible”bool RAttributeEntity::isInvisible() constinline const
isSelectable
Section titled “isSelectable”virtual bool RAttributeEntity::isSelectable() constvirtual inline const
Reimplemented from isSelectable.
setData
Section titled “setData”void RAttributeEntity::setData(RAttributeData &d)inline
setInvisible
Section titled “setInvisible”void RAttributeEntity::setInvisible(bool i)inline
setProperty
Section titled “setProperty”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.
setTag
Section titled “setTag”void RAttributeEntity::setTag(const QString &t)inline
getRtti
Section titled “getRtti”static RS::EntityType RAttributeEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RAttributeEntity::getStaticPropertyTypeIds()static inline
static void RAttributeEntity::init()static
PropertyAngle
Section titled “PropertyAngle”static RPropertyTypeId RAttributeEntity::PropertyAnglestatic
PropertyBackward
Section titled “PropertyBackward”static RPropertyTypeId RAttributeEntity::PropertyBackwardstatic
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RAttributeEntity::PropertyBlockstatic
PropertyBold
Section titled “PropertyBold”static RPropertyTypeId RAttributeEntity::PropertyBoldstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RAttributeEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RAttributeEntity::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 RAttributeEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RAttributeEntity::PropertyDrawOrderstatic
PropertyFontName
Section titled “PropertyFontName”static RPropertyTypeId RAttributeEntity::PropertyFontNamestatic
PropertyHAlign
Section titled “PropertyHAlign”static RPropertyTypeId RAttributeEntity::PropertyHAlignstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RAttributeEntity::PropertyHandlestatic
PropertyHeight
Section titled “PropertyHeight”static RPropertyTypeId RAttributeEntity::PropertyHeightstatic
PropertyInvisible
Section titled “PropertyInvisible”static RPropertyTypeId RAttributeEntity::PropertyInvisiblestatic
PropertyItalic
Section titled “PropertyItalic”static RPropertyTypeId RAttributeEntity::PropertyItalicstatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RAttributeEntity::PropertyLayerstatic
PropertyLineSpacingFactor
Section titled “PropertyLineSpacingFactor”static RPropertyTypeId RAttributeEntity::PropertyLineSpacingFactorstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RAttributeEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RAttributeEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RAttributeEntity::PropertyLineweightstatic
PropertyParentId
Section titled “PropertyParentId”static RPropertyTypeId RAttributeEntity::PropertyParentIdstatic
PropertyPlainText
Section titled “PropertyPlainText”static RPropertyTypeId RAttributeEntity::PropertyPlainTextstatic
PropertyPositionX
Section titled “PropertyPositionX”static RPropertyTypeId RAttributeEntity::PropertyPositionXstatic
PropertyPositionY
Section titled “PropertyPositionY”static RPropertyTypeId RAttributeEntity::PropertyPositionYstatic
PropertyPositionZ
Section titled “PropertyPositionZ”static RPropertyTypeId RAttributeEntity::PropertyPositionZstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RAttributeEntity::PropertyProtectedstatic
PropertyTag
Section titled “PropertyTag”static RPropertyTypeId RAttributeEntity::PropertyTagstatic
PropertyText
Section titled “PropertyText”static RPropertyTypeId RAttributeEntity::PropertyTextstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RAttributeEntity::PropertyTypestatic
PropertyUpsideDown
Section titled “PropertyUpsideDown”static RPropertyTypeId RAttributeEntity::PropertyUpsideDownstatic
PropertyVAlign
Section titled “PropertyVAlign”static RPropertyTypeId RAttributeEntity::PropertyVAlignstatic
PropertyWidth
Section titled “PropertyWidth”static RPropertyTypeId RAttributeEntity::PropertyWidthstatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RAttributeEntity::PropertyWorkingSetstatic
PropertyXScale
Section titled “PropertyXScale”static RPropertyTypeId RAttributeEntity::PropertyXScalestatic
virtual void RAttributeEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RAttributeData RAttributeEntity::dataprotected