include/container.h
branchpyrit
changeset 82 930a2d3ecaed
parent 78 9569e9f35374
child 84 6f7fe14782c2
equal deleted inserted replaced
81:9dbb9c8c115b 82:930a2d3ecaed
    46 	virtual ~Container() {};
    46 	virtual ~Container() {};
    47 	virtual void addShape(Shape* aShape);
    47 	virtual void addShape(Shape* aShape);
    48 	//void addShapeNoExtend(Shape* aShape) { shapes.push_back(aShape); };
    48 	//void addShapeNoExtend(Shape* aShape) { shapes.push_back(aShape); };
    49 	virtual Shape *nearest_intersection(const Shape *origin_shape, const Ray &ray,
    49 	virtual Shape *nearest_intersection(const Shape *origin_shape, const Ray &ray,
    50 		Float &nearest_distance);
    50 		Float &nearest_distance);
       
    51 	virtual void packet_intersection(const Shape **origin_shapes, const Ray *rays,
       
    52 		Float *nearest_distances, Shape **nearest_shapes);
       
    53 
    51 	virtual void optimize() {};
    54 	virtual void optimize() {};
    52 
    55 
    53 	ShapeList & getShapes() { return shapes; };
    56 	ShapeList & getShapes() { return shapes; };
    54 
    57 
    55 	virtual ostream & dump(ostream &st);
    58 	virtual ostream & dump(ostream &st);