116 virtual int numVertices() const = 0; |
116 virtual int numVertices() const = 0; |
117 LDObject* previous() const; |
117 LDObject* previous() const; |
118 bool previousIsInvertnext (LDBfc*& ptr); |
118 bool previousIsInvertnext (LDBfc*& ptr); |
119 QColor randomColor() const; |
119 QColor randomColor() const; |
120 void replace (LDObject* other); |
120 void replace (LDObject* other); |
|
121 void replace (const LDObjectList& others); |
121 void select(); |
122 void select(); |
122 void setColor (LDColor color); |
123 void setColor (LDColor color); |
123 void setDocument (LDDocument* document); |
124 void setDocument (LDDocument* document); |
124 void setHidden (bool value); |
125 void setHidden (bool value); |
125 void setVertex (int i, const Vertex& vert); |
126 void setVertex (int i, const Vertex& vert); |
459 LDOBJ_NO_MATRIX |
460 LDOBJ_NO_MATRIX |
460 |
461 |
461 public: |
462 public: |
462 LDBezierCurve (const Vertex& v0, const Vertex& v1, |
463 LDBezierCurve (const Vertex& v0, const Vertex& v1, |
463 const Vertex& v2, const Vertex& v3, LDDocument* document = nullptr); |
464 const Vertex& v2, const Vertex& v3, LDDocument* document = nullptr); |
464 LDLine* toEdgeLine(); |
465 Vertex pointAt (qreal t) const; |
|
466 LDObjectList rasterize (int segments); |
465 }; |
467 }; |
466 |
468 |
467 // Other common LDraw stuff |
469 // Other common LDraw stuff |
468 static const QString CALicenseText ("!LICENSE Redistributable under CCAL version 2.0 : " |
470 static const QString CALicenseText ("!LICENSE Redistributable under CCAL version 2.0 : " |
469 "see CAreadme.txt"); |
471 "see CAreadme.txt"); |