114 virtual str typeName() const; // Type name of this object |
114 virtual str typeName() const; // Type name of this object |
115 virtual short vertices() const; // Number of vertices this object has |
115 virtual short vertices() const; // Number of vertices this object has |
116 |
116 |
117 static str typeName (LDObject::Type type); // Get type name by enumerator |
117 static str typeName (LDObject::Type type); // Get type name by enumerator |
118 static LDObject* getDefault (const LDObject::Type type); // Returns a sample object by the given enumerator |
118 static LDObject* getDefault (const LDObject::Type type); // Returns a sample object by the given enumerator |
119 static void moveObjects (List<LDObject*> objs, const bool up); // TODO: move this to LDFile? |
119 static void moveObjects (QList<LDObject*> objs, const bool up); // TODO: move this to LDFile? |
120 static str objectListContents (const List<LDObject*>& objs); // Get a description of a list of LDObjects |
120 static str objectListContents (const QList<LDObject*>& objs); // Get a description of a list of LDObjects |
121 static LDObject* fromID (int id); |
121 static LDObject* fromID (int id); |
122 |
122 |
123 // TODO: make these private! |
123 // TODO: make these private! |
124 // OpenGL list for this object |
124 // OpenGL list for this object |
125 uint glLists[4]; |
125 uint glLists[4]; |
299 { setLinkPointer (this); |
299 { setLinkPointer (this); |
300 } |
300 } |
301 |
301 |
302 // Inlines this subfile. Note that return type is an array of heap-allocated |
302 // Inlines this subfile. Note that return type is an array of heap-allocated |
303 // LDObject-clones, they must be deleted one way or another. |
303 // LDObject-clones, they must be deleted one way or another. |
304 List<LDObject*> inlineContents (InlineFlags flags); |
304 QList<LDObject*> inlineContents (InlineFlags flags); |
305 }; |
305 }; |
306 |
306 |
307 Q_DECLARE_OPERATORS_FOR_FLAGS (LDSubfile::InlineFlags) |
307 Q_DECLARE_OPERATORS_FOR_FLAGS (LDSubfile::InlineFlags) |
308 |
308 |
309 // ============================================================================= |
309 // ============================================================================= |