29 #ifndef _CONTAINER_3D_H_ 30 #define _CONTAINER_3D_H_ 32 #include "../shapes3D/object_3d.h" 66 virtual bool IntersectP(
const RAY& aRay,
float aMaxDistance )
const = 0;
78 bool IntersectP(
const RAY& aRay,
float aMaxDistance )
const override;
81 #endif // _CONTAINER_3D_H_ virtual bool IntersectP(const RAY &aRay, float aMaxDistance) const =0
Manage a bounding box defined by two SFVEC3F min max points.
virtual bool Intersect(const RAY &aRay, HITINFO &aHitInfo) const =0
const LIST_OBJECT & GetList() const
virtual ~CONTAINER_3D_BASE()
std::vector< const OBJECT_3D * > CONST_VECTOR_OBJECT
void Union(const SFVEC3F &aPoint)
Recalculate the bounding box adding a point.
std::list< OBJECT_3D * > LIST_OBJECT
bool Intersect(const RAY &aRay, HITINFO &aHitInfo) const override
bool IntersectP(const RAY &aRay, float aMaxDistance) const override
void ConvertTo(CONST_VECTOR_OBJECT &aOutVector) const
const BBOX_3D & GetBBox() const
std::vector< OBJECT_3D * > VECTOR_OBJECT
Stores the hit information of a ray with a point on the surface of a object.
const BBOX_3D & GetBBox() const
void Add(OBJECT_3D *aObject)