src/objecttypes/subfilereference.h

changeset 8
44679e468ba9
parent 6
73e448b2943d
child 13
6e838748867b
--- a/src/objecttypes/subfilereference.h	Sat Oct 05 23:47:03 2019 +0300
+++ b/src/objecttypes/subfilereference.h	Sun Nov 03 12:17:41 2019 +0200
@@ -1,19 +1,26 @@
 #pragma once
 #include "modelobject.h"
+#include "matrix.h"
 
 namespace modelobjects
 {
 	class SubfileReference;
 }
 
-class modelobjects::SubfileReference : ColoredBaseObject
+class modelobjects::SubfileReference : public ColoredBaseObject
 {
 public:
 	SubfileReference() = default;
+	SubfileReference(
+		const Vertex& position,
+		const Matrix3x3& 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;
 private:
 	Vertex position;
-	QMatrix3x3 transformation;
+	Matrix3x3 transformation;
 	QString referenceName;
 };

mercurial