85 virtual QSharedPointer<RObject>
clone()
const {
86 return QSharedPointer<RObject>(
new RFaceEntity(*
this));
90 return QSharedPointer<RFaceEntity>(
new RFaceEntity(*
this));
95 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
97 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
110 return data.getVertexAt(
i);
114 return data.countVertices();
118 return data.getStartPoint();
122 return data.getEndPoint();
126 return data.getDirection1();
130 return data.getDirection2();
134 return data.reverse();
138 return data.getTrimEnd(trimPoint, clickPoint);
142 return data.trimStartPoint(trimPoint, clickPoint, extend);
145 return data.trimEndPoint(trimPoint, clickPoint, extend);
149 return data.getLength();
153 return data.getExploded();
157 virtual void print(QDebug dbg)
const;
Q_DECLARE_METATYPE(RMath *)
int i
Copyright (c) 2011-2018 by Andrew Mustun.
Definition autostart.js:32
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Base class for all entity classes.
Definition REntity.h:63
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition REntity.cpp:236
static void init()
Definition REntity.cpp:89
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition REntity.cpp:338
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const =0
Exports the entity to the given exporter.
virtual void print(QDebug dbg) const
Stream operator for QDebug.
Definition REntity.cpp:487
Abstract base class for exporters.
Definition RExporter.h:78
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RFaceData.h:35
Face entity.
Definition RFaceEntity.h:38
static RPropertyTypeId PropertyWorkingSet
Definition RFaceEntity.h:44
static RPropertyTypeId PropertyColor
Definition RFaceEntity.h:51
static RPropertyTypeId PropertyProtected
Definition RFaceEntity.h:43
static RPropertyTypeId PropertyPoint1Y
Definition RFaceEntity.h:56
bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition RFaceEntity.h:144
static RPropertyTypeId PropertyHandle
Definition RFaceEntity.h:42
virtual const RFaceData & getData() const
Definition RFaceEntity.h:105
static RPropertyTypeId PropertyBlock
Definition RFaceEntity.h:46
static RPropertyTypeId PropertyLinetype
Definition RFaceEntity.h:48
static RPropertyTypeId PropertyTotalLength
Definition RFaceEntity.h:69
static RS::EntityType getRtti()
Definition RFaceEntity.h:77
static RPropertyTypeId PropertyPoint3X
Definition RFaceEntity.h:61
RVector getEndPoint() const
Definition RFaceEntity.h:121
double getDirection1() const
Definition RFaceEntity.h:125
double getLength() const
Definition RFaceEntity.h:148
static RPropertyTypeId PropertyPoint2Y
Definition RFaceEntity.h:59
QSharedPointer< RFaceEntity > cloneToFaceEntity() const
Definition RFaceEntity.h:89
static RPropertyTypeId PropertyDrawOrder
Definition RFaceEntity.h:53
virtual QSharedPointer< RObject > clone() const
Definition RFaceEntity.h:85
RVector getVertexAt(int i) const
Definition RFaceEntity.h:109
static RPropertyTypeId PropertyPoint2Z
Definition RFaceEntity.h:60
bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition RFaceEntity.h:141
static RPropertyTypeId PropertyLayer
Definition RFaceEntity.h:47
RFaceData data
Definition RFaceEntity.h:160
static RPropertyTypeId PropertyLength
Definition RFaceEntity.h:68
static RPropertyTypeId PropertyPoint1Z
Definition RFaceEntity.h:57
static RPropertyTypeId PropertyPoint1X
Definition RFaceEntity.h:55
int countVertices() const
Definition RFaceEntity.h:113
static RPropertyTypeId PropertyPoint3Y
Definition RFaceEntity.h:62
static RPropertyTypeId PropertyPoint4Y
Definition RFaceEntity.h:65
RVector getStartPoint() const
Definition RFaceEntity.h:117
static RPropertyTypeId PropertyLinetypeScale
Definition RFaceEntity.h:49
static RPropertyTypeId PropertyPoint4X
Definition RFaceEntity.h:64
virtual RFaceData & getData()
Definition RFaceEntity.h:101
static RPropertyTypeId PropertyPoint2X
Definition RFaceEntity.h:58
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RFaceEntity.h:41
bool reverse()
Definition RFaceEntity.h:133
double getDirection2() const
Definition RFaceEntity.h:129
static RPropertyTypeId PropertyLineweight
Definition RFaceEntity.h:50
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
Definition RFaceEntity.h:137
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition RFaceEntity.h:81
static RPropertyTypeId PropertyPoint3Z
Definition RFaceEntity.h:63
QList< QSharedPointer< RShape > > getExploded() const
Definition RFaceEntity.h:152
static RPropertyTypeId PropertyType
Definition RFaceEntity.h:45
static RPropertyTypeId PropertyDisplayedColor
Definition RFaceEntity.h:52
static RPropertyTypeId PropertyPoint4Z
Definition RFaceEntity.h:66
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyTypeId.h:54
static QSet< RPropertyTypeId > getPropertyTypeIds(RS::EntityType type, RPropertyAttributes::Option=RPropertyAttributes::NoOptions)
Gets all property type IDs that where registered for the given class.
Definition RPropertyTypeId.cpp:283
EntityType
Entity types used for property handling / filtering.
Definition RS.h:227
@ EntityFace
Face.
Definition RS.h:261
Ending
Entity ending.
Definition RS.h:323
Transaction implementation.
Definition RTransaction.h:73
Represents a 3d vector (x/y/z).
Definition RVector.h:47
static const RVector invalid
invalid vector
Definition RVector.h:335
#define QCADENTITY_EXPORT
Definition entity_global.h:10
#define NULL
Definition opennurbs_system.h:256