#include <bruteforce.h>
Public Member Functions | |
BruteForceAccel (const vector< boost::shared_ptr< Primitive > > &p) | |
virtual | ~BruteForceAccel () |
virtual BBox | WorldBound () const |
virtual bool | CanIntersect () const |
virtual bool | Intersect (const Ray &ray, Intersection *isect) const |
virtual bool | IntersectP (const Ray &ray) const |
virtual void | GetPrimitives (vector< boost::shared_ptr< Primitive > > &prims) |
Static Public Member Functions | |
static Aggregate * | CreateAccelerator (const vector< boost::shared_ptr< Primitive > > &prims, const ParamSet &ps) |
Private Attributes | |
vector< boost::shared_ptr < Primitive > > | prims |
BBox | bounds |
Definition at line 31 of file bruteforce.h.
BruteForceAccel::BruteForceAccel | ( | const vector< boost::shared_ptr< Primitive > > & | p | ) |
Definition at line 34 of file bruteforce.cpp.
References bounds, CanIntersect(), p, prims, lux::Union(), and WorldBound().
Referenced by CreateAccelerator().
BruteForceAccel::~BruteForceAccel | ( | ) | [virtual] |
Definition at line 47 of file bruteforce.cpp.
virtual bool lux::BruteForceAccel::CanIntersect | ( | ) | const [inline, virtual] |
Returns whether this primitive can be intersected.
Reimplemented from lux::Aggregate.
Definition at line 37 of file bruteforce.h.
Referenced by BruteForceAccel().
Aggregate * BruteForceAccel::CreateAccelerator | ( | const vector< boost::shared_ptr< Primitive > > & | prims, | |
const ParamSet & | ps | |||
) | [static] |
Definition at line 87 of file bruteforce.cpp.
References BruteForceAccel(), and prims.
void BruteForceAccel::GetPrimitives | ( | vector< boost::shared_ptr< Primitive > > & | prims | ) | [virtual] |
Gives all primitives in this aggregate.
prims | The destination list for the primitives. |
Implements lux::Aggregate.
Definition at line 80 of file bruteforce.cpp.
References prims.
bool BruteForceAccel::Intersect | ( | const Ray & | r, | |
Intersection * | in | |||
) | const [virtual] |
Intersects this primitive with the given ray. If an intersection is found, the ray will (i.e. r.tmax) and all fields in the intersection info will be updated.
r | The ray to intersect with this primitive. | |
in | The destination of the intersection information. |
Reimplemented from lux::Primitive.
Definition at line 54 of file bruteforce.cpp.
References bounds, lux::BBox::IntersectP(), and prims.
bool BruteForceAccel::IntersectP | ( | const Ray & | r | ) | const [virtual] |
Tests for intersection of this primitive with the given ray.
r | The ray to intersect with this primitive. |
Reimplemented from lux::Primitive.
Definition at line 68 of file bruteforce.cpp.
References bounds, lux::BBox::IntersectP(), and prims.
BBox BruteForceAccel::WorldBound | ( | ) | const [virtual] |
Returns the world bounds of this primitive.
Implements lux::Primitive.
Definition at line 50 of file bruteforce.cpp.
References bounds.
Referenced by BruteForceAccel().
BBox lux::BruteForceAccel::bounds [private] |
Definition at line 48 of file bruteforce.h.
Referenced by BruteForceAccel(), Intersect(), IntersectP(), and WorldBound().
vector<boost::shared_ptr<Primitive> > lux::BruteForceAccel::prims [private] |
Definition at line 47 of file bruteforce.h.
Referenced by BruteForceAccel(), CreateAccelerator(), GetPrimitives(), Intersect(), and IntersectP().