src/objecttypes/edge.h

Sat, 05 Oct 2019 23:47:03 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 05 Oct 2019 23:47:03 +0300
changeset 7
68443f5be176
parent 6
73e448b2943d
child 8
44679e468ba9
permissions
-rw-r--r--

added the settings editor

#pragma once
#include "objecttypes/modelobject.h"

namespace modelobjects
{
	class Edge;
}

class modelobjects::Edge : public ColoredBaseObject
{
public:
	using BaseClass = ColoredBaseObject;
	Edge() = default;
	Edge(const Vertex& point_1, const Vertex& point_2,
		 const Color color_index = colors::edge);
	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