src/linetypes/subfilereference.h

Sun, 19 Jan 2020 02:54:48 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 19 Jan 2020 02:54:48 +0200
changeset 22
6da867fa5429
parent 21
0133e565e072
child 26
3a9e761e4faa
permissions
-rw-r--r--

commit work on GL rendering

#pragma once
#include "object.h"
#include "matrix.h"

class Model;

namespace linetypes
{
	class SubfileReference;
}

class linetypes::SubfileReference : public ColoredObject
{
public:
	SubfileReference() = default;
	SubfileReference(
		const Matrix4x4& transformation,
		const QString &referenceName,
		const Color color = colors::main);
	QVariant getProperty(Property property) const override;
	SetPropertyResult setProperty(Property property, const QVariant& value) override;
	QString textRepresentation() const override;
	void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override;
	Point3D position() const;
private:
	Model* resolve(DocumentManager* documents) const;
	Matrix4x4 transformation;
	QString referenceName;
};

mercurial