|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Base class for accelerators. More...
#include <Accelerator.h>


Public Member Functions | |
| Accelerator () | |
| Constructors. More... | |
| Accelerator (std::vector< Shape * > *_shapes, BBox &_globalBox) | |
| Accelerator (const Accelerator &other) | |
| Copy constructor. More... | |
| virtual | ~Accelerator () |
| Destructor. More... | |
| leafTreatment::treatment | getIntersectionChoice () |
| Get/Set the Intersection choice. More... | |
| void | setIntersectionChoice (leafTreatment::treatment _intersectionChoice=leafTreatment::FIRST) |
| virtual bool | build () |
| Build this accelerator. More... | |
| virtual decimal | traverse (Ray *r, std::list< Intersection > &result) const |
| Run this accelerator. More... | |
Protected Member Functions | |
| void | defineLeafFunction () |
| To define leaf function. More... | |
Protected Attributes | |
| decimal(* | pLeafTreatmentFunction )(std::list< Intersection > &, decimal) |
| Pointer to the treatment function of leaf. More... | |
| leafTreatment::treatment | intersectionChoice |
| Intersection choice. More... | |
| std::vector< Shape * > * | shapes |
| Vector of pointers to shapes. More... | |
| BBox | globalBox |
| Global bounding box. More... | |
Base class for accelerators.
Definition at line 26 of file Accelerator.h.
|
inline |
Constructors.
Definition at line 31 of file Accelerator.h.

|
inline |
Copy constructor.
Definition at line 42 of file Accelerator.h.
|
inlinevirtual |
Destructor.
Definition at line 50 of file Accelerator.h.
|
inlinevirtual |
Build this accelerator.
Reimplemented in KdtreeAccelerator, GridAccelerator, BvhAccelerator, and BruteForceAccelerator.
Definition at line 63 of file Accelerator.h.

|
inlineprotected |
To define leaf function.
Definition at line 75 of file Accelerator.h.


|
inline |
Get/Set the Intersection choice.
Definition at line 53 of file Accelerator.h.
|
inline |
Definition at line 57 of file Accelerator.h.


|
inlinevirtual |
Run this accelerator.
Reimplemented in KdtreeAccelerator, GridAccelerator, BvhAccelerator, and BruteForceAccelerator.
Definition at line 68 of file Accelerator.h.

|
protected |
Global bounding box.
Definition at line 103 of file Accelerator.h.
|
protected |
Intersection choice.
Definition at line 100 of file Accelerator.h.
|
protected |
Pointer to the treatment function of leaf.
Definition at line 97 of file Accelerator.h.
|
protected |
Vector of pointers to shapes.
Definition at line 102 of file Accelerator.h.