QCAD
Open Source 2D CAD
RDimAngularEntity.h
Go to the documentation of this file.
1 
20 #ifndef RDIMANGULARENTITY_H
21 #define RDIMANGULARENTITY_H
22 
23 #include "entity_global.h"
24 
25 #include "RDimensionEntity.h"
26 #include "RDimAngularData.h"
27 
28 class RDocument;
29 class RExporter;
30 
39 
40  Q_DECLARE_TR_FUNCTIONS(RDimAngularEntity)
41 
42 public:
55 
66 
70 
74 
78 
79 public:
80  RDimAngularEntity(RDocument* document);
81  virtual ~RDimAngularEntity();
82 
83  static void init();
84 
85  virtual RDimAngularData& getData() = 0;
86  virtual const RDimAngularData& getData() const = 0;
87 
88  void setExtensionLine1End(const RVector& p) {
89  getData().setExtensionLine1End(p);
90  }
91 
93  return getData().getExtensionLine1End();
94  }
95 
96  void setExtensionLine2End(const RVector& p) {
97  getData().setExtensionLine2End(p);
98  }
99 
101  return getData().getExtensionLine2End();
102  }
103 
104  void setDimArcPosition(const RVector& p) {
105  getData().setDimArcPosition(p);
106  }
107 
109  return getData().getDimArcPosition();
110  }
111 
112 protected:
113  virtual void print(QDebug dbg) const;
114 
115 //protected:
116  //RDimAngularData data;
117 };
118 
120 Q_DECLARE_METATYPE(QSharedPointer<RDimAngularEntity>)
121 Q_DECLARE_METATYPE(QSharedPointer<RDimAngularEntity>*)
122 
123 #endif
Angular dimension entity base class.
Definition: RDimAngularEntity.h:38
static RPropertyTypeId PropertyLayer
Definition: RDimAngularEntity.h:48
static RPropertyTypeId PropertyLinetype
Definition: RDimAngularEntity.h:49
static RPropertyTypeId PropertyHandle
Definition: RDimAngularEntity.h:44
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Base class for dimension entity classes.
Definition: RDimensionEntity.h:38
static RPropertyTypeId PropertyExtensionLine2EndY
Definition: RDimAngularEntity.h:72
virtual RDimensionData & getData()=0
RVector getDimArcPosition() const
Definition: RDimAngularEntity.h:108
RVector getExtensionLine2End() const
Definition: RDimAngularEntity.h:100
void setDimArcPosition(const RVector &p)
Definition: RDimAngularEntity.h:104
static RPropertyTypeId PropertyColor
Definition: RDimAngularEntity.h:52
static RPropertyTypeId PropertyUpperTolerance
Definition: RDimAngularEntity.h:60
static RPropertyTypeId PropertyText
Definition: RDimAngularEntity.h:59
static RPropertyTypeId PropertyExtensionLine2EndX
Definition: RDimAngularEntity.h:71
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
void setExtensionLine2End(const RVector &p)
Definition: RDimAngularEntity.h:96
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPropertyTypeId.h:58
static RPropertyTypeId PropertyDimArcPositionY
Definition: RDimAngularEntity.h:76
void setExtensionLine1End(const RVector &p)
Definition: RDimAngularEntity.h:88
static RPropertyTypeId PropertyMeasuredValue
Definition: RDimAngularEntity.h:62
static RPropertyTypeId PropertyType
Definition: RDimAngularEntity.h:46
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RDimAngularEntity.h:43
static RPropertyTypeId PropertyArrow2Flipped
Definition: RDimAngularEntity.h:65
static RPropertyTypeId PropertyFontName
Definition: RDimAngularEntity.h:63
virtual void print(QDebug dbg) const
Stream operator for QDebug.
Definition: RDimensionEntity.cpp:315
static RPropertyTypeId PropertyArrow1Flipped
Definition: RDimAngularEntity.h:64
static RPropertyTypeId PropertyExtensionLine1EndZ
Definition: RDimAngularEntity.h:69
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67
static RPropertyTypeId PropertyMiddleOfTextY
Definition: RDimAngularEntity.h:57
Q_DECLARE_METATYPE(RMath *)
static RPropertyTypeId PropertyExtensionLine1EndX
Definition: RDimAngularEntity.h:67
static RPropertyTypeId PropertyExtensionLine2EndZ
Definition: RDimAngularEntity.h:73
static RPropertyTypeId PropertyDrawOrder
Definition: RDimAngularEntity.h:54
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RDimAngularData.h:38
RVector getExtensionLine1End() const
Definition: RDimAngularEntity.h:92
static RPropertyTypeId PropertyLinetypeScale
Definition: RDimAngularEntity.h:50
static RPropertyTypeId PropertyMiddleOfTextX
Definition: RDimAngularEntity.h:56
static RPropertyTypeId PropertyLowerTolerance
Definition: RDimAngularEntity.h:61
Abstract base class for exporters.
Definition: RExporter.h:71
static RPropertyTypeId PropertyDisplayedColor
Definition: RDimAngularEntity.h:53
static RPropertyTypeId PropertyLineweight
Definition: RDimAngularEntity.h:51
static RPropertyTypeId PropertyProtected
Definition: RDimAngularEntity.h:45
static RPropertyTypeId PropertyExtensionLine1EndY
Definition: RDimAngularEntity.h:68
static RPropertyTypeId PropertyBlock
Definition: RDimAngularEntity.h:47
static void init()
Definition: RDimensionEntity.cpp:70
static RPropertyTypeId PropertyMiddleOfTextZ
Definition: RDimAngularEntity.h:58
static RPropertyTypeId PropertyDimArcPositionZ
Definition: RDimAngularEntity.h:77
static RPropertyTypeId PropertyDimArcPositionX
Definition: RDimAngularEntity.h:75