src/linetypes/edge.h

changeset 14
20d2ed3af73d
parent 13
6e838748867b
child 18
918b6c0f8b5b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/linetypes/edge.h	Sun Nov 03 18:13:38 2019 +0200
@@ -0,0 +1,25 @@
+#pragma once
+#include "object.h"
+
+namespace linetypes
+{
+	class Edge;
+}
+
+class linetypes::Edge : public ColoredObject
+{
+public:
+	using BaseClass = ColoredObject;
+	Edge() = default;
+	Edge(const Vertex& point_1, const Vertex& point_2,
+		 const Color colorIndex = colors::edge);
+	Edge(const QVector<Vertex>& vertices, const Color color);
+	QVariant getProperty(Property property) const override;
+	SetPropertyResult setProperty(
+		Property property,
+		const QVariant& value) override;
+	QString textRepresentation() const override;
+private:
+	Vertex point_1 = {};
+	Vertex point_2 = {};
+};

mercurial