|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
85 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
87 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
99 void setShape(
const RRay& r);
102 data.setBasePoint(p);
106 return data.getBasePoint();
110 data.setSecondPoint(p);
114 return data.getSecondPoint();
118 data.setDirectionVector(v);
122 return data.getDirectionVector();
126 return data.getAngle();
130 return data.hasFixedAngle();
134 data.setFixedAngle(on);
138 return data.getDirection1();
142 return data.getDirection2();
146 return data.reverse();
150 return data.getSideOfPoint(point);
154 return data.getTrimEnd(trimPoint, clickPoint);
158 return data.trimStartPoint(trimPoint, clickPoint, extend);
161 return data.trimEndPoint(trimPoint, clickPoint, extend);
165 return data.getLength();
169 virtual void print(QDebug dbg)
const;
static RPropertyTypeId PropertyHandle
Definition: RRayEntity.h:42
void setDirectionVectorPoint(const RVector &v)
Definition: RRayEntity.h:117
static RPropertyTypeId PropertySecondPointX
Definition: RRayEntity.h:58
static RPropertyTypeId PropertyType
Definition: RRayEntity.h:45
static RPropertyTypeId PropertyColor
Definition: RRayEntity.h:51
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RRayData.h:36
RRayData data
Definition: RRayEntity.h:172
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RRayEntity.h:41
Side
Side used for side of a point relative to an entity (right hand or left hand side)
Definition: RS.h:205
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
static RPropertyTypeId PropertyLinetype
Definition: RRayEntity.h:48
void setFixedAngle(bool on)
Definition: RRayEntity.h:133
Ending
Entity ending.
Definition: RS.h:215
virtual RRayData & getData()
Definition: RRayEntity.h:91
bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RRayEntity.h:157
bool reverse()
Definition: RRayEntity.h:145
static RPropertyTypeId PropertyLayer
Definition: RRayEntity.h:47
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
static RPropertyTypeId PropertySecondPointZ
Definition: RRayEntity.h:60
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0
Exports the entity to the given exporter.
virtual const RRayData & getData() const
Definition: RRayEntity.h:95
bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RRayEntity.h:160
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition: RRayEntity.h:75
static RPropertyTypeId PropertyDrawOrder
Definition: RRayEntity.h:53
RVector getBasePoint() const
Definition: RRayEntity.h:105
void setBasePoint(const RVector &p)
Definition: RRayEntity.h:101
double getLength() const
Definition: RRayEntity.h:164
static RPropertyTypeId PropertyBasePointZ
Definition: RRayEntity.h:57
Base class for all entity classes.
Definition: REntity.h:65
static RPropertyTypeId PropertyFixedAngle
Definition: RRayEntity.h:67
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
Definition: RRayEntity.h:153
static RPropertyTypeId PropertyDirectionY
Definition: RRayEntity.h:63
Q_DECLARE_METATYPE(RMath *)
RS::Side getSideOfPoint(const RVector &point) const
Definition: RRayEntity.h:149
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 PropertyWorkingSet
Definition: RRayEntity.h:44
bool hasFixedAngle() const
Definition: RRayEntity.h:129
static RPropertyTypeId PropertyBasePointY
Definition: RRayEntity.h:56
RVector getDirectionVector() const
Definition: RRayEntity.h:121
Abstract base class for exporters.
Definition: RExporter.h:72
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition: REntity.cpp:323
double getAngle() const
Definition: RRayEntity.h:125
static RPropertyTypeId PropertyBlock
Definition: RRayEntity.h:46
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
double getDirection1() const
Definition: RRayEntity.h:137
Low-level mathematical representation of a ray.
Definition: RRay.h:42
RVector getSecondPoint() const
Definition: RRayEntity.h:113
virtual RRayEntity * clone() const
Definition: RRayEntity.h:79
static RPropertyTypeId PropertySecondPointY
Definition: RRayEntity.h:59
static RPropertyTypeId PropertyAngle
Definition: RRayEntity.h:66
static RPropertyTypeId PropertyBasePointX
Definition: RRayEntity.h:55
void setSecondPoint(const RVector &p)
Definition: RRayEntity.h:109
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition: REntity.cpp:230
static RPropertyTypeId PropertyDisplayedColor
Definition: RRayEntity.h:52
static RPropertyTypeId PropertyLineweight
Definition: RRayEntity.h:50
static RPropertyTypeId PropertyDirectionZ
Definition: RRayEntity.h:64
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
double getDirection2() const
Definition: RRayEntity.h:141
static const RVector invalid
invalid vector
Definition: RVector.h:322
static RPropertyTypeId PropertyLinetypeScale
Definition: RRayEntity.h:49
static RPropertyTypeId PropertyProtected
Definition: RRayEntity.h:43
static RPropertyTypeId PropertyDirectionX
Definition: RRayEntity.h:62
Infinite ray entity.
Definition: RRayEntity.h:38