|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
54 double getDimasz()
const;
55 void setDimaszOverride(
double v);
58 void setDimScaleOverride(
double v);
67 bool canHaveArrowHead()
const;
68 bool updateArrowHead()
const;
105 virtual QList<QSharedPointer<RShape> >
getShapes(
const RBox& queryBox =
RDEFAULT_RBOX,
bool ignoreComplex =
false,
bool segment =
false)
const {
107 Q_UNUSED(ignoreComplex)
110 QList<QSharedPointer<RShape> > ret;
111 ret << QSharedPointer<RShape>(
new RPolyline(*
this));
113 ret << QSharedPointer<RShape>(
new RTriangle(getArrowShape()));
123 virtual void update()
const;
virtual void update() const
Entities can reimplement this function to invalidate any internal cache (mark the entity as dirty).
Definition: REntityData.h:408
void appendVertex(const RVector &vertex, double bulge=0.0, double w1=0.0, double w2=0.0)
Definition: RPolyline.cpp:335
virtual bool stretch(const RPolyline &area, const RVector &offset)
Stretches the end points of this entity that are inside area by offset.
Definition: REntityData.cpp:636
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RLeaderData.h:37
void appendVertex(const RVector &vertex)
Definition: RLeaderData.h:90
RPolyline()
Creates a polyline object without points.
Definition: RPolyline.cpp:36
RVector getStartPoint() const
Definition: RLeaderData.h:78
int countVertices() const
Definition: RPolyline.cpp:563
virtual void scaleVisualProperties(double scaleFactor)
Definition: REntityData.cpp:605
bool hasArrowHead() const
Definition: RLeaderData.h:63
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
virtual RS::EntityType getType() const
Definition: RLeaderData.h:47
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:125
REntity::Id getDimLeaderBlockId() const
Definition: RLeaderEntity.h:195
double dimScaleOverride
Dimension scale.
Definition: RLeaderData.h:131
RDocument * document
Definition: RObject.h:341
Leader entity class.
Definition: RLeaderEntity.h:38
virtual RVector getStartPoint() const
Definition: RPolyline.cpp:1335
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
Interface for geometrical shape classes.
Definition: RShape.h:72
virtual QList< QSharedPointer< RShape > > getExploded(int segments=RDEFAULT_MIN1) const
Definition: RPolyline.cpp:1078
double dimaszOverride
Arrow size.
Definition: RLeaderData.h:129
Q_DECLARE_METATYPE(RMath *)
@ EntityLeader
Leader.
Definition: RS.h:171
bool arrowHead
Arrow head on / off.
Definition: RLeaderData.h:127
virtual QList< RRefPoint > getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const =0
virtual QList< QSharedPointer< RShape > > getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false) const
Definition: RLeaderData.h:105
Base class for all entity data classes.
Definition: REntityData.h:67
#define RDEFAULT_MIN1
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RExplodable.h:30
int Id
Definition: RObject.h:66
void setArrowHead(bool on)
Definition: RLeaderEntity.h:97
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
Low-level mathematical representation of a triangle.
Definition: RTriangle.h:46
virtual bool scale(const RVector &scaleFactors, const RVector ¢er=RDEFAULT_RVECTOR)
Definition: REntityData.cpp:591
void setDimLeaderBlockId(REntity::Id id)
Definition: RLeaderEntity.h:198
QList< QSharedPointer< RShape > > getExploded(int segments=RDEFAULT_MIN1) const
Definition: RLeaderData.h:98
virtual RShape * castToShape()
Definition: RLeaderData.h:50
int countSegments() const
Definition: RLeaderData.h:86
virtual RVector getEndPoint() const
Definition: RPolyline.cpp:1343
RLeaderData data
Definition: RLeaderEntity.h:208
int countSegments() const
Definition: RPolyline.cpp:1126
ProjectionRenderingHint
Sets the current rendering hint for exports.
Definition: RS.h:185
#define RDEFAULT_RBOX
Definition: RBox.h:32
int countVertices() const
Definition: RLeaderData.h:82
@ RenderTop
Definition: RS.h:186
Represents a box e.g.
Definition: RBox.h:43
RVector getEndPoint() const
Definition: RLeaderData.h:74
Low-level mathematical representation of an open polyline or closed polyline (= polygon).
Definition: RPolyline.h:49
RBlock::Id dimLeaderBlockId
Block to use instead of arrow.
Definition: RLeaderData.h:133
virtual bool moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint, Qt::KeyboardModifiers modifiers=Qt::NoModifier)=0
Moves the given reference point to the given target point or does nothing if this entity has no refer...
double getDimScale(bool fromDocument=true) const
Definition: RLeaderEntity.h:187