QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RDimRadialEntity.h
Go to the documentation of this file.
1
20#ifndef RDIMRADIALENTITY_H
21#define RDIMRADIALENTITY_H
22
23#include "entity_global.h"
24
25#include "RDimensionEntity.h"
26#include "RDimRadialData.h"
27
28class RDocument;
29class RExporter;
30
39
40 Q_DECLARE_TR_FUNCTIONS(RDimRadialEntity)
41
42public:
56
64
70 //static RPropertyTypeId PropertyDimdli;
80// static RPropertyTypeId PropertyDimaunit;
81// static RPropertyTypeId PropertyDimadec;
82// static RPropertyTypeId PropertyDimazin;
85
86// static RPropertyTypeId PropertyLinearFactor;
87// static RPropertyTypeId PropertyDimScale;
93
96
100
104
105public:
106 RDimRadialEntity(RDocument* document, const RDimRadialData& data);
107 virtual ~RDimRadialEntity();
108
109 static void init();
110
112 return RS::EntityDimRadial;
113 }
114
118
119 virtual QSharedPointer<RObject> clone() const {
120 return QSharedPointer<RObject>(new RDimRadialEntity(*this));
121 }
122
123 QSharedPointer<RDimRadialEntity> cloneToDimRadialEntity() const {
124 return QSharedPointer<RDimRadialEntity>(new RDimRadialEntity(*this));
125 }
126
127 virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant& value,
128 RTransaction* transaction=NULL);
129 virtual QPair<QVariant, RPropertyAttributes> getProperty(
130 RPropertyTypeId& propertyTypeId,
131 bool humanReadable = false, bool noAttributes = false, bool showOnRequest = false);
132
134 return data;
135 }
136
138 data = d;
139 }
140
141 virtual const RDimRadialData& getData() const {
142 return data;
143 }
144
145 void setChordPoint(const RVector& p) {
146 data.setChordPoint(p);
147 }
148
150 return data.getChordPoint();
151 }
152
153protected:
154 virtual void print(QDebug dbg) const;
155
156protected:
158};
159
161Q_DECLARE_METATYPE(QSharedPointer<RDimRadialEntity>)
162Q_DECLARE_METATYPE(QSharedPointer<RDimRadialEntity>*)
163
164#endif
Q_DECLARE_METATYPE(RMath *)
Radial dimension entity data class.
Definition RDimRadialData.h:39
Aligned dimension entity class.
Definition RDimRadialEntity.h:38
virtual const RDimRadialData & getData() const
Definition RDimRadialEntity.h:141
static RPropertyTypeId PropertyMiddleOfTextZ
Definition RDimRadialEntity.h:59
static RPropertyTypeId PropertyChordPointZ
Definition RDimRadialEntity.h:103
static RPropertyTypeId PropertyExtLineFixLength
Definition RDimRadialEntity.h:95
static RPropertyTypeId PropertyArrow1Flipped
Definition RDimRadialEntity.h:91
static RPropertyTypeId PropertyDimexo
Definition RDimRadialEntity.h:72
static RPropertyTypeId PropertyExtLineFix
Definition RDimRadialEntity.h:94
void setChordPoint(const RVector &p)
Definition RDimRadialEntity.h:145
static RPropertyTypeId PropertyChordPointX
Definition RDimRadialEntity.h:101
static RPropertyTypeId PropertyChordPointY
Definition RDimRadialEntity.h:102
static RPropertyTypeId PropertyLineweight
Definition RDimRadialEntity.h:52
static RPropertyTypeId PropertyBlock
Definition RDimRadialEntity.h:48
static RS::EntityType getRtti()
Definition RDimRadialEntity.h:111
static RPropertyTypeId PropertyLinetypeScale
Definition RDimRadialEntity.h:51
static RPropertyTypeId PropertyDimtsz
Definition RDimRadialEntity.h:75
static RPropertyTypeId PropertyDimlunit
Definition RDimRadialEntity.h:76
static RPropertyTypeId PropertyCenterPointZ
Definition RDimRadialEntity.h:99
static RPropertyTypeId PropertyHandle
Definition RDimRadialEntity.h:44
virtual QSharedPointer< RObject > clone() const
Definition RDimRadialEntity.h:119
static RPropertyTypeId PropertyDisplayedColor
Definition RDimRadialEntity.h:54
static RPropertyTypeId PropertyArrow2Flipped
Definition RDimRadialEntity.h:92
static RPropertyTypeId PropertyAutoTextPos
Definition RDimRadialEntity.h:89
static RPropertyTypeId PropertyType
Definition RDimRadialEntity.h:47
static RPropertyTypeId PropertyDimscale
Definition RDimRadialEntity.h:65
static RPropertyTypeId PropertyCenterPointX
Definition RDimRadialEntity.h:97
static RPropertyTypeId PropertyCustom
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RDimRadialEntity.h:43
static RPropertyTypeId PropertyDimlfac
Definition RDimRadialEntity.h:66
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
Definition RDimRadialEntity.h:115
static RPropertyTypeId PropertyArchTick
Definition RDimRadialEntity.h:83
static RPropertyTypeId PropertyMeasuredValue
Definition RDimRadialEntity.h:63
static RPropertyTypeId PropertyLinetype
Definition RDimRadialEntity.h:50
RDimRadialData data
Definition RDimRadialEntity.h:157
static RPropertyTypeId PropertyDimzin
Definition RDimRadialEntity.h:79
static RPropertyTypeId PropertyText
Definition RDimRadialEntity.h:60
static RPropertyTypeId PropertyLayer
Definition RDimRadialEntity.h:49
static RPropertyTypeId PropertyDimBlockName
Definition RDimRadialEntity.h:88
void setData(RDimRadialData &d)
Definition RDimRadialEntity.h:137
static RPropertyTypeId PropertyDimexe
Definition RDimRadialEntity.h:71
static RPropertyTypeId PropertyFontName
Definition RDimRadialEntity.h:90
static RPropertyTypeId PropertyUpperTolerance
Definition RDimRadialEntity.h:61
static RPropertyTypeId PropertyLowerTolerance
Definition RDimRadialEntity.h:62
static RPropertyTypeId PropertyDimtxt
Definition RDimRadialEntity.h:67
static RPropertyTypeId PropertyDimtad
Definition RDimRadialEntity.h:73
static RPropertyTypeId PropertyDimdsep
Definition RDimRadialEntity.h:78
virtual RDimRadialData & getData()
Definition RDimRadialEntity.h:133
static RPropertyTypeId PropertyDimclrt
Definition RDimRadialEntity.h:84
static RPropertyTypeId PropertyProtected
Definition RDimRadialEntity.h:45
static RPropertyTypeId PropertyMiddleOfTextY
Definition RDimRadialEntity.h:58
QSharedPointer< RDimRadialEntity > cloneToDimRadialEntity() const
Definition RDimRadialEntity.h:123
static RPropertyTypeId PropertyCenterPointY
Definition RDimRadialEntity.h:98
RVector getChordPoint() const
Definition RDimRadialEntity.h:149
static RPropertyTypeId PropertyDrawOrder
Definition RDimRadialEntity.h:55
static RPropertyTypeId PropertyDimdec
Definition RDimRadialEntity.h:77
static RPropertyTypeId PropertyDimasz
Definition RDimRadialEntity.h:69
static RPropertyTypeId PropertyColor
Definition RDimRadialEntity.h:53
static RPropertyTypeId PropertyMiddleOfTextX
Definition RDimRadialEntity.h:57
static RPropertyTypeId PropertyDimgap
Definition RDimRadialEntity.h:68
static RPropertyTypeId PropertyWorkingSet
Definition RDimRadialEntity.h:46
static RPropertyTypeId PropertyDimtih
Definition RDimRadialEntity.h:74
Base class for dimension entity classes.
Definition RDimensionEntity.h:38
virtual void print(QDebug dbg) const
Stream operator for QDebug.
Definition RDimensionEntity.cpp:607
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition RDimensionEntity.cpp:278
static void init()
Definition RDimensionEntity.cpp:103
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition RDimensionEntity.cpp:185
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
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
@ EntityDimRadial
Radial Dimension.
Definition RS.h:266
Transaction implementation.
Definition RTransaction.h:73
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADENTITY_EXPORT
Definition entity_global.h:10
#define NULL
Definition opennurbs_system.h:256