src/ldObject.h

changeset 1031
55c0d3beea0d
parent 1028
5877e49e9a28
child 1033
32153a1dbb15
equal deleted inserted replaced
1030:d931a7547578 1031:55c0d3beea0d
99 virtual LDColor defaultColor() const = 0; // What color does the object default to? 99 virtual LDColor defaultColor() const = 0; // What color does the object default to?
100 void deselect(); 100 void deselect();
101 void destroy(); 101 void destroy();
102 LDDocument* document() const; 102 LDDocument* document() const;
103 LDPolygon* getPolygon(); 103 LDPolygon* getPolygon();
104 virtual void getVertices (QVector<Vertex>& verts) const; 104 virtual void getVertices (QSet<Vertex>& verts) const;
105 virtual bool hasMatrix() const = 0; // Does this object have a matrix and position? (see LDMatrixObject) 105 virtual bool hasMatrix() const = 0; // Does this object have a matrix and position? (see LDMatrixObject)
106 qint32 id() const; 106 qint32 id() const;
107 virtual void invert() = 0; // Inverts this object (winding is reversed) 107 virtual void invert() = 0; // Inverts this object (winding is reversed)
108 virtual bool isColored() const = 0; 108 virtual bool isColored() const = 0;
109 bool isDestroyed() const; 109 bool isDestroyed() const;
316 LDOBJ_HAS_MATRIX 316 LDOBJ_HAS_MATRIX
317 317
318 public: 318 public:
319 // Inlines this subfile. 319 // Inlines this subfile.
320 LDDocument* fileInfo() const; 320 LDDocument* fileInfo() const;
321 virtual void getVertices (QVector<Vertex>& verts) const override; 321 virtual void getVertices (QSet<Vertex>& verts) const override;
322 LDObjectList inlineContents (bool deep, bool render); 322 LDObjectList inlineContents (bool deep, bool render);
323 QList<LDPolygon> inlinePolygons(); 323 QList<LDPolygon> inlinePolygons();
324 void setFileInfo (LDDocument* fileInfo); 324 void setFileInfo (LDDocument* fileInfo);
325 int triangleCount() const override; 325 int triangleCount() const override;
326 326

mercurial