88 EOverlay, // Object contains meta-info about an overlay image. |
88 EOverlay, // Object contains meta-info about an overlay image. |
89 EComment, // Object represents a comment |
89 EComment, // Object represents a comment |
90 EError, // Object is the result of failed parsing |
90 EError, // Object is the result of failed parsing |
91 EEmpty, // Object represents an empty line |
91 EEmpty, // Object represents an empty line |
92 EUnidentified, // Unknown object type (some functions return this; TODO: they probably should not) |
92 EUnidentified, // Unknown object type (some functions return this; TODO: they probably should not) |
93 ENumTypes // Amount of object types |
93 |
|
94 ENumTypes, // Amount of object types |
|
95 EFirstType = ESubfile |
94 }; |
96 }; |
95 |
97 |
96 LDObject(); |
98 LDObject(); |
97 |
99 |
98 // Makes a copy of this object |
100 // Makes a copy of this object |
190 |
192 |
191 private: |
193 private: |
192 virtual LDObject* clone() = 0; |
194 virtual LDObject* clone() = 0; |
193 LDSharedVertex* m_coords[4]; |
195 LDSharedVertex* m_coords[4]; |
194 }; |
196 }; |
|
197 |
|
198 NUMERIC_ENUM_OPERATORS (LDObject::Type) |
195 |
199 |
196 // ============================================================================= |
200 // ============================================================================= |
197 // LDSharedVertex |
201 // LDSharedVertex |
198 // |
202 // |
199 // For use as coordinates of LDObjects. Keeps count of references. |
203 // For use as coordinates of LDObjects. Keeps count of references. |