294 // |
294 // |
295 // 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. |
296 // v0 is the minimum vertex, v1 is the maximum vertex. |
296 // v0 is the minimum vertex, v1 is the maximum vertex. |
297 // ============================================================================= |
297 // ============================================================================= |
298 class LDBoundingBox |
298 class LDBoundingBox |
299 { PROPERTY (private, bool, Empty, BOOL_OPS, NO_CB) |
299 { PROPERTY (private, bool, Empty, BOOL_OPS, STOCK_WRITE) |
300 PROPERTY (private, vertex, Vertex0, NO_OPS, NO_CB) |
300 PROPERTY (private, vertex, Vertex0, NO_OPS, STOCK_WRITE) |
301 PROPERTY (private, vertex, Vertex1, NO_OPS, NO_CB) |
301 PROPERTY (private, vertex, Vertex1, NO_OPS, STOCK_WRITE) |
302 |
302 |
303 public: |
303 public: |
304 LDBoundingBox(); |
304 LDBoundingBox(); |
305 void reset(); |
305 void reset(); |
306 void calculate(); |
306 void calculate(); |