X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fdimangular.h;fp=src%2Fbase%2Fdimangular.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=654e7c67a156e5a78fd7fa3313c97e0fc28a972e;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/dimangular.h b/src/base/dimangular.h deleted file mode 100644 index 654e7c6..0000000 --- a/src/base/dimangular.h +++ /dev/null @@ -1,88 +0,0 @@ -#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