RBlockReferenceEntity
Class in Core Module
Header: #include <src/core/RBlockReferenceEntity.h>
Inherits: REntity
Description
Section titled “Description”Block reference entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”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) constExports 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() constEntities can reimplement this function to invalidate any internal cache (mark the entity as dirty). |
| void | update(RObject::Id entityId) const |
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 Attributes
Section titled “Protected Attributes”| RBlockReferenceData | data |
| int | recursionDepth |
Member Documentation
Section titled “Member Documentation”RBlockReferenceEntity
Section titled “RBlockReferenceEntity”RBlockReferenceEntity::RBlockReferenceEntity(const RBlockReferenceEntity &other)RBlockReferenceEntity
Section titled “RBlockReferenceEntity”RBlockReferenceEntity::RBlockReferenceEntity(RDocument *document, const RBlockReferenceData &data)~RBlockReferenceEntity
Section titled “~RBlockReferenceEntity”virtual RBlockReferenceEntity::~RBlockReferenceEntity()virtual
applyTransformationTo
Section titled “applyTransformationTo”bool RBlockReferenceEntity::applyTransformationTo(QSharedPointer< REntity > &entity) constinline const
Non-Scriptable: This function is not available in script environments.
applyTransformationTo
Section titled “applyTransformationTo”bool RBlockReferenceEntity::applyTransformationTo(REntity &entity) constinline const
virtual QSharedPointer< RObject > RBlockReferenceEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToBlockReferenceEntity
Section titled “cloneToBlockReferenceEntity”QSharedPointer< RBlockReferenceEntity > RBlockReferenceEntity::cloneToBlockReferenceEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void RBlockReferenceEntity::exportEntity(RExporter &e, bool preview=false, 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.
getColumnCount
Section titled “getColumnCount”int RBlockReferenceEntity::getColumnCount() constinline const
getColumnSpacing
Section titled “getColumnSpacing”double RBlockReferenceEntity::getColumnSpacing() constinline const
getData
Section titled “getData”virtual RBlockReferenceData & RBlockReferenceEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RBlockReferenceData & RBlockReferenceEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getPosition
Section titled “getPosition”RVector RBlockReferenceEntity::getPosition() constinline const
getProperty
Section titled “getProperty”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.
getPropertyTypeIds
Section titled “getPropertyTypeIds”virtual QSet< RPropertyTypeId > RBlockReferenceEntity::getPropertyTypeIds(RPropertyAttributes::Option option=RPropertyAttributes::NoOptions) constvirtual 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.
getReferencedBlockId
Section titled “getReferencedBlockId”RObject::Id RBlockReferenceEntity::getReferencedBlockId() constinline const
getReferencedBlockName
Section titled “getReferencedBlockName”QString RBlockReferenceEntity::getReferencedBlockName() constinline const
getRotation
Section titled “getRotation”double RBlockReferenceEntity::getRotation() constinline const
getRowCount
Section titled “getRowCount”int RBlockReferenceEntity::getRowCount() constinline const
getRowSpacing
Section titled “getRowSpacing”double RBlockReferenceEntity::getRowSpacing() constinline const
getScaleFactors
Section titled “getScaleFactors”RVector RBlockReferenceEntity::getScaleFactors() constinline const
hasBlockOwnership
Section titled “hasBlockOwnership”bool RBlockReferenceEntity::hasBlockOwnership() constinline const
isXRef
Section titled “isXRef”bool RBlockReferenceEntity::isXRef() constinline const
loadXRef
Section titled “loadXRef”bool RBlockReferenceEntity::loadXRef() constinline const
mapToBlock
Section titled “mapToBlock”RVector RBlockReferenceEntity::mapToBlock(const RVector &v) constinline const
virtual void RBlockReferenceEntity::print(QDebug dbg) constvirtual const
Non-Scriptable: This function is not available in script environments.
Reimplemented from print.
queryEntity
Section titled “queryEntity”QSharedPointer< REntity > RBlockReferenceEntity::queryEntity(RObject::Id entityId, bool transform=false, bool ignoreAttDef=true) constinline const
setColumnCount
Section titled “setColumnCount”void RBlockReferenceEntity::setColumnCount(int c)inline
setColumnSpacing
Section titled “setColumnSpacing”void RBlockReferenceEntity::setColumnSpacing(double s)inline
setPosition
Section titled “setPosition”void RBlockReferenceEntity::setPosition(const RVector &pos)inline
setProperty
Section titled “setProperty”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.
setReferencedBlockId
Section titled “setReferencedBlockId”void RBlockReferenceEntity::setReferencedBlockId(RObject::Id blockId)inline
setReferencedBlockName
Section titled “setReferencedBlockName”void RBlockReferenceEntity::setReferencedBlockName(const QString &blockName)inline
setRotation
Section titled “setRotation”void RBlockReferenceEntity::setRotation(double r)inline
setRowCount
Section titled “setRowCount”void RBlockReferenceEntity::setRowCount(int c)inline
setRowSpacing
Section titled “setRowSpacing”void RBlockReferenceEntity::setRowSpacing(double s)inline
setScaleFactors
Section titled “setScaleFactors”void RBlockReferenceEntity::setScaleFactors(const RVector sf)inline
update
Section titled “update”virtual void RBlockReferenceEntity::update() constvirtual inline const
Entities can reimplement this function to invalidate any internal cache (mark the entity as dirty).
Reimplemented from update.
update
Section titled “update”void RBlockReferenceEntity::update(RObject::Id entityId) constinline const
getRtti
Section titled “getRtti”static RS::EntityType RBlockReferenceEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RBlockReferenceEntity::getStaticPropertyTypeIds()static inline
static void RBlockReferenceEntity::init()static
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RBlockReferenceEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RBlockReferenceEntity::PropertyColorstatic
PropertyColumnCount
Section titled “PropertyColumnCount”static RPropertyTypeId RBlockReferenceEntity::PropertyColumnCountstatic
PropertyColumnSpacing
Section titled “PropertyColumnSpacing”static RPropertyTypeId RBlockReferenceEntity::PropertyColumnSpacingstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RBlockReferenceEntity::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 RBlockReferenceEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RBlockReferenceEntity::PropertyDrawOrderstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RBlockReferenceEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RBlockReferenceEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RBlockReferenceEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RBlockReferenceEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RBlockReferenceEntity::PropertyLineweightstatic
PropertyPositionX
Section titled “PropertyPositionX”static RPropertyTypeId RBlockReferenceEntity::PropertyPositionXstatic
PropertyPositionY
Section titled “PropertyPositionY”static RPropertyTypeId RBlockReferenceEntity::PropertyPositionYstatic
PropertyPositionZ
Section titled “PropertyPositionZ”static RPropertyTypeId RBlockReferenceEntity::PropertyPositionZstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RBlockReferenceEntity::PropertyProtectedstatic
PropertyReferencedBlock
Section titled “PropertyReferencedBlock”static RPropertyTypeId RBlockReferenceEntity::PropertyReferencedBlockstatic
PropertyRotation
Section titled “PropertyRotation”static RPropertyTypeId RBlockReferenceEntity::PropertyRotationstatic
PropertyRowCount
Section titled “PropertyRowCount”static RPropertyTypeId RBlockReferenceEntity::PropertyRowCountstatic
PropertyRowSpacing
Section titled “PropertyRowSpacing”static RPropertyTypeId RBlockReferenceEntity::PropertyRowSpacingstatic
PropertyScaleX
Section titled “PropertyScaleX”static RPropertyTypeId RBlockReferenceEntity::PropertyScaleXstatic
PropertyScaleY
Section titled “PropertyScaleY”static RPropertyTypeId RBlockReferenceEntity::PropertyScaleYstatic
PropertyScaleZ
Section titled “PropertyScaleZ”static RPropertyTypeId RBlockReferenceEntity::PropertyScaleZstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RBlockReferenceEntity::PropertyTypestatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RBlockReferenceEntity::PropertyWorkingSetstatic
PropertyXRef
Section titled “PropertyXRef”static RPropertyTypeId RBlockReferenceEntity::PropertyXRefstatic
RBlockReferenceData RBlockReferenceEntity::dataprotected
recursionDepth
Section titled “recursionDepth”int RBlockReferenceEntity::recursionDepthprotected