src/linetypes/triangle.h

Sun, 03 Nov 2019 18:17:08 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 03 Nov 2019 18:17:08 +0200
changeset 15
9e18ec63eec3
parent 14
src/linetypes/polygon.h@20d2ed3af73d
child 18
918b6c0f8b5b
permissions
-rw-r--r--

split quadrilateral and triangle into their own source files

#include "object.h"

namespace linetypes
{
	class Triangle;
}

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<Vertex>& 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] = {{}};
};

mercurial