src/linetypes/subfilereference.h

Sun, 19 Jan 2020 14:25:57 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 19 Jan 2020 14:25:57 +0200
changeset 25
6de5ac1fb471
parent 21
0133e565e072
child 26
3a9e761e4faa
permissions
-rw-r--r--

added debug and release to hgignore

#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