src/ldtypes.h

changeset 251
c4b96bc41298
parent 232
4e44c92e21dd
child 265
955c0aabfebf
equal deleted inserted replaced
250:6e80f038e8df 251:c4b96bc41298
155 virtual bool isScemantic () const { return false; } 155 virtual bool isScemantic () const { return false; }
156 156
157 // Returns a sample object by the given value 157 // Returns a sample object by the given value
158 static LDObject* getDefault (const LDObject::Type type); 158 static LDObject* getDefault (const LDObject::Type type);
159 159
160 static void moveObjects (std::vector<LDObject*> objs, const bool bUp); 160 static void moveObjects (vector<LDObject*> objs, const bool bUp);
161 static str objectListContents (const std::vector<LDObject*>& objs); 161 static str objectListContents (const vector<LDObject*>& objs);
162 162
163 // Object list entry for this object 163 // Object list entry for this object
164 QListWidgetItem* qObjListEntry; 164 QListWidgetItem* qObjListEntry;
165 165
166 virtual bool hasMatrix () const { return false; } 166 virtual bool hasMatrix () const { return false; }
271 str fileName; // Filename of the subpart (TODO: rid this too - use fileInfo->fileName instead) 271 str fileName; // Filename of the subpart (TODO: rid this too - use fileInfo->fileName instead)
272 LDOpenFile* fileInfo; // Pointer to opened file for this subfile. null if unopened. 272 LDOpenFile* fileInfo; // Pointer to opened file for this subfile. null if unopened.
273 273
274 // Inlines this subfile. Note that return type is an array of heap-allocated 274 // Inlines this subfile. Note that return type is an array of heap-allocated
275 // LDObject-clones, they must be deleted one way or another. 275 // LDObject-clones, they must be deleted one way or another.
276 std::vector<LDObject*> inlineContents (bool deep, bool cache); 276 vector<LDObject*> inlineContents (bool deep, bool cache);
277 }; 277 };
278 278
279 // ============================================================================= 279 // =============================================================================
280 // LDLine 280 // LDLine
281 // 281 //
403 LDRadial (LDRadial::Type radType, vertex pos, matrix transform, short divs, short segs, short ringNum) : 403 LDRadial (LDRadial::Type radType, vertex pos, matrix transform, short divs, short segs, short ringNum) :
404 LDMatrixObject (transform, pos), radType (radType), divs (divs), segs (segs), ringNum (ringNum) {} 404 LDMatrixObject (transform, pos), radType (radType), divs (divs), segs (segs), ringNum (ringNum) {}
405 405
406 // Returns a set of objects that provide the equivalent of this radial. 406 // Returns a set of objects that provide the equivalent of this radial.
407 // Note: objects are heap-allocated. 407 // Note: objects are heap-allocated.
408 std::vector<LDObject*> decompose (bool applyTransform); 408 vector<LDObject*> decompose (bool applyTransform);
409 409
410 // Compose a file name for this radial. 410 // Compose a file name for this radial.
411 str makeFileName (); 411 str makeFileName ();
412 412
413 char const* radialTypeName (); 413 char const* radialTypeName ();

mercurial