RAttributeData
Class in Entity Module
Header: #include <src/entity/RAttributeData.h>
Inherits: RTextBasedData
Description
Section titled “Description”Stores and manages all data that defines the geometry and appearance of a block attribute entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Public Functions
Section titled “Public Functions”RAttributeData() |
|
RAttributeData(const RTextBasedData &textData, RObject::Id blockReferenceId, const QString &tag) |
|
| virtual | ~RAttributeData() |
| virtual RColor | getColor() const |
| virtual RColor | getColor(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const |
| virtual RObject::Id | getLinetypeId() const |
| virtual RObject::Id | getLinetypeId(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const |
| virtual RLineweight::Lineweight | getLineweight() const |
| virtual RLineweight::Lineweight | getLineweight(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const |
| virtual QList< RRefPoint > | getReferencePoints(RS::ProjectionRenderingHint hint) const |
| virtual QString | getRenderedText(bool escUnicode=false) const |
| QString | getTag() const |
| virtual RS::EntityType | getType() const |
| bool | isInvisible() const |
| void | setInvisible(bool i) |
| void | setTag(const QString &t) |
Protected Functions
Section titled “Protected Functions”RAttributeData(RDocument *document, const RAttributeData &data) |
Private Attributes
Section titled “Private Attributes”| bool | invisible |
| QString | tag |
Friends
Section titled “Friends”| QDebug | operator<<(QDebug dbg, const RAttributeData &t) |
| class | RAttributeEntity |
Member Documentation
Section titled “Member Documentation”RAttributeData
Section titled “RAttributeData”RAttributeData::RAttributeData()inline
RAttributeData
Section titled “RAttributeData”RAttributeData::RAttributeData(const RTextBasedData &textData, RObject::Id blockReferenceId, const QString &tag)~RAttributeData
Section titled “~RAttributeData”virtual RAttributeData::~RAttributeData()virtual inline
getColor
Section titled “getColor”virtual RColor RAttributeData::getColor() constvirtual inline const
Reimplemented from getColor.
getColor
Section titled “getColor”virtual RColor RAttributeData::getColor(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) constvirtual const
Returns: Color of this entity.
Parameters:
resolve: Resolve color if ByLayer or ByBlock.
Reimplemented from getColor.
getLinetypeId
Section titled “getLinetypeId”virtual RObject::Id RAttributeData::getLinetypeId() constvirtual inline const
Returns: Linetype ID of this entity. Note that this might be ByLayer or ByBlock.
Reimplemented from getLinetypeId.
getLinetypeId
Section titled “getLinetypeId”virtual RObject::Id RAttributeData::getLinetypeId(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) constvirtual const
Reimplemented from getLinetypeId.
getLineweight
Section titled “getLineweight”virtual RLineweight::Lineweight RAttributeData::getLineweight() constvirtual inline const
Reimplemented from getLineweight.
getLineweight
Section titled “getLineweight”virtual RLineweight::Lineweight RAttributeData::getLineweight(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) constvirtual const
Parameters:
resolve: True: resolve ByLayer / ByBlock and always return a lineweight in 1/100 mm.layer: Layer to use for resolving if known, NULL otherwise.blockRef: Block reference to use for resolving if known, NULL otherwise.
Reimplemented from getLineweight.
getReferencePoints
Section titled “getReferencePoints”virtual QList< RRefPoint > RAttributeData::getReferencePoints(RS::ProjectionRenderingHint hint) constvirtual const
Returns: Vector of reference points of this entity. Reference points can usually be moved around by the user to change the geometry of the entity.
Reimplemented from getReferencePoints.
getRenderedText
Section titled “getRenderedText”virtual QString RAttributeData::getRenderedText(bool escUnicode=false) constvirtual const
Reimplemented from getRenderedText.
getTag
Section titled “getTag”QString RAttributeData::getTag() constinline const
getType
Section titled “getType”virtual RS::EntityType RAttributeData::getType() constvirtual inline const
Reimplemented from getType.
isInvisible
Section titled “isInvisible”bool RAttributeData::isInvisible() constinline const
setInvisible
Section titled “setInvisible”void RAttributeData::setInvisible(bool i)inline
setTag
Section titled “setTag”void RAttributeData::setTag(const QString &t)inline
RAttributeData
Section titled “RAttributeData”RAttributeData::RAttributeData(RDocument *document, const RAttributeData &data)protected
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.
invisible
Section titled “invisible”bool RAttributeData::invisibleprivate
QString RAttributeData::tagprivate
operator<<
Section titled “operator<<”QDebug operator<<(QDebug dbg, const RAttributeData &t)Non-Scriptable: This function is not available in script environments.
RAttributeEntity
Section titled “RAttributeEntity”friend class RAttributeEntityprivate