1 #ifndef __DIMRADIAL_H__
2 #define __DIMRADIAL_H__
7 * Holds the data that defines a radial dimension entity.
13 * Default constructor. Leaves the data object uninitialized.
18 * Constructor with initialisation.
20 * @param definitionPoint Definition point of the radial dimension.
21 * @param leader Leader length.
23 DimRadialData(const Vector& definitionPoint,
25 this->definitionPoint = definitionPoint;
26 this->leader = leader;
29 friend class DimRadial;
30 //friend class RS_ActionDimRadial;
32 friend std::ostream& operator << (std::ostream& os,
33 const DimRadialData& dd) {
34 os << "(" << dd.definitionPoint << "/" << dd.leader << ")";
39 /** Definition point. */
40 Vector definitionPoint;
46 * Class for radial dimension entities.
48 * @author Andrew Mustun
50 class DimRadial: public Dimension
53 DimRadial(EntityContainer * parent, const DimensionData & d, const DimRadialData & ed);
56 virtual Entity * clone();
57 virtual RS2::EntityType rtti() const;
58 DimRadialData getEData() const;
59 virtual VectorSolutions getRefPoints();
60 virtual QString getMeasuredLabel();
61 virtual void update(bool autoText = false);
62 Vector getDefinitionPoint();
64 virtual void move(Vector offset);
65 virtual void rotate(Vector center, double angle);
66 virtual void scale(Vector center, Vector factor);
67 virtual void mirror(Vector axisPoint1, Vector axisPoint2);
68 virtual void moveRef(const Vector& ref, const Vector& offset);
70 friend std::ostream& operator << (std::ostream& os, const DimRadial& d);