+++ /dev/null
-#ifndef __DIMANGULAR_H__
-#define __DIMANGULAR_H__
-
-#include "dimension.h"
-
-/**
- * Holds the data that defines a angular dimension entity.
- */
-class DimAngularData
-{
- public:
- /**
- * Default constructor. Leaves the data object uninitialized.
- */
- DimAngularData() {}
-
- /**
- * Constructor with initialisation.
- *
- * @param definitionPoint Definition point of the angular dimension.
- * @param leader Leader length.
- */
- DimAngularData(const Vector& definitionPoint1, const Vector& definitionPoint2,
- const Vector& definitionPoint3, const Vector& definitionPoint4)
- {
- this->definitionPoint1 = definitionPoint1;
- this->definitionPoint2 = definitionPoint2;
- this->definitionPoint3 = definitionPoint3;
- this->definitionPoint4 = definitionPoint4;
- }
-
- friend std::ostream & operator<<(std::ostream& os, const DimAngularData & dd)
- {
- os << "(" << dd.definitionPoint1 << "/" << dd.definitionPoint2 << "/"
- << dd.definitionPoint3 << "/" << dd.definitionPoint3 << ")";
- return os;
- }
-
- public:
- /** Definition point 1. */
- Vector definitionPoint1;
- /** Definition point 2. */
- Vector definitionPoint2;
- /** Definition point 3. */
- Vector definitionPoint3;
- /** Definition point 4. */
- Vector definitionPoint4;
-};
-
-/**
- * Class for angular dimension entities.
- *
- * @author Andrew Mustun
- */
-class DimAngular: public Dimension
-{
- public:
- DimAngular(EntityContainer * parent, const DimensionData & d, const DimAngularData & ed);
- virtual ~DimAngular();
-
- virtual Entity * clone();
- virtual RS2::EntityType rtti() const;
- DimAngularData getEData() const;
- virtual QString getMeasuredLabel();
- double getAngle();
- Vector getCenter();
- bool getAngles(double & ang1, double & ang2, bool & reversed, Vector & p1, Vector & p2);
-
- virtual void update(bool autoText = false);
-
- Vector getDefinitionPoint1();
- Vector getDefinitionPoint2();
- Vector getDefinitionPoint3();
- Vector getDefinitionPoint4();
-
- virtual void move(Vector offset);
- virtual void rotate(Vector center, double angle);
- virtual void scale(Vector center, Vector factor);
- virtual void mirror(Vector axisPoint1, Vector axisPoint2);
-
- friend std::ostream & operator<<(std::ostream & os, const DimAngular & d);
-
- protected:
- /** Extended data. */
- DimAngularData edata;
-};
-
-#endif