src/linetypes/conditionaledge.h

Fri, 13 Dec 2019 15:55:56 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 13 Dec 2019 15:55:56 +0200
changeset 17
a5111f4e6412
parent 14
20d2ed3af73d
child 18
918b6c0f8b5b
permissions
-rw-r--r--

added teapot rendering

#pragma once
#include "edge.h"

namespace linetypes
{
	class ConditionalEdge;
}

class linetypes::ConditionalEdge : public Edge
{
public:
	ConditionalEdge() = default;
	ConditionalEdge(
		const Vertex& point_1,
		const Vertex& point_2,
		const Vertex& controlPoint_1,
		const Vertex& controlPoint_2,
		const Color colorIndex = colors::edge);
	ConditionalEdge(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 controlPoint_1 = {};
	Vertex controlPoint_2 = {};
};

mercurial