src/linetypes/subfilereference.h

changeset 21
0133e565e072
parent 18
918b6c0f8b5b
child 26
3a9e761e4faa
equal deleted inserted replaced
20:cef43609a374 21:0133e565e072
1 #pragma once 1 #pragma once
2 #include "object.h" 2 #include "object.h"
3 #include "matrix.h" 3 #include "matrix.h"
4
5 class Model;
4 6
5 namespace linetypes 7 namespace linetypes
6 { 8 {
7 class SubfileReference; 9 class SubfileReference;
8 } 10 }
10 class linetypes::SubfileReference : public ColoredObject 12 class linetypes::SubfileReference : public ColoredObject
11 { 13 {
12 public: 14 public:
13 SubfileReference() = default; 15 SubfileReference() = default;
14 SubfileReference( 16 SubfileReference(
15 const Point3D& position, 17 const Matrix4x4& transformation,
16 const Matrix3x3& transformation,
17 const QString &referenceName, 18 const QString &referenceName,
18 const Color color = colors::main); 19 const Color color = colors::main);
19 QVariant getProperty(Property property) const override; 20 QVariant getProperty(Property property) const override;
20 SetPropertyResult setProperty(Property property, const QVariant& value) override; 21 SetPropertyResult setProperty(Property property, const QVariant& value) override;
21 QString textRepresentation() const override; 22 QString textRepresentation() const override;
23 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override;
24 Point3D position() const;
22 private: 25 private:
23 Point3D position; 26 Model* resolve(DocumentManager* documents) const;
24 Matrix3x3 transformation; 27 Matrix4x4 transformation;
25 QString referenceName; 28 QString referenceName;
26 }; 29 };

mercurial