equal
deleted
inserted
replaced
|
1 #ifndef CONTAINER_H |
|
2 #define CONTAINER_H |
|
3 |
|
4 #include <vector> |
|
5 |
|
6 #include "scene.h" |
|
7 |
|
8 using namespace std; |
|
9 |
|
10 class Container |
|
11 { |
|
12 protected: |
|
13 BBox bbox; |
|
14 public: |
|
15 ShapeList shapes; |
|
16 Container(): bbox(), shapes() {}; |
|
17 virtual ~Container() {}; |
|
18 virtual void addShape(Shape* aShape); |
|
19 //void addShapeNoExtend(Shape* aShape) { shapes.push_back(aShape); }; |
|
20 virtual Shape *nearest_intersection(const Shape *origin_shape, const Ray &ray, |
|
21 Float &nearest_distance); |
|
22 virtual void optimize() {}; |
|
23 }; |
|
24 |
|
25 #endif |