1 #pragma once |
1 #pragma once |
2 #include "object.h" |
2 #include "object.h" |
3 |
3 |
4 class Model; |
4 class Model; |
5 |
5 |
6 namespace linetypes |
6 namespace ldraw |
7 { |
7 { |
8 class SubfileReference; |
8 class SubfileReference; |
9 } |
9 } |
10 |
10 |
11 class linetypes::SubfileReference : public ColoredObject |
11 class ldraw::SubfileReference : public ColoredObject |
12 { |
12 { |
13 public: |
13 public: |
14 SubfileReference() = default; |
14 SubfileReference() = default; |
15 SubfileReference( |
15 SubfileReference( |
16 const glm::mat4& transformation, |
16 const glm::mat4& transformation, |
17 const QString &referenceName, |
17 const QString &referenceName, |
18 const Color color = colors::main); |
18 const Color color = ldraw::mainColor); |
19 QVariant getProperty(Property property) const override; |
19 QVariant getProperty(Property property) const override; |
20 SetPropertyResult setProperty(Property property, const QVariant& value) override; |
20 SetPropertyResult setProperty(Property property, const QVariant& value) override; |
21 QString textRepresentation() const override; |
21 QString textRepresentation() const override; |
22 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
22 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
23 glm::vec3 position() const; |
23 glm::vec3 position() const; |