|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
86 void setShape(
const RArc& a);
90 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
92 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
108 return data.getCenter();
112 return data.getRadius();
116 data.setRadius(radius);
120 return data.getBulge();
124 return data.getStartAngle();
128 data.setStartAngle(angle);
132 return data.getEndAngle();
136 data.setEndAngle(angle);
140 return data.isReversed();
144 data.setReversed(reversed);
148 return data.getDirection1();
152 return data.getDirection2();
156 return data.getStartPoint();
160 return data.getEndPoint();
164 return data.getMiddlePoint();
168 return data.reverse();
172 return data.getSideOfPoint(point);
176 return data.getSweep();
180 return data.getTrimEnd(trimPoint, clickPoint);
184 return data.trimStartPoint(trimPoint, clickPoint, extend);
187 return data.trimEndPoint(trimPoint, clickPoint, extend);
191 return data.getLength();
194 return data.getAngleLength(allowForZeroLength);
198 return data.getAngleAt(distance, from);
202 virtual void print(QDebug dbg)
const;
static RPropertyTypeId PropertySweepAngle
Definition: RArcEntity.h:67
double getDirection1() const
Definition: RArcEntity.h:147
Side
Side used for side of a point relative to an entity (right hand or left hand side)
Definition: RS.h:205
static RPropertyTypeId PropertyType
Definition: RArcEntity.h:46
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Ending
Entity ending.
Definition: RS.h:215
Arc entity.
Definition: RArcEntity.h:39
static RPropertyTypeId PropertyProtected
Definition: RArcEntity.h:44
virtual RArcEntity * clone() const
Definition: RArcEntity.h:82
RS::Side getSideOfPoint(const RVector &point) const
Definition: RArcEntity.h:171
double getAngleLength(bool allowForZeroLength=false) const
Definition: RArcEntity.h:193
static RPropertyTypeId PropertyLinetype
Definition: RArcEntity.h:49
Low-level mathematical representation of an arc.
Definition: RArc.h:40
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0
Exports the entity to the given exporter.
virtual RArcData & getData()
Definition: RArcEntity.h:99
static RPropertyTypeId PropertyCenterX
Definition: RArcEntity.h:56
RVector getStartPoint() const
Definition: RArcEntity.h:155
static RPropertyTypeId PropertyCenterZ
Definition: RArcEntity.h:58
static RPropertyTypeId PropertyLayer
Definition: RArcEntity.h:48
static RPropertyTypeId PropertyReversed
Definition: RArcEntity.h:62
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RArcData.h:40
double getSweep() const
Definition: RArcEntity.h:175
double getDirection2() const
Definition: RArcEntity.h:151
Base class for all entity classes.
Definition: REntity.h:65
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
Definition: RArcEntity.h:179
static RPropertyTypeId PropertyDisplayedColor
Definition: RArcEntity.h:53
Q_DECLARE_METATYPE(RMath *)
double getAngleAt(double distance, RS::From from) const
Definition: RArcEntity.h:197
double getEndAngle() const
Definition: RArcEntity.h:131
static void init()
Definition: REntity.cpp:88
virtual void print(QDebug dbg) const
Stream operator for QDebug.
Definition: REntity.cpp:455
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPropertyTypeId.h:59
static RPropertyTypeId PropertyRadius
Definition: RArcEntity.h:59
double getLength() const
Definition: RArcEntity.h:190
static RPropertyTypeId PropertyLength
Definition: RArcEntity.h:65
bool isReversed() const
Definition: RArcEntity.h:139
static RPropertyTypeId PropertyLineweight
Definition: RArcEntity.h:51
double getStartAngle() const
Definition: RArcEntity.h:123
static RPropertyTypeId PropertyArea
Definition: RArcEntity.h:68
static RPropertyTypeId PropertyHandle
Definition: RArcEntity.h:43
Abstract base class for exporters.
Definition: RExporter.h:72
double getRadius() const
Definition: RArcEntity.h:111
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition: REntity.cpp:323
static RPropertyTypeId PropertyStartAngle
Definition: RArcEntity.h:60
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
static RPropertyTypeId PropertyEndAngle
Definition: RArcEntity.h:61
static RPropertyTypeId PropertyDrawOrder
Definition: RArcEntity.h:54
static RPropertyTypeId PropertyLinetypeScale
Definition: RArcEntity.h:50
void setStartAngle(double angle)
Definition: RArcEntity.h:127
virtual QSharedPointer< REntity > scaleNonUniform(const RVector &scaleFactors, const RVector ¢er=RDEFAULT_RVECTOR)
Definition: REntity.cpp:442
static RPropertyTypeId PropertyWorkingSet
Definition: RArcEntity.h:45
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RArcEntity.h:42
static RPropertyTypeId PropertyColor
Definition: RArcEntity.h:52
void setEndAngle(double angle)
Definition: RArcEntity.h:135
static RPropertyTypeId PropertyDiameter
Definition: RArcEntity.h:64
double getBulge() const
Definition: RArcEntity.h:119
static RPropertyTypeId PropertyTotalLength
Definition: RArcEntity.h:66
void setRadius(double radius)
Definition: RArcEntity.h:115
RVector getMiddlePoint() const
Definition: RArcEntity.h:163
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition: REntity.cpp:230
RVector getEndPoint() const
Definition: RArcEntity.h:159
RVector getCenter() const
Definition: RArcEntity.h:107
bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RArcEntity.h:183
void setReversed(bool reversed)
Definition: RArcEntity.h:143
Transaction implementation.
Definition: RTransaction.h:74
static QSet< RPropertyTypeId > getPropertyTypeIds(const std::type_info &classInfo, RPropertyAttributes::Option=RPropertyAttributes::NoOptions)
Gets all property type IDs that where registered for the given class.
Definition: RPropertyTypeId.cpp:273
bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RArcEntity.h:186
RArcData data
Definition: RArcEntity.h:205
static RPropertyTypeId PropertyBlock
Definition: RArcEntity.h:47
static const RVector invalid
invalid vector
Definition: RVector.h:322
From
End used to specify from which end of a shape to measure a distance.
Definition: RS.h:263
static RPropertyTypeId PropertyTotalArea
Definition: RArcEntity.h:69
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition: RArcEntity.h:78
bool reverse()
Definition: RArcEntity.h:167
static RPropertyTypeId PropertyCenterY
Definition: RArcEntity.h:57
virtual const RArcData & getData() const
Definition: RArcEntity.h:103