Code_TYMPAN
4.2.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 39 of file Accelerator.h.
|
inlinevirtual |
Destructor.
Definition at line 47 of file Accelerator.h.
|
inlinevirtual |
Build this accelerator.
Reimplemented in KdtreeAccelerator, GridAccelerator, BruteForceAccelerator, and BvhAccelerator.
Definition at line 53 of file Accelerator.h.
|
inlineprotected |
To define leaf function.
Definition at line 59 of file Accelerator.h.
|
inline |
Get/Set the Intersection choice.
Definition at line 50 of file Accelerator.h.
|
inline |
Definition at line 51 of file Accelerator.h.
|
inlinevirtual |
Run this accelerator.
Reimplemented in KdtreeAccelerator, GridAccelerator, BruteForceAccelerator, and BvhAccelerator.
Definition at line 55 of file Accelerator.h.
|
protected |
Global bounding box.
Definition at line 86 of file Accelerator.h.
|
protected |
Intersection choice.
Definition at line 83 of file Accelerator.h.
|
protected |
Pointer to the treatment function of leaf.
Definition at line 81 of file Accelerator.h.
|
protected |
Vector of pointers to shapes.
Definition at line 85 of file Accelerator.h.