src/linetypes/subfilereference.h

Wed, 22 Jan 2020 22:43:28 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 22 Jan 2020 22:43:28 +0200
changeset 29
4cc6b582fde8
parent 26
3a9e761e4faa
child 33
4c41bfe2ec6e
permissions
-rw-r--r--

added FindGLM.cmake

#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;
	void invert() override;
private:
	Model* resolve(DocumentManager* documents) const;
	Matrix4x4 transformation;
	QString referenceName;
	bool isInverted = false;
};

mercurial