diff -r 6e838748867b -r 20d2ed3af73d src/objecttypes/polygon.h --- a/src/objecttypes/polygon.h Sun Nov 03 18:09:47 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -#include -#include "modelobject.h" - -namespace linetypes -{ - class Triangle; - class Quadrilateral; -} - -class linetypes::Triangle : public ColoredObject -{ -public: - Triangle() = default; - Triangle( - const Vertex &point_1, - const Vertex &point_2, - const Vertex &point_3, - Color colorIndex = colors::main); - Triangle(const QVector& vertices, const Color color); - QVariant getProperty(Property id) const override; - SetPropertyResult setProperty(Property id, const QVariant& value) override; - QString textRepresentation() const override; -private: - Vertex points[3] = {{}}; -}; - -class linetypes::Quadrilateral : public ColoredObject -{ -public: - Quadrilateral() = default; - Quadrilateral( - const Vertex &point_1, - const Vertex &point_2, - const Vertex &point_3, - const Vertex &point_4, - Color colorIndex = colors::main); - Quadrilateral(const QVector& vertices, const Color color); - QVariant getProperty(Property id) const override; - SetPropertyResult setProperty(Property id, const QVariant& value) override; - QString textRepresentation() const override; -private: - Vertex points[4] = {{}}; -};