65 Model* model() const; |
65 Model* model() const; |
66 LDPolygon* getPolygon(); |
66 LDPolygon* getPolygon(); |
67 virtual void getVertices (QSet<Vertex>& verts) const; |
67 virtual void getVertices (QSet<Vertex>& verts) const; |
68 virtual bool hasMatrix() const; // Does this object have a matrix and position? (see LDMatrixObject) |
68 virtual bool hasMatrix() const; // Does this object have a matrix and position? (see LDMatrixObject) |
69 qint32 id() const; |
69 qint32 id() const; |
70 virtual void invert(); // Inverts this object (winding is reversed) |
|
71 virtual bool isColored() const; |
70 virtual bool isColored() const; |
72 bool isHidden() const; |
71 bool isHidden() const; |
73 virtual bool isScemantic() const; // Does this object have meaning in the part model? |
72 virtual bool isScemantic() const; // Does this object have meaning in the part model? |
74 bool isSelected() const; |
73 bool isSelected() const; |
75 void move (Vertex vect); |
74 void move (Vertex vect); |
148 { |
147 { |
149 return SubclassType; |
148 return SubclassType; |
150 } |
149 } |
151 |
150 |
152 virtual QString asText() const override; |
151 virtual QString asText() const override; |
153 virtual void invert() override; |
|
154 QString reason() const; |
152 QString reason() const; |
155 QString contents() const; |
153 QString contents() const; |
156 QString fileReferenced() const; |
154 QString fileReferenced() const; |
157 void setFileReferenced (QString value); |
155 void setFileReferenced (QString value); |
158 QString objectListText() const override; |
156 QString objectListText() const override; |
236 { |
233 { |
237 return SubclassType; |
234 return SubclassType; |
238 } |
235 } |
239 |
236 |
240 virtual QString asText() const override; |
237 virtual QString asText() const override; |
241 virtual void invert() override; |
|
242 LDDocument* fileInfo() const; |
238 LDDocument* fileInfo() const; |
243 virtual void getVertices (QSet<Vertex>& verts) const override; |
239 virtual void getVertices (QSet<Vertex>& verts) const override; |
244 void inlineContents(Model& model, bool deep, bool render); |
240 void inlineContents(Model& model, bool deep, bool render); |
245 QList<LDPolygon> inlinePolygons(); |
241 QList<LDPolygon> inlinePolygons(); |
246 QString objectListText() const override; |
242 QString objectListText() const override; |
270 { |
266 { |
271 return SubclassType; |
267 return SubclassType; |
272 } |
268 } |
273 |
269 |
274 virtual QString asText() const override; |
270 virtual QString asText() const override; |
275 virtual void invert() override; |
|
276 Vertex pointAt (qreal t) const; |
271 Vertex pointAt (qreal t) const; |
277 void rasterize(Model& model, int segments); |
272 void rasterize(Model& model, int segments); |
278 QVector<LDPolygon> rasterizePolygons (int segments); |
273 QVector<LDPolygon> rasterizePolygons (int segments); |
279 int numVertices() const override { return 4; } |
274 int numVertices() const override { return 4; } |
280 LDColor defaultColor() const override { return EdgeColor; } |
275 LDColor defaultColor() const override { return EdgeColor; } |