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 = ldraw::mainColor); |
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; |
|
21 QString textRepresentation() const override; |
20 QString textRepresentation() const override; |
22 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
21 void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
23 glm::vec3 position() const; |
22 glm::vec3 position() const; |
24 void invert() override; |
23 void invert() override; |
25 Model* resolve(DocumentManager* documents) const; |
24 Model* resolve(DocumentManager* documents) const; |
26 glm::mat4 transformation; |
25 glm::mat4 transformation; |
27 QString referenceName; |
26 QString referenceName; |
28 bool isInverted = false; |
27 bool isInverted = false; |
|
28 protected: |
|
29 void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair) override; |
29 }; |
30 }; |