Skip to content

REntity

Class in Core Module
Header: #include <src/core/REntity.h>
Inherits: RObject
Inherited by: RArcEntity, RBlockReferenceEntity, RCircleEntity, RDimensionEntity, REllipseEntity, RFaceEntity, RHatchEntity, RImageEntity, RLeaderEntity, RLineEntity, RPointEntity, RPolyMeshEntity, RPolylineEntity, RRayEntity, RSolidEntity, RSplineEntity, RTextBasedEntity, RToleranceEntity, RTraceEntity, RViewportEntity, RWipeoutEntity, RXLineEntity

Base class for all entity classes.

Entities can be exported using an implementor of the exporter interface by calling exportEntity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

REntity(const REntity &other)
REntity(RDocument *document)
virtual ~REntity()
virtual const RShape * castToConstShape() const
virtual RShape * castToShape()
virtual bool clickReferencePoint(const RVector &referencePoint)
Called when user clicks a reference point.
virtual QSharedPointer< RObject > clone() const =0 = 0
virtual bool cloneOnChange() const
QSharedPointer< REntity > cloneToEntity() const
void copyAttributesFrom(const REntity *entity, bool copyBlockId=true)
Copies all attributes (layer, block, color, line weight, line style) from the given entity.
void copyAttributesFrom(const REntityData &entityData, bool copyBlockId=true)
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0 = 0
Exports the entity to the given exporter.
virtual bool flipHorizontal()
virtual bool flipVertical()
virtual void forceAutoUpdate()
RObject::Id getBlockId() const
QString getBlockName() const
virtual RBox getBoundingBox(bool ignoreEmpty=false) const
virtual QList< RBox > getBoundingBoxes(bool ignoreEmpty=false) const
virtual QList< RVector > getCenterPoints(const RBox &queryBox=RDEFAULT_RBOX, QList< RObject::Id > *subEntityIds=NULL) const
virtual RVector getClosestPointOnEntity(const RVector &point, double range=RNANDOUBLE, bool limited=true, RObject::Id *subEntityId=NULL) const
virtual QSharedPointer< RShape > getClosestShape(const RVector &pos, double range=RNANDOUBLE, bool ignoreComplex=false, RObject::Id *subEntityId=NULL) const
virtual QSharedPointer< RShape > getClosestSimpleShape(const RVector &pos, double range=RNANDOUBLE) const
RObject::Id getClosestSubEntityId(const RVector &pos, double range=RNANDOUBLE, bool ignoreComplex=false) const
Convenience function for scripts.
RColor getColor() const
RColor getColor(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack)
RColor getColor(const RColor &unresolvedColor, const QStack< QSharedPointer< REntity > > &blockRefStack)
virtual int getComplexity() const
virtual const REntityData & getData() const =0 = 0
virtual REntityData & getData()=0 = 0
RColor getDisplayColor()
virtual double getDistanceTo(const RVector &point, bool limited=true, double range=0.0, bool draft=false, double strictRange=RMAXDOUBLE) const
int getDrawOrder() const
virtual QList< RVector > getEndPoints(const RBox &queryBox=RDEFAULT_RBOX, QList< RObject::Id > *subEntityIds=NULL) const
virtual RPolyline getHull(double offset) const
virtual QList< RRefPoint > getInternalReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop, QList< RObject::Id > *subEntityIds=NULL) const
Can be overwritten to return internal, resolved reference points.
virtual QList< RVector > getIntersectionPoints(const REntity &other, bool limited=true, const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=true, QList< QPair< RObject::Id, RObject::Id > > *entityIds=NULL) const
virtual QList< RVector > getIntersectionPoints(const RShape &shape, bool limited=true, const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=true) const
virtual QList< RVector > getIntersectionPointsWithShape(const RShape &shape, bool limited=true, const RBox &queryBox=RDEFAULT_RBOX) const
Make getIntersectionPoints with shape parameter accessible for script wrappers.
RObject::Id getLayerId() const
QString getLayerName() const
RObject::Id getLinetypeId() const
RObject::Id getLinetypeId(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const
RLinetypePattern getLinetypePattern() const
double getLinetypeScale() const
RLineweight::Lineweight getLineweight() const
RLineweight::Lineweight getLineweight(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const
double getLineweightInUnits(const QStack< QSharedPointer< REntity > > &blockRefStack) const
virtual QList< RVector > getMiddlePoints(const RBox &queryBox=RDEFAULT_RBOX, QList< RObject::Id > *subEntityIds=NULL) const
RObject::Id getParentId() const
virtual RVector getPointOnEntity() const
virtual QList< RVector > getPointsWithDistanceToEnd(double distance, int from=RS::FromAny, const RBox &queryBox=RDEFAULT_RBOX, QList< RObject::Id > *subEntityIds=NULL) const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
virtual QList< RRefPoint > getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const
virtual QList< QSharedPointer< RShape > > getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) const
virtual RS::EntityType getType() const
virtual RVector getVectorTo(const RVector &point, bool limited=true, double strictRange=RMAXDOUBLE) const
virtual bool intersectsWith(const RShape &shape) const
virtual bool isEditable(bool allowInvisible=false) const
virtual bool isInside(const RBox &box) const
virtual bool isInWorkingSet() const
virtual bool isOnEntity(const RVector &point, bool limited=true, double tolerance=RDEFAULT_TOLERANCE_1E_MIN4) const
virtual bool isPointType() const
virtual bool isSane() const
virtual bool isSelectable() const
virtual bool isSelected() const
Reimplemented by entities that are part of a block reference but not stored as part of the block definition (currently only block attributes).
virtual bool isSelectedWorkingSet() const
virtual bool isUpdatesEnabled() const
virtual bool isValid() const
virtual bool isVisible(RObject::Id blockId=RObject::INVALID_ID) const
virtual bool mirror(const RLine &axis)
virtual bool mirror(const RVector &axis1, const RVector &axis2)
virtual bool move(const RVector &offset)
Moves this entity by the given offset.
virtual bool moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint, Qt::KeyboardModifiers modifiers=Qt::NoModifier)
Moves the given reference point to the given target point or does nothing if this entity has no reference point as the given location.
virtual bool rotate(double rotation, const RVector &center=RDEFAULT_RVECTOR)
virtual bool scale(const RVector &scaleFactors, const RVector &center=RDEFAULT_RVECTOR)
virtual bool scale(double scaleFactor, const RVector &center=RDEFAULT_RVECTOR)
virtual QSharedPointer< REntity > scaleNonUniform(const RVector &scaleFactors, const RVector &center=RDEFAULT_RVECTOR)
virtual void scaleVisualProperties(double scaleFactor)
virtual void setAutoUpdatesBlocked(bool on)
void setBlockId(RObject::Id blockId)
void setColor(const RColor &color)
void setDocument(RDocument *document)
void setDrawOrder(int drawOrder)
Sets the draw order of this entity.
void setLayerId(RObject::Id layerId)
void setLayerName(const QString &n)
void setLinetypeId(RObject::Id linetypeId)
Sets the linetype of this entity to the given linetype ID.
void setLinetypePattern(const RLinetypePattern &linetypePattern)
void setLinetypeScale(double linetypeScale)
void setLineweight(RLineweight::Lineweight lineweight)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
virtual void setSelected(bool on)
virtual void setSelectedWorkingSet(bool on)
void setUpdatesEnabled(bool on)
virtual void setViewportContext(const RViewportData &)
virtual void setZ(double z)
virtual bool stretch(const RPolyline &area, const RVector &offset)
Stretches the end points of this entity that are inside area by offset.
virtual void to2D()
virtual void update() const
Entities can reimplement this function to invalidate any internal cache (mark the entity as dirty).
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static bool isComplex(const RS::EntityType type)
static bool isDimension(const RS::EntityType type)
static bool isTextBased(const RS::EntityType type)
static bool isThreeDimensionalExport(RExporter &e)
Selects or deselects this entity.
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyColor
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 PropertyMaxX
static RPropertyTypeId PropertyMaxY
static RPropertyTypeId PropertyMinX
static RPropertyTypeId PropertyMinY
static RPropertyTypeId PropertyParentId
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertySizeX
static RPropertyTypeId PropertySizeY
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
void setParentId(RObject::Id parentId)
class RStorage

REntity::REntity(const REntity &other)

REntity::REntity(RDocument *document)

virtual REntity::~REntity()

virtual

virtual const RShape * REntity::castToConstShape() const

virtual inline const

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

virtual RShape * REntity::castToShape()

virtual inline

virtual bool REntity::clickReferencePoint(const RVector &referencePoint)

virtual inline

Called when user clicks a reference point.

Returns: True if clicking the reference point had any immediate effect.

virtual QSharedPointer< RObject > REntity::clone() const =0 = 0

pure virtual const

Reimplemented from clone.

Reimplemented in clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone, clone.

virtual bool REntity::cloneOnChange() const

virtual inline const

QSharedPointer< REntity > REntity::cloneToEntity() const

inline const

void REntity::copyAttributesFrom(const REntity *entity, bool copyBlockId=true)

Copies all attributes (layer, block, color, line weight, line style) from the given entity.

void REntity::copyAttributesFrom(const REntityData &entityData, bool copyBlockId=true)

virtual void REntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0 = 0

pure 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 in exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity, exportEntity.

virtual bool REntity::flipHorizontal()

virtual inline

virtual bool REntity::flipVertical()

virtual inline

virtual void REntity::forceAutoUpdate()

virtual inline

Reimplemented from forceAutoUpdate.

RObject::Id REntity::getBlockId() const

inline const

QString REntity::getBlockName() const

inline const

virtual RBox REntity::getBoundingBox(bool ignoreEmpty=false) const

virtual inline const

Returns: The bounding box that contains this entity.

virtual QList< RBox > REntity::getBoundingBoxes(bool ignoreEmpty=false) const

virtual inline const

Returns: List of bounding boxes that contain this entity. This is used for complex entities such as block references to further optimize algorithms that depend on bounding boxes (e.g. spatial index algorithms). The default implementation returns the bounding box that contains the whole entity.

virtual QList< RVector > REntity::getCenterPoints(const RBox &queryBox=RDEFAULT_RBOX, QList< RObject::Id > *subEntityIds=NULL) const

virtual inline const

Returns: Vector of center points of this entity. Used for snap to center points.

virtual RVector REntity::getClosestPointOnEntity(const RVector &point, double range=RNANDOUBLE, bool limited=true, RObject::Id *subEntityId=NULL) const

virtual inline const

Returns: Closest point to point on this entity. Used for snap to points on entity.

virtual QSharedPointer< RShape > REntity::getClosestShape(const RVector &pos, double range=RNANDOUBLE, bool ignoreComplex=false, RObject::Id *subEntityId=NULL) const

virtual inline const

Returns: The one shape that is part of this entity which is the closest to the given position.

virtual QSharedPointer< RShape > REntity::getClosestSimpleShape(const RVector &pos, double range=RNANDOUBLE) const

virtual inline const

Returns: The one shape that is part of this entity which is the closest to the given position.

RObject::Id REntity::getClosestSubEntityId(const RVector &pos, double range=RNANDOUBLE, bool ignoreComplex=false) const

inline const

Convenience function for scripts.

RColor REntity::getColor() const

inline const

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

RColor REntity::getColor(const RColor &unresolvedColor, const QStack< QSharedPointer< REntity > > &blockRefStack)

virtual int REntity::getComplexity() const

virtual inline const

Reimplemented from getComplexity.

Reimplemented in getComplexity, getComplexity, getComplexity.

virtual const REntityData & REntity::getData() const =0 = 0

pure virtual const

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

Reimplemented in getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData.

virtual REntityData & REntity::getData()=0 = 0

pure virtual

Returns: Reference to the data object of the entity.

Reimplemented in getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData, getData.

RColor REntity::getDisplayColor()

inline

virtual double REntity::getDistanceTo(const RVector &point, bool limited=true, double range=0.0, bool draft=false, double strictRange=RMAXDOUBLE) const

virtual inline const

int REntity::getDrawOrder() const

inline const

Returns: The draw order of this entity. Entities are usually drawn in ascending order of this number.

virtual QList< RVector > REntity::getEndPoints(const RBox &queryBox=RDEFAULT_RBOX, QList< RObject::Id > *subEntityIds=NULL) const

virtual inline const

Returns: Vector of end points of this entity. Used for snap to end points.

virtual RPolyline REntity::getHull(double offset) const

virtual inline const

Returns: A polygon that contains this entity. Default implementation returns a polygon around the bounding box.

virtual QList< RRefPoint > REntity::getInternalReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop, QList< RObject::Id > *subEntityIds=NULL) const

virtual inline const

Can be overwritten to return internal, resolved reference points.

This is used for example for block references in combination with snap to reference points. Default implementation returns same as getReferencePoints().

virtual QList< RVector > REntity::getIntersectionPoints(const REntity &other, bool limited=true, const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=true, QList< QPair< RObject::Id, RObject::Id > > *entityIds=NULL) const

virtual const

virtual QList< RVector > REntity::getIntersectionPoints(const RShape &shape, bool limited=true, const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=true) const

virtual const

virtual QList< RVector > REntity::getIntersectionPointsWithShape(const RShape &shape, bool limited=true, const RBox &queryBox=RDEFAULT_RBOX) const

virtual inline const

Make getIntersectionPoints with shape parameter accessible for script wrappers.

RObject::Id REntity::getLayerId() const

inline const

QString REntity::getLayerName() const

inline const

RObject::Id REntity::getLinetypeId() const

inline const

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

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

const

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

RLinetypePattern REntity::getLinetypePattern() const

inline const

double REntity::getLinetypeScale() const

inline const

RLineweight::Lineweight REntity::getLineweight() const

inline const

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

const

double REntity::getLineweightInUnits(const QStack< QSharedPointer< REntity > > &blockRefStack) const

const

virtual QList< RVector > REntity::getMiddlePoints(const RBox &queryBox=RDEFAULT_RBOX, QList< RObject::Id > *subEntityIds=NULL) const

virtual inline const

Returns: Vector of middle points of this entity. Used for snap to middle points.

RObject::Id REntity::getParentId() const

inline const

Returns: ID of parent entity (block reference for block attribute).

virtual RVector REntity::getPointOnEntity() const

virtual inline const

Returns: A point that is on the entity. Used to check if an entity is inside a polygon.

virtual QList< RVector > REntity::getPointsWithDistanceToEnd(double distance, int from=RS::FromAny, const RBox &queryBox=RDEFAULT_RBOX, QList< RObject::Id > *subEntityIds=NULL) const

virtual inline const

Returns: Points on entity with given distance to either endpoint. Used for snap to points with distance on entity.

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

Reimplemented in getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty.

virtual QList< RRefPoint > REntity::getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const

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

virtual QList< QSharedPointer< RShape > > REntity::getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) const

virtual inline const

Returns: Shapes that represent the geometry of this entity.

Parameters:

  • queryBox: Limit returned shapes to query box
  • ignoreComplex: Ignore complex shapes and explode those into simple shapes
  • segment: Split up splines into spline segments

Reimplemented in getShapes, getShapes.

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

virtual inline const

Returns: The unique entity type, usually the same as RTTI, different for custom entities.

Reimplemented from getType.

virtual RVector REntity::getVectorTo(const RVector &point, bool limited=true, double strictRange=RMAXDOUBLE) const

virtual inline const

Returns: The distance vector from this entity to the given point.

Parameters:

  • point: the point to which the distance was measured
  • limited: If true, an invalid vector is returned if the closest point on the entity is outside of the entity (e.g. in the extension line of a line or outside the start / end angle of an arc).

virtual bool REntity::intersectsWith(const RShape &shape) const

virtual inline const

Returns: True if this entity intersects with the given shape, false otherwise.

virtual bool REntity::isEditable(bool allowInvisible=false) const

virtual const

Returns: true if this entity can be edited (i.e. is not on a locked layer).

virtual bool REntity::isInside(const RBox &box) const

virtual inline const

Returns: True if this entity is completely inside the given box, false otherwise. Only geometry is accounted for, not the line width.

virtual bool REntity::isInWorkingSet() const

virtual const

virtual bool REntity::isOnEntity(const RVector &point, bool limited=true, double tolerance=RDEFAULT_TOLERANCE_1E_MIN4) const

virtual inline const

Returns: True if the given point is on this entity.

virtual bool REntity::isPointType() const

virtual inline const

virtual bool REntity::isSane() const

virtual inline const

virtual bool REntity::isSelectable() const

virtual const

Reimplemented in isSelectable.

virtual bool REntity::isSelected() const

virtual inline const

Reimplemented by entities that are part of a block reference but not stored as part of the block definition (currently only block attributes).

The default implementation returns false. Reimplemented by entities that do not want to be automatically painted

Returns: True if the entity is currently selected. This can for example influence the color in which the entity is exported.

Reimplemented from isSelected.

virtual bool REntity::isSelectedWorkingSet() const

virtual inline const

Returns: True if the entity is currently selected to be added to the working set.

virtual bool REntity::isUpdatesEnabled() const

virtual inline const

virtual bool REntity::isValid() const

virtual inline const

Reimplemented in isValid.

virtual bool REntity::isVisible(RObject::Id blockId=RObject::INVALID_ID) const

virtual const

Returns: true if this entity is visible (i.e. is on current or given block, is not on a frozen or hidden layer or in a frozen block).

virtual bool REntity::mirror(const RLine &axis)

virtual inline

virtual bool REntity::mirror(const RVector &axis1, const RVector &axis2)

virtual inline

virtual bool REntity::move(const RVector &offset)

virtual inline

Moves this entity by the given offset.

virtual bool REntity::moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint, Qt::KeyboardModifiers modifiers=Qt::NoModifier)

virtual inline

Moves the given reference point to the given target point or does nothing if this entity has no reference point as the given location.

Returns: True if a reference point has been moved successfully, false otherwise.

virtual bool REntity::rotate(double rotation, const RVector &center=RDEFAULT_RVECTOR)

virtual inline

virtual bool REntity::scale(const RVector &scaleFactors, const RVector &center=RDEFAULT_RVECTOR)

virtual inline

virtual bool REntity::scale(double scaleFactor, const RVector &center=RDEFAULT_RVECTOR)

virtual inline

virtual QSharedPointer< REntity > REntity::scaleNonUniform(const RVector &scaleFactors, const RVector &center=RDEFAULT_RVECTOR)

virtual

Reimplemented in scaleNonUniform, scaleNonUniform, scaleNonUniform, scaleNonUniform.

virtual void REntity::scaleVisualProperties(double scaleFactor)

virtual inline

virtual void REntity::setAutoUpdatesBlocked(bool on)

virtual inline

Reimplemented from setAutoUpdatesBlocked.

void REntity::setBlockId(RObject::Id blockId)

inline

void REntity::setColor(const RColor &color)

inline

void REntity::setDocument(RDocument *document)

inline

void REntity::setDrawOrder(int drawOrder)

inline

Sets the draw order of this entity.

void REntity::setLayerId(RObject::Id layerId)

inline

void REntity::setLayerName(const QString &n)

inline

void REntity::setLinetypeId(RObject::Id linetypeId)

inline

Sets the linetype of this entity to the given linetype ID.

See also: RDocument::getLinetypeId

void REntity::setLinetypePattern(const RLinetypePattern &linetypePattern)

inline

void REntity::setLinetypeScale(double linetypeScale)

inline

void REntity::setLineweight(RLineweight::Lineweight lineweight)

inline

virtual bool REntity::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.

Reimplemented in setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty.

virtual void REntity::setSelected(bool on)

virtual

Reimplemented from setSelected.

virtual void REntity::setSelectedWorkingSet(bool on)

virtual inline

void REntity::setUpdatesEnabled(bool on)

inline

virtual void REntity::setViewportContext(const RViewportData &)

virtual inline

Reimplemented in setViewportContext.

virtual void REntity::setZ(double z)

virtual inline

virtual bool REntity::stretch(const RPolyline &area, const RVector &offset)

virtual inline

Stretches the end points of this entity that are inside area by offset.

virtual void REntity::to2D()

virtual inline

virtual void REntity::update() const

virtual inline const

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

Reimplemented in update.

static RS::EntityType REntity::getRtti()

static inline

static QSet< RPropertyTypeId > REntity::getStaticPropertyTypeIds()

static inline

static void REntity::init()

static

static bool REntity::isComplex(const RS::EntityType type)

static

static bool REntity::isDimension(const RS::EntityType type)

static

static bool REntity::isTextBased(const RS::EntityType type)

static

static bool REntity::isThreeDimensionalExport(RExporter &e)

static

Selects or deselects this entity.

Returns: True if the given exporter exports to a 3D view: a graphics scene with the projection rendering hint RS::RenderThreeD (RExporter::getProjectionRenderingHint). 2D graphics scenes use RS::RenderTop, other exporters (file export, painter path and shape exporters) always get the 2D representation.

Entity types with a separate 3D representation (e.g. mesh entities which export their top view to 2D views and their triangles to 3D views, or custom entities, see RCustomEntityHandler::exportEntity3D) use this in their exportEntity implementation to decide which representation to export.

static RPropertyTypeId REntity::PropertyBlock

static

static RPropertyTypeId REntity::PropertyColor

static

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

static

static RPropertyTypeId REntity::PropertyDrawOrder

static

static RPropertyTypeId REntity::PropertyHandle

static

static RPropertyTypeId REntity::PropertyLayer

static

static RPropertyTypeId REntity::PropertyLinetype

static

static RPropertyTypeId REntity::PropertyLinetypeScale

static

static RPropertyTypeId REntity::PropertyLineweight

static

static RPropertyTypeId REntity::PropertyMaxX

static

static RPropertyTypeId REntity::PropertyMaxY

static

static RPropertyTypeId REntity::PropertyMinX

static

static RPropertyTypeId REntity::PropertyMinY

static

static RPropertyTypeId REntity::PropertyParentId

static

static RPropertyTypeId REntity::PropertyProtected

static

static RPropertyTypeId REntity::PropertySizeX

static

static RPropertyTypeId REntity::PropertySizeY

static

static RPropertyTypeId REntity::PropertyType

static

static RPropertyTypeId REntity::PropertyWorkingSet

static

virtual void REntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

Reimplemented in print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print.

void REntity::setParentId(RObject::Id parentId)

inline protected

Use RStorage::setEntityParentId instead.

friend class RStorage

private