src/ldObject.h

changeset 1079
67c6e5d32e68
parent 1078
c72e3115a297
child 1080
6dac2d52bd9a
equal deleted inserted replaced
1078:c72e3115a297 1079:67c6e5d32e68
96 96
97 public: 97 public:
98 LDObject (Model* model = nullptr); 98 LDObject (Model* model = nullptr);
99 99
100 virtual QString asText() const = 0; // This object as LDraw code 100 virtual QString asText() const = 0; // This object as LDraw code
101 LDColor color() const; 101 LDColor color() const;
102 LDObject* createCopy() const;
103 virtual LDColor defaultColor() const = 0; // What color does the object default to? 102 virtual LDColor defaultColor() const = 0; // What color does the object default to?
104 Model* model() const; 103 Model* model() const;
105 LDPolygon* getPolygon(); 104 LDPolygon* getPolygon();
106 virtual void getVertices (QSet<Vertex>& verts) const; 105 virtual void getVertices (QSet<Vertex>& verts) const;
107 virtual bool hasMatrix() const = 0; // Does this object have a matrix and position? (see LDMatrixObject) 106 virtual bool hasMatrix() const = 0; // Does this object have a matrix and position? (see LDMatrixObject)

mercurial