QCAD
Open Source 2D CAD
RTraceData.h
Go to the documentation of this file.
1 
20 #ifndef RTRACEDATA_H
21 #define RTRACEDATA_H
22 
23 #include "entity_global.h"
24 
25 #include "RSolidData.h"
26 
36 
37  friend class RTraceEntity;
38 
39 protected:
41 
42 public:
43  RTraceData();
44  RTraceData(const RVector& p1, const RVector& p2, const RVector& p3, const RVector& p4);
45 
46  virtual RS::EntityType getType() const {
47  return RS::EntityTrace;
48  }
49 };
50 
54 Q_DECLARE_METATYPE(QSharedPointer<RTraceData>)
55 
56 #endif
RVector
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
RS::EntityType
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:125
RObject::document
RDocument * document
Definition: RObject.h:341
QCADENTITY_EXPORT
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
RTraceEntity
Trace entity.
Definition: RTraceEntity.h:38
RTraceData::getType
virtual RS::EntityType getType() const
Definition: RTraceData.h:46
RTraceEntity::data
RTraceData data
Definition: RTraceEntity.h:148
RS::EntityTrace
@ EntityTrace
Trace.
Definition: RS.h:156
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
RDocument
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
RTraceData
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RTraceData.h:35
RSolidData
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RSolidData.h:39
entity_global.h
RSolidData.h