#include <Traceable.h>
Public Member Functions | |
Traceable () | |
virtual | ~Traceable () |
virtual Intersection | intersect (Ray &r) const =0 |
virtual const AABB & | getBoundingBox () const =0 |
virtual const Point3D & | getCentroid () const =0 |
virtual void | clipPlane (Axis axis, float plane, AABB &lBox, AABB &rBox) const |
Definition at line 25 of file Traceable.h.
rcrt::Traceable::Traceable | ( | ) |
Definition at line 6 of file Traceable.cpp.
rcrt::Traceable::~Traceable | ( | ) | [virtual] |
Definition at line 11 of file Traceable.cpp.
virtual Intersection rcrt::Traceable::intersect | ( | Ray & | r | ) | const [pure virtual] |
The | ray that will be tested against. |
Implemented in rcrt::BIH< T >, rcrt::AffineObject, rcrt::DynamicObject, rcrt::AABB, rcrt::ConvexQuad, rcrt::DisplacedTriangle, rcrt::Sphere, rcrt::Triangle, rcrt::SAHKDtree< T >, rcrt::Scene, rcrt::BIH< rcrt::Primitive >, rcrt::BIH< rcrt::Traceable >, rcrt::SAHKDtree< rcrt::Primitive >, and rcrt::SAHKDtree< rcrt::Triangle >.
virtual const AABB& rcrt::Traceable::getBoundingBox | ( | ) | const [pure virtual] |
Implemented in rcrt::BIH< T >, rcrt::AffineObject, rcrt::DynamicObject, rcrt::AABB, rcrt::ConvexQuad, rcrt::Sphere, rcrt::Triangle, rcrt::SAHKDtree< T >, rcrt::Scene, rcrt::BIH< rcrt::Primitive >, rcrt::BIH< rcrt::Traceable >, rcrt::SAHKDtree< rcrt::Primitive >, and rcrt::SAHKDtree< rcrt::Triangle >.
virtual const Point3D& rcrt::Traceable::getCentroid | ( | ) | const [pure virtual] |
Implemented in rcrt::BIH< T >, rcrt::AffineObject, rcrt::DynamicObject, rcrt::AABB, rcrt::ConvexQuad, rcrt::Sphere, rcrt::Triangle, rcrt::SAHKDtree< T >, rcrt::Scene, rcrt::BIH< rcrt::Primitive >, rcrt::BIH< rcrt::Traceable >, rcrt::SAHKDtree< rcrt::Primitive >, and rcrt::SAHKDtree< rcrt::Triangle >.
void rcrt::Traceable::clipPlane | ( | Axis | axis, | |
float | plane, | |||
AABB & | lBox, | |||
AABB & | rBox | |||
) | const [virtual] |
axis | The Axis of the plane with which to clip. | |
plane | The value along the axis which describes the plane. | |
lBox | An AABB that should contain the left part (with respect to the clipping plane) of the object after calling this method. | |
rBox | An AABB that should contain the right part of the object after this method. |
Reimplemented in rcrt::AABB, and rcrt::Triangle.
Definition at line 16 of file Traceable.cpp.