|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
20 #ifndef RSOLIDENTITY_H
21 #define RSOLIDENTITY_H
87 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
89 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
102 return data.getVertexAt(
i);
106 return data.countVertices();
110 return data.getStartPoint();
114 return data.getEndPoint();
118 return data.getDirection1();
122 return data.getDirection2();
126 return data.reverse();
130 return data.getTrimEnd(trimPoint, clickPoint);
134 return data.trimStartPoint(trimPoint, clickPoint, extend);
137 return data.trimEndPoint(trimPoint, clickPoint, extend);
141 return data.getLength();
145 return data.getExploded();
149 virtual void print(QDebug dbg)
const;
RVector getEndPoint() const
Definition: RSolidEntity.h:113
static RPropertyTypeId PropertyPoint1Z
Definition: RSolidEntity.h:57
RVector getVertexAt(int i) const
Definition: RSolidEntity.h:101
double getDirection1() const
Definition: RSolidEntity.h:117
RSolidData data
Definition: RSolidEntity.h:152
static RPropertyTypeId PropertyLinetypeScale
Definition: RSolidEntity.h:49
static RPropertyTypeId PropertyPoint3Z
Definition: RSolidEntity.h:63
static RPropertyTypeId PropertyLength
Definition: RSolidEntity.h:68
int countVertices() const
Definition: RSolidEntity.h:105
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition: RSolidEntity.h:77
static RPropertyTypeId PropertyColor
Definition: RSolidEntity.h:51
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RSolidEntity.h:41
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Ending
Entity ending.
Definition: RS.h:215
static RPropertyTypeId PropertyPoint3X
Definition: RSolidEntity.h:61
int i
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: autostart.js:49
static RPropertyTypeId PropertyDisplayedColor
Definition: RSolidEntity.h:52
static RPropertyTypeId PropertyWorkingSet
Definition: RSolidEntity.h:44
bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RSolidEntity.h:136
virtual const RSolidData & getData() const
Definition: RSolidEntity.h:97
virtual RSolidEntity * clone() const
Definition: RSolidEntity.h:81
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
static RPropertyTypeId PropertyType
Definition: RSolidEntity.h:45
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0
Exports the entity to the given exporter.
bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RSolidEntity.h:133
static RPropertyTypeId PropertyPoint2Y
Definition: RSolidEntity.h:59
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
Definition: RSolidEntity.h:129
static RPropertyTypeId PropertyProtected
Definition: RSolidEntity.h:43
static RPropertyTypeId PropertyTotalLength
Definition: RSolidEntity.h:69
static RPropertyTypeId PropertyLayer
Definition: RSolidEntity.h:47
Base class for all entity classes.
Definition: REntity.h:65
Q_DECLARE_METATYPE(RMath *)
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
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
static RPropertyTypeId PropertyPoint1X
Definition: RSolidEntity.h:55
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
static RPropertyTypeId PropertyDrawOrder
Definition: RSolidEntity.h:53
static RPropertyTypeId PropertyBlock
Definition: RSolidEntity.h:46
static RPropertyTypeId PropertyLinetype
Definition: RSolidEntity.h:48
static RPropertyTypeId PropertyPoint4Z
Definition: RSolidEntity.h:66
RVector getStartPoint() const
Definition: RSolidEntity.h:109
double getLength() const
Definition: RSolidEntity.h:140
static RPropertyTypeId PropertyPoint2Z
Definition: RSolidEntity.h:60
virtual RSolidData & getData()
Definition: RSolidEntity.h:93
static RPropertyTypeId PropertyHandle
Definition: RSolidEntity.h:42
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition: REntity.cpp:230
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
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RSolidData.h:39
static RPropertyTypeId PropertyPoint2X
Definition: RSolidEntity.h:58
static RPropertyTypeId PropertyLineweight
Definition: RSolidEntity.h:50
static const RVector invalid
invalid vector
Definition: RVector.h:322
bool reverse()
Definition: RSolidEntity.h:125
static RPropertyTypeId PropertyPoint3Y
Definition: RSolidEntity.h:62
double getDirection2() const
Definition: RSolidEntity.h:121
static RPropertyTypeId PropertyPoint1Y
Definition: RSolidEntity.h:56
Solid entity.
Definition: RSolidEntity.h:38
static RPropertyTypeId PropertyPoint4Y
Definition: RSolidEntity.h:65
QList< QSharedPointer< RShape > > getExploded() const
Definition: RSolidEntity.h:144
static RPropertyTypeId PropertyPoint4X
Definition: RSolidEntity.h:64