src/ldtypes.h

changeset 551
0efe5dbcef07
parent 542
46a33bdc0b36
child 553
2418d5955421
equal deleted inserted replaced
550:d97594e3fc54 551:0efe5dbcef07
75 enum Type 75 enum Type
76 { Subfile, // Object represents a sub-file reference 76 { Subfile, // Object represents a sub-file reference
77 Quad, // Object represents a quadrilateral 77 Quad, // Object represents a quadrilateral
78 Triangle, // Object represents a triangle 78 Triangle, // Object represents a triangle
79 Line, // Object represents a line 79 Line, // Object represents a line
80 CndLine, // Object represents a conditional line 80 CondLine, // Object represents a conditional line
81 Vertex, // Object is a vertex, LDForge extension object 81 Vertex, // Object is a vertex, LDForge extension object
82 BFC, // Object represents a BFC statement 82 BFC, // Object represents a BFC statement
83 Overlay, // Object contains meta-info about an overlay image. 83 Overlay, // Object contains meta-info about an overlay image.
84 Comment, // Object represents a comment 84 Comment, // Object represents a comment
85 Error, // Object is the result of failed parsing 85 Error, // Object is the result of failed parsing
361 LDLine() {} 361 LDLine() {}
362 LDLine (vertex v1, vertex v2); 362 LDLine (vertex v1, vertex v2);
363 }; 363 };
364 364
365 // ============================================================================= 365 // =============================================================================
366 // LDCndLine 366 // LDCondLine
367 // 367 //
368 // Represents a single code-5 conditional line. The end-points v0 and v1 are 368 // Represents a single code-5 conditional line. The end-points v0 and v1 are
369 // inherited from LDLine, c0 and c1 are the control points of this line. 369 // inherited from LDLine, c0 and c1 are the control points of this line.
370 // ============================================================================= 370 // =============================================================================
371 class LDCndLine : public LDLine 371 class LDCondLine : public LDLine
372 { LDOBJ (CndLine) 372 { LDOBJ (CondLine)
373 LDOBJ_NAME (condline) 373 LDOBJ_NAME (condline)
374 LDOBJ_VERTICES (4) 374 LDOBJ_VERTICES (4)
375 LDOBJ_COLORED 375 LDOBJ_COLORED
376 LDOBJ_SCEMANTIC 376 LDOBJ_SCEMANTIC
377 LDOBJ_NO_MATRIX 377 LDOBJ_NO_MATRIX
378 378
379 public: 379 public:
380 LDCndLine() {} 380 LDCondLine() {}
381 LDLine* demote(); 381 LDLine* demote();
382 }; 382 };
383 383
384 // ============================================================================= 384 // =============================================================================
385 // LDTriangle 385 // LDTriangle

mercurial