src/linetypes/quadrilateral.h

Fri, 08 Nov 2019 19:05:07 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 08 Nov 2019 19:05:07 +0200
changeset 16
aeb5f203b3eb
parent 15
9e18ec63eec3
child 18
918b6c0f8b5b
permissions
-rw-r--r--

things

#pragma once
#include "object.h"

namespace linetypes
{
	class Quadrilateral;
}

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<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[4] = {{}};
};

mercurial