include/container.h
branchpyrit
changeset 24 d0d76e8a5203
child 34 28f6e8b9d5d1
equal deleted inserted replaced
23:7e258561a690 24:d0d76e8a5203
       
     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