include/Bounded.h
raw| 1 | #ifndef BOUNDED_H_ |
| 2 | #define BOUNDED_H_ |
| 3 | |
| 4 | #include <memory> |
| 5 | |
| 6 | /* FOWARD DECLS */ |
| 7 | class AABB; |
| 8 | |
| 9 | /** |
| 10 | * Interface for bounded objects, which maintain a local AABB. |
| 11 | */ |
| 12 | class Bounded |
| 13 | { |
| 14 | public: |
| 15 | virtual ~Bounded() {} |
| 16 | /** |
| 17 | * Return the local AABB for this object. |
| 18 | */ |
| 19 | virtual const AABB& localAABB() const = 0; |
| 20 | }; |
| 21 | typedef std::shared_ptr<Bounded> BoundedPtr; |
| 22 | |
| 23 | #endif /*BOUNDED_H_*/ |