lux::BruteForceAccel Class Reference

#include <bruteforce.h>

Inheritance diagram for lux::BruteForceAccel:
[legend]
Collaboration diagram for lux::BruteForceAccel:
[legend]

List of all members.

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 AggregateCreateAccelerator (const vector< boost::shared_ptr< Primitive > > &prims, const ParamSet &ps)

Private Attributes

vector< boost::shared_ptr
< Primitive > > 
prims
BBox bounds

Detailed Description

Definition at line 31 of file bruteforce.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
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.

Parameters:
r The ray to intersect with this primitive.
in The destination of the intersection information.
Returns:
Whether an intersection was found.

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.

Parameters:
r The ray to intersect with this primitive.
Returns:
Whether an intersection was found.

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().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208