src/ldtypes.h

changeset 504
6a1fa662bfc1
parent 493
16766ac1bbd9
child 506
525f6c48db83
equal deleted inserted replaced
503:bebe09014dd6 504:6a1fa662bfc1
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 // =============================================================================
385 385
386 public: 386 public:
387 LDQuad() {} 387 LDQuad() {}
388 388
389 // Split this quad into two triangles (note: heap-allocated) 389 // Split this quad into two triangles (note: heap-allocated)
390 List<LDTriangle*> splitToTriangles(); 390 QList<LDTriangle*> splitToTriangles();
391 }; 391 };
392 392
393 // ============================================================================= 393 // =============================================================================
394 // LDVertex 394 // LDVertex
395 // 395 //

mercurial