Skip to content

RBlockReferenceEntity

Class in Core Module
Header: #include <src/core/RBlockReferenceEntity.h>
Inherits: REntity

Block reference entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RBlockReferenceEntity(const RBlockReferenceEntity &other)
RBlockReferenceEntity(RDocument *document, const RBlockReferenceData &data)
virtual ~RBlockReferenceEntity()
bool applyTransformationTo(QSharedPointer< REntity > &entity) const
bool applyTransformationTo(REntity &entity) const
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RBlockReferenceEntity > cloneToBlockReferenceEntity() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
int getColumnCount() const
double getColumnSpacing() const
virtual RBlockReferenceData & getData()
virtual const RBlockReferenceData & getData() const
RVector getPosition() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
virtual QSet< RPropertyTypeId > getPropertyTypeIds(RPropertyAttributes::Option option=RPropertyAttributes::NoOptions) const
RObject::Id getReferencedBlockId() const
QString getReferencedBlockName() const
double getRotation() const
int getRowCount() const
double getRowSpacing() const
RVector getScaleFactors() const
bool hasBlockOwnership() const
bool isXRef() const
bool loadXRef() const
RVector mapToBlock(const RVector &v) const
virtual void print(QDebug dbg) const
QSharedPointer< REntity > queryEntity(RObject::Id entityId, bool transform=false, bool ignoreAttDef=true) const
void setColumnCount(int c)
void setColumnSpacing(double s)
void setPosition(const RVector &pos)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setReferencedBlockId(RObject::Id blockId)
void setReferencedBlockName(const QString &blockName)
void setRotation(double r)
void setRowCount(int c)
void setRowSpacing(double s)
void setScaleFactors(const RVector sf)
virtual void update() const
Entities can reimplement this function to invalidate any internal cache (mark the entity as dirty).
void update(RObject::Id entityId) const
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyColumnCount
static RPropertyTypeId PropertyColumnSpacing
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyPositionX
static RPropertyTypeId PropertyPositionY
static RPropertyTypeId PropertyPositionZ
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyReferencedBlock
static RPropertyTypeId PropertyRotation
static RPropertyTypeId PropertyRowCount
static RPropertyTypeId PropertyRowSpacing
static RPropertyTypeId PropertyScaleX
static RPropertyTypeId PropertyScaleY
static RPropertyTypeId PropertyScaleZ
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyWorkingSet
static RPropertyTypeId PropertyXRef
RBlockReferenceData data
int recursionDepth

RBlockReferenceEntity::RBlockReferenceEntity(const RBlockReferenceEntity &other)

RBlockReferenceEntity::RBlockReferenceEntity(RDocument *document, const RBlockReferenceData &data)

virtual RBlockReferenceEntity::~RBlockReferenceEntity()

virtual

bool RBlockReferenceEntity::applyTransformationTo(QSharedPointer< REntity > &entity) const

inline const

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

bool RBlockReferenceEntity::applyTransformationTo(REntity &entity) const

inline const

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RBlockReferenceEntity > RBlockReferenceEntity::cloneToBlockReferenceEntity() const

inline const

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

int RBlockReferenceEntity::getColumnCount() const

inline const

double RBlockReferenceEntity::getColumnSpacing() const

inline const

virtual RBlockReferenceData & RBlockReferenceEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RBlockReferenceData & RBlockReferenceEntity::getData() const

virtual inline const

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

Reimplemented from getData.

RVector RBlockReferenceEntity::getPosition() const

inline const

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

virtual QSet< RPropertyTypeId > RBlockReferenceEntity::getPropertyTypeIds(RPropertyAttributes::Option option=RPropertyAttributes::NoOptions) const

virtual const

Returns: A set of all property IDs of properties that are available for this object. The IDs that are returned can be translated into a group title and a property title using getPropertyGroupTitle and getPropertyTitle.

Reimplemented from getPropertyTypeIds.

RObject::Id RBlockReferenceEntity::getReferencedBlockId() const

inline const

QString RBlockReferenceEntity::getReferencedBlockName() const

inline const

double RBlockReferenceEntity::getRotation() const

inline const

int RBlockReferenceEntity::getRowCount() const

inline const

double RBlockReferenceEntity::getRowSpacing() const

inline const

RVector RBlockReferenceEntity::getScaleFactors() const

inline const

bool RBlockReferenceEntity::hasBlockOwnership() const

inline const

bool RBlockReferenceEntity::isXRef() const

inline const

bool RBlockReferenceEntity::loadXRef() const

inline const

RVector RBlockReferenceEntity::mapToBlock(const RVector &v) const

inline const

virtual void RBlockReferenceEntity::print(QDebug dbg) const

virtual const

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

Reimplemented from print.

QSharedPointer< REntity > RBlockReferenceEntity::queryEntity(RObject::Id entityId, bool transform=false, bool ignoreAttDef=true) const

inline const

void RBlockReferenceEntity::setColumnCount(int c)

inline

void RBlockReferenceEntity::setColumnSpacing(double s)

inline

void RBlockReferenceEntity::setPosition(const RVector &pos)

inline

virtual bool RBlockReferenceEntity::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 RBlockReferenceEntity::setReferencedBlockId(RObject::Id blockId)

inline

void RBlockReferenceEntity::setReferencedBlockName(const QString &blockName)

inline

void RBlockReferenceEntity::setRotation(double r)

inline

void RBlockReferenceEntity::setRowCount(int c)

inline

void RBlockReferenceEntity::setRowSpacing(double s)

inline

void RBlockReferenceEntity::setScaleFactors(const RVector sf)

inline

virtual void RBlockReferenceEntity::update() const

virtual inline const

Entities can reimplement this function to invalidate any internal cache (mark the entity as dirty).

Reimplemented from update.

void RBlockReferenceEntity::update(RObject::Id entityId) const

inline const

static RS::EntityType RBlockReferenceEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RBlockReferenceEntity::getStaticPropertyTypeIds()

static inline

static void RBlockReferenceEntity::init()

static

static RPropertyTypeId RBlockReferenceEntity::PropertyBlock

static

static RPropertyTypeId RBlockReferenceEntity::PropertyColor

static

static RPropertyTypeId RBlockReferenceEntity::PropertyColumnCount

static

static RPropertyTypeId RBlockReferenceEntity::PropertyColumnSpacing

static

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

static

static RPropertyTypeId RBlockReferenceEntity::PropertyDrawOrder

static

static RPropertyTypeId RBlockReferenceEntity::PropertyHandle

static

static RPropertyTypeId RBlockReferenceEntity::PropertyLayer

static

static RPropertyTypeId RBlockReferenceEntity::PropertyLinetype

static

static RPropertyTypeId RBlockReferenceEntity::PropertyLinetypeScale

static

static RPropertyTypeId RBlockReferenceEntity::PropertyLineweight

static

static RPropertyTypeId RBlockReferenceEntity::PropertyPositionX

static

static RPropertyTypeId RBlockReferenceEntity::PropertyPositionY

static

static RPropertyTypeId RBlockReferenceEntity::PropertyPositionZ

static

static RPropertyTypeId RBlockReferenceEntity::PropertyProtected

static

static RPropertyTypeId RBlockReferenceEntity::PropertyReferencedBlock

static

static RPropertyTypeId RBlockReferenceEntity::PropertyRotation

static

static RPropertyTypeId RBlockReferenceEntity::PropertyRowCount

static

static RPropertyTypeId RBlockReferenceEntity::PropertyRowSpacing

static

static RPropertyTypeId RBlockReferenceEntity::PropertyScaleX

static

static RPropertyTypeId RBlockReferenceEntity::PropertyScaleY

static

static RPropertyTypeId RBlockReferenceEntity::PropertyScaleZ

static

static RPropertyTypeId RBlockReferenceEntity::PropertyType

static

static RPropertyTypeId RBlockReferenceEntity::PropertyWorkingSet

static

static RPropertyTypeId RBlockReferenceEntity::PropertyXRef

static

RBlockReferenceData RBlockReferenceEntity::data

protected

int RBlockReferenceEntity::recursionDepth

protected