src/types.h

changeset 539
72ad83a67165
parent 538
2f85d4d286e5
child 540
0334789cb4d7
equal deleted inserted replaced
538:2f85d4d286e5 539:72ad83a67165
19 #ifndef LDFORGE_TYPES_H 19 #ifndef LDFORGE_TYPES_H
20 #define LDFORGE_TYPES_H 20 #define LDFORGE_TYPES_H
21 21
22 #include <QString> 22 #include <QString>
23 #include <QObject> 23 #include <QObject>
24 #include <QStringList>
24 #include <deque> 25 #include <deque>
25 #include "common.h" 26 #include "common.h"
26 27
27 class LDObject; 28 class LDObject;
28 29
293 // 294 //
294 // The bounding box is the box that encompasses a given set of objects. 295 // The bounding box is the box that encompasses a given set of objects.
295 // v0 is the minimum vertex, v1 is the maximum vertex. 296 // v0 is the minimum vertex, v1 is the maximum vertex.
296 // ============================================================================= 297 // =============================================================================
297 class LDBoundingBox 298 class LDBoundingBox
298 { READ_PROPERTY (bool, empty, setEmpty) 299 { PROPERTY (private, bool, Empty, BOOL_OPS, NO_CB)
299 READ_PROPERTY (vertex, v0, setV0) 300 PROPERTY (private, vertex, Vertex0, NO_OPS, NO_CB)
300 READ_PROPERTY (vertex, v1, setV1) 301 PROPERTY (private, vertex, Vertex1, NO_OPS, NO_CB)
301 302
302 public: 303 public:
303 LDBoundingBox(); 304 LDBoundingBox();
304 void reset(); 305 void reset();
305 void calculate(); 306 void calculate();

mercurial