Skip to content

REntityData

Class in Core Module
Header: #include <src/core/REntityData.h>
Inherited by: RArcData, RBlockReferenceData, RCircleData, RDimensionData, REllipseData, RHatchData, RImageData, RLeaderData, RLineData, RPointData, RPolyMeshData, RPolylineData, RRayData, RSolidData, RSplineData, RTextBasedData, RToleranceData, RViewportData, RXLineData

Base class for all entity data classes.

Such classes are used to separate functionality from data. Data objects may for example be used to perform certain calculations. A custom entity might use the same data class as a standard entity to provide similar behavior (e.g. a wall might behave similar like a line entity).

\TODO derive from RObjectData with flags for selection status etc.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

REntityData(RDocument *document=NULL)
virtual ~REntityData()
virtual const RShape * castToConstShape() const
virtual RShape * castToShape()
virtual bool clickReferencePoint(const RVector &referencePoint)
Called when user clicks a reference point.
virtual bool cloneOnChange() const
Reimplement to force clone on change in transactions.
void copyAttributesFrom(const REntityData &entityData, bool copyBlockId=true)
virtual bool flipHorizontal()
virtual bool flipVertical()
virtual QList< RVector > getArcReferencePoints(const RBox &queryBox=RDEFAULT_RBOX) const
virtual bool getAutoUpdatesBlocked() const
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
RObject::Id getClosestSubEntityId(const RVector &pos, double range, bool ignoreComplex) const
Convenience function for scripts.
virtual RColor getColor() const
virtual RColor getColor(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const
virtual RColor getColor(const RColor &unresolvedColor, const QStack< QSharedPointer< REntity > > &blockRefStack) const
virtual RColor getDisplayColor()
virtual double getDistanceTo(const RVector &point, bool limited=true, double range=0.0, bool draft=false, double strictRange=RMAXDOUBLE) const
RDocument * getDocument()
const RDocument * getDocument() const
virtual 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 REntityData &other, bool limited=true, bool same=false, 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
RObject::Id getLayerId() const
QString getLayerName() const
virtual RObject::Id getLinetypeId() const
virtual RObject::Id getLinetypeId(bool resolve, const QStack< QSharedPointer< REntity > > &blockRefStack) const
virtual RLinetypePattern getLinetypePattern() const
virtual double getLinetypeScale() const
virtual RLineweight::Lineweight getLineweight() const
virtual 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 QList< RRefPoint > getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const =0 = 0
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 isInside(const RBox &box) 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 isSelected() const
virtual bool isSelectedWorkingSet() const
virtual bool isUpdatesEnabled() const
virtual bool isValid() 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)=0 = 0
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 void scaleVisualProperties(double scaleFactor)
virtual void setAutoUpdatesBlocked(bool on)
virtual void setBlockId(RObject::Id blockId)
void setColor(const RColor &color)
void setDocument(RDocument *document)
virtual void setDrawOrder(int drawOrder)
Sets the draw order of this entity.
virtual void setLayerId(RObject::Id layerId)
void setLayerName(const QString &layerName)
virtual void setLinetypeId(RObject::Id linetypeId)
Sets the linetype of this entity to the given linetype ID.
virtual void setLinetypePattern(const RLinetypePattern &p)
virtual void setLinetypeScale(double linetypeScale)
void setLineweight(RLineweight::Lineweight lineweight)
virtual void setParentId(RObject::Id parentId)
virtual void setSelected(bool on)
Selects or deselects this entity.
virtual void setSelectedWorkingSet(bool on)
Selects or deselects this entity for addition to the current working set.
void setUpdatesEnabled(bool on)
Enables / disables cache updates.
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 int getDefaultDrawOrder()
bool autoUpdatesBlocked
Block auto updates is true during imports, undo and redo.
RObject::Id blockId
RColor color
RDocument * document
int drawOrder
RObject::Id layerId
RObject::Id linetypeId
double linetypeScale
RLineweight::Lineweight lineweight
RObject::Id parentId
bool selectionStatus
bool selectionStatusWorkingSet
bool updatesEnabled
class REntity

REntityData::REntityData(RDocument *document=NULL)

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.

virtual REntityData::~REntityData()

virtual inline

virtual const RShape * REntityData::castToConstShape() const

virtual inline const

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

virtual RShape * REntityData::castToShape()

virtual inline

Reimplemented in castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape, castToShape.

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

virtual inline

Called when user clicks a reference point.

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

Reimplemented in clickReferencePoint.

virtual bool REntityData::cloneOnChange() const

virtual inline const

Reimplement to force clone on change in transactions.

Reimplemented in cloneOnChange, cloneOnChange.

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

virtual bool REntityData::flipHorizontal()

virtual

Reimplemented in flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal, flipHorizontal.

virtual bool REntityData::flipVertical()

virtual

Reimplemented in flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical, flipVertical.

virtual QList< RVector > REntityData::getArcReferencePoints(const RBox &queryBox=RDEFAULT_RBOX) const

virtual const

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

Reimplemented in getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints, getArcReferencePoints.

virtual bool REntityData::getAutoUpdatesBlocked() const

virtual const

RObject::Id REntityData::getBlockId() const

inline const

QString REntityData::getBlockName() const

const

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

virtual const

Returns: The bounding box that contains this entity.

Reimplemented in getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBox.

virtual QList< RBox > REntityData::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.

Reimplemented in getBoundingBoxes, getBoundingBoxes, getBoundingBoxes.

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

virtual const

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

Reimplemented in getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints, getCenterPoints.

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

virtual const

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

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

virtual const

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

RObject::Id REntityData::getClosestSubEntityId(const RVector &pos, double range, bool ignoreComplex) const

inline const

Convenience function for scripts.

virtual RColor REntityData::getColor() const

virtual inline const

Reimplemented in getColor, getColor.

virtual RColor REntityData::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 in getColor, getColor.

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

virtual const

Reimplemented in getColor.

virtual RColor REntityData::getDisplayColor()

virtual inline

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

virtual const

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

Parameters:

  • limited: Limit lines, arcs at end points, otherwise the orthogonal distance to the unlimited line / circle is returned.
  • range: This is returned for solid filled entities (solid filled or dense hatches, text entities) if the point is on the entity and the distance would be zero.
  • draft: Calculate based on draft mode representation of the entity.
  • strictRange: If limited, this is the maximum range from either end point of the entity. Zero to only return distances that are strictly orthogonal to the entity.

Reimplemented in getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo, getDistanceTo.

RDocument * REntityData::getDocument()

inline

const RDocument * REntityData::getDocument() const

inline const

virtual int REntityData::getDrawOrder() const

virtual inline const

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

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

virtual const

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

Reimplemented in getEndPoints, getEndPoints, getEndPoints, getEndPoints, getEndPoints, getEndPoints, getEndPoints, getEndPoints, getEndPoints, getEndPoints, getEndPoints, getEndPoints.

virtual RPolyline REntityData::getHull(double offset) const

virtual const

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

Reimplemented in getHull.

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

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

Reimplemented in getInternalReferencePoints, getInternalReferencePoints.

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

virtual const

Returns: Points on entity which are intersection points with the given other entity. If same is true, the two datas originate from the same entity.

Reimplemented in getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints.

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

virtual const

Returns: Points on entity which are intersection points with the given shape.

Reimplemented in getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints, getIntersectionPoints.

RObject::Id REntityData::getLayerId() const

inline const

QString REntityData::getLayerName() const

const

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

virtual inline const

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

Reimplemented in getLinetypeId.

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

virtual const

Reimplemented in getLinetypeId.

virtual RLinetypePattern REntityData::getLinetypePattern() const

virtual const

virtual double REntityData::getLinetypeScale() const

virtual inline const

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

virtual inline const

Reimplemented in getLineweight.

virtual RLineweight::Lineweight REntityData::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 in getLineweight.

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

const

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

virtual const

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

Reimplemented in getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints, getMiddlePoints.

RObject::Id REntityData::getParentId() const

inline const

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

virtual RVector REntityData::getPointOnEntity() const

virtual const

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

Reimplemented in getPointOnEntity, getPointOnEntity, getPointOnEntity, getPointOnEntity, getPointOnEntity, getPointOnEntity.

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

virtual const

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

Reimplemented in getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd, getPointsWithDistanceToEnd.

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

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

virtual QList< QSharedPointer< RShape > > REntityData::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, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes, getShapes.

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

virtual inline const

Reimplemented in getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType, getType.

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

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

Reimplemented in getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo, getVectorTo.

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

virtual const

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

Reimplemented in intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith, intersectsWith.

virtual bool REntityData::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 REntityData::isOnEntity(const RVector &point, bool limited=true, double tolerance=RDEFAULT_TOLERANCE_1E_MIN4) const

virtual const

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

virtual bool REntityData::isPointType() const

virtual inline const

Returns: True if entity is of point nature (point, pixel based block).

Reimplemented in isPointType, isPointType.

virtual bool REntityData::isSane() const

virtual inline const

Reimplemented in isSane, isSane, isSane, isSane, isSane, isSane, isSane, isSane, isSane, isSane, isSane, isSane.

virtual bool REntityData::isSelected() const

virtual inline const

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

virtual bool REntityData::isSelectedWorkingSet() const

virtual inline const

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

virtual bool REntityData::isUpdatesEnabled() const

virtual inline const

Returns: True if the entity caches are updated when the entity is being exported.

virtual bool REntityData::isValid() const

virtual inline const

Reimplemented in isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid.

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

virtual

Reimplemented in mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror.

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

virtual

Reimplemented in mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror.

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

virtual

Moves this entity by the given offset.

Reimplemented in move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move, move.

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

pure virtual

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.

Reimplemented in moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint.

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

virtual

Reimplemented in rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate.

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

virtual

Reimplemented in scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale, scale.

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

virtual

virtual void REntityData::scaleVisualProperties(double scaleFactor)

virtual

Reimplemented in scaleVisualProperties, scaleVisualProperties, scaleVisualProperties, scaleVisualProperties.

virtual void REntityData::setAutoUpdatesBlocked(bool on)

virtual

virtual void REntityData::setBlockId(RObject::Id blockId)

virtual inline

void REntityData::setColor(const RColor &color)

inline

void REntityData::setDocument(RDocument *document)

inline

virtual void REntityData::setDrawOrder(int drawOrder)

virtual inline

Sets the draw order of this entity.

virtual void REntityData::setLayerId(RObject::Id layerId)

virtual inline

void REntityData::setLayerName(const QString &layerName)

virtual void REntityData::setLinetypeId(RObject::Id linetypeId)

virtual inline

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

See also: RDocument::getLinetypeId

virtual void REntityData::setLinetypePattern(const RLinetypePattern &p)

virtual

virtual void REntityData::setLinetypeScale(double linetypeScale)

virtual inline

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

inline

virtual void REntityData::setParentId(RObject::Id parentId)

virtual inline

virtual void REntityData::setSelected(bool on)

virtual inline

Selects or deselects this entity.

Reimplemented in setSelected.

virtual void REntityData::setSelectedWorkingSet(bool on)

virtual inline

Selects or deselects this entity for addition to the current working set.

void REntityData::setUpdatesEnabled(bool on)

inline

Enables / disables cache updates.

virtual void REntityData::setZ(double z)

virtual

Reimplemented in setZ, setZ, setZ, setZ, setZ, setZ, setZ, setZ, setZ, setZ, setZ, setZ, setZ.

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

virtual

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

Reimplemented in stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch, stretch.

virtual void REntityData::to2D()

virtual

Reimplemented in to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D.

virtual void REntityData::update() const

virtual inline const

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

Reimplemented in update, update, update, update, update, update, update.

static int REntityData::getDefaultDrawOrder()

static inline

bool REntityData::autoUpdatesBlocked

protected

Block auto updates is true during imports, undo and redo.

RObject::Id REntityData::blockId

protected

RColor REntityData::color

protected

RDocument* REntityData::document

protected

int REntityData::drawOrder

protected

RObject::Id REntityData::layerId

protected

RObject::Id REntityData::linetypeId

protected

double REntityData::linetypeScale

protected

RLineweight::Lineweight REntityData::lineweight

protected

RObject::Id REntityData::parentId

protected

bool REntityData::selectionStatus

protected

bool REntityData::selectionStatusWorkingSet

protected

bool REntityData::updatesEnabled

protected

friend class REntity

private