Skip to content

RAttributeData

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

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.

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)
RAttributeData(RDocument *document, const RAttributeData &data)
bool invisible
QString tag
QDebug operator<<(QDebug dbg, const RAttributeData &t)
class RAttributeEntity

RAttributeData::RAttributeData()

inline

RAttributeData::RAttributeData(const RTextBasedData &textData, RObject::Id blockReferenceId, const QString &tag)

virtual RAttributeData::~RAttributeData()

virtual inline

virtual RColor RAttributeData::getColor() const

virtual inline const

Reimplemented from getColor.

virtual RColor RAttributeData::getColor(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const

virtual const

Returns: Color of this entity.

Parameters:

  • resolve: Resolve color if ByLayer or ByBlock.

Reimplemented from getColor.

virtual RObject::Id RAttributeData::getLinetypeId() const

virtual inline const

Returns: Linetype ID of this entity. Note that this might be ByLayer or ByBlock.

Reimplemented from getLinetypeId.

virtual RObject::Id RAttributeData::getLinetypeId(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const

virtual const

Reimplemented from getLinetypeId.

virtual RLineweight::Lineweight RAttributeData::getLineweight() const

virtual inline const

Reimplemented from getLineweight.

virtual RLineweight::Lineweight RAttributeData::getLineweight(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const

virtual 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.

virtual QList< RRefPoint > RAttributeData::getReferencePoints(RS::ProjectionRenderingHint hint) const

virtual 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.

virtual QString RAttributeData::getRenderedText(bool escUnicode=false) const

virtual const

Reimplemented from getRenderedText.

QString RAttributeData::getTag() const

inline const

virtual RS::EntityType RAttributeData::getType() const

virtual inline const

Reimplemented from getType.

bool RAttributeData::isInvisible() const

inline const

void RAttributeData::setInvisible(bool i)

inline

void RAttributeData::setTag(const QString &t)

inline

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.

bool RAttributeData::invisible

private

QString RAttributeData::tag

private

QDebug operator<<(QDebug dbg, const RAttributeData &t)

Non-Scriptable: This function is not available in script environments.

friend class RAttributeEntity

private