85 virtual QSharedPointer<RObject>
clone()
const {
90 return QSharedPointer<RTraceEntity>(
new RTraceEntity(*
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 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 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
@ EntityTrace
Trace.
Definition RS.h:260
Ending
Entity ending.
Definition RS.h:323
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RTraceData.h:35
Trace entity.
Definition RTraceEntity.h:38
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
Definition RTraceEntity.h:137
static RPropertyTypeId PropertyPoint4Z
Definition RTraceEntity.h:66
static RPropertyTypeId PropertyProtected
Definition RTraceEntity.h:43
static RPropertyTypeId PropertyPoint3X
Definition RTraceEntity.h:61
virtual RTraceData & getData()
Definition RTraceEntity.h:101
static RPropertyTypeId PropertyLayer
Definition RTraceEntity.h:47
static RPropertyTypeId PropertyPoint2Y
Definition RTraceEntity.h:59
static RPropertyTypeId PropertyDisplayedColor
Definition RTraceEntity.h:52
double getDirection2() const
Definition RTraceEntity.h:129
RVector getEndPoint() const
Definition RTraceEntity.h:121
static RPropertyTypeId PropertyPoint2X
Definition RTraceEntity.h:58
static RPropertyTypeId PropertyWorkingSet
Definition RTraceEntity.h:44
virtual const RTraceData & getData() const
Definition RTraceEntity.h:105
static RPropertyTypeId PropertyLineweight
Definition RTraceEntity.h:50
RVector getStartPoint() const
Definition RTraceEntity.h:117
RTraceData data
Definition RTraceEntity.h:156
int countVertices() const
Definition RTraceEntity.h:113
static RPropertyTypeId PropertyHandle
Definition RTraceEntity.h:42
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition RTraceEntity.h:81
virtual QSharedPointer< RObject > clone() const
Definition RTraceEntity.h:85
static RPropertyTypeId PropertyPoint4Y
Definition RTraceEntity.h:65
QSharedPointer< RTraceEntity > cloneToTraceEntity() const
Definition RTraceEntity.h:89
static RPropertyTypeId PropertyPoint2Z
Definition RTraceEntity.h:60
double getLength() const
Definition RTraceEntity.h:148
static RPropertyTypeId PropertyColor
Definition RTraceEntity.h:51
static RPropertyTypeId PropertyDrawOrder
Definition RTraceEntity.h:53
static RPropertyTypeId PropertyTotalLength
Definition RTraceEntity.h:69
bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition RTraceEntity.h:141
static RPropertyTypeId PropertyLinetype
Definition RTraceEntity.h:48
static RS::EntityType getRtti()
Definition RTraceEntity.h:77
static RPropertyTypeId PropertyPoint1Y
Definition RTraceEntity.h:56
static RPropertyTypeId PropertyType
Definition RTraceEntity.h:45
static RPropertyTypeId PropertyPoint1Z
Definition RTraceEntity.h:57
RVector getVertexAt(int i) const
Definition RTraceEntity.h:109
double getDirection1() const
Definition RTraceEntity.h:125
static RPropertyTypeId PropertyLinetypeScale
Definition RTraceEntity.h:49
static RPropertyTypeId PropertyPoint3Y
Definition RTraceEntity.h:62
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RTraceEntity.h:41
static RPropertyTypeId PropertyBlock
Definition RTraceEntity.h:46
static RPropertyTypeId PropertyPoint3Z
Definition RTraceEntity.h:63
static RPropertyTypeId PropertyLength
Definition RTraceEntity.h:68
bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition RTraceEntity.h:144
bool reverse()
Definition RTraceEntity.h:133
static RPropertyTypeId PropertyPoint4X
Definition RTraceEntity.h:64
static RPropertyTypeId PropertyPoint1X
Definition RTraceEntity.h:55
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