|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Sampler class and its sub-classes describe ray generators used in AcousticRayTracer. In these classes : More...
#include <Sampler.h>

Public Member Functions | |
| Sampler (const unsigned int &nbRays=0, const decimal &Theta=(decimal) M_PIDIV2, const decimal &Phi=(decimal) M_2PI) | |
| Default constructor. More... | |
| Sampler (const Sampler &other) | |
| Copy constructors. More... | |
| Sampler (Sampler *sampler) | |
| virtual Sampler * | Clone () |
| Clone a sample. More... | |
| virtual | ~Sampler () |
| Destructor. More... | |
| virtual vec3 | getSample () |
| Return the sample. More... | |
| virtual bool | isAcceptableSample (vec3 v) |
| Return true for an acceptable sample. More... | |
| virtual void | init () |
| Initialize the sample. More... | |
| virtual unsigned int | getNbRays () const |
| Get/Set the number of rays to launch. More... | |
| virtual void | setNbRays (const unsigned int &nbRays) |
| decimal | getTheta () const |
| Get/Set the polar angle. More... | |
| void | setTheta (const decimal &Theta) |
| decimal | getPhi () const |
| Get/Set the equatorial polar angle. More... | |
| void | setPhi (const decimal &Phi) |
| virtual unsigned int | computeDiffractionNbr (const decimal &theta) |
| Return the number of rays to launch after a diffraction event. More... | |
Protected Attributes | |
| unsigned int | _nb_rays |
| Number of rays to launch. More... | |
| decimal | _theta |
| Global polar angle. More... | |
| decimal | _phi |
| Global equatorial angle. More... | |
Sampler class and its sub-classes describe ray generators used in AcousticRayTracer. In these classes :
|
inline |
|
inlinevirtual |
Clone a sample.
Reimplemented in UniformSphericSampler2, UniformSphericSampler, UniformPlaneSampler, UniformBeamSampler, RandomSphericSampler, Longitude2DSampler, and Latitude2DSampler.
Definition at line 55 of file Sampler.h.


|
inlinevirtual |
Return the number of rays to launch after a diffraction event.
Reimplemented in UniformSphericSampler2, UniformSphericSampler, UniformBeamSampler, and RandomSphericSampler.
Definition at line 110 of file Sampler.h.

|
inlinevirtual |
|
inline |
|
inlinevirtual |
Return the sample.
Reimplemented in UniformSphericSampler2, UniformSphericSampler, UniformPlaneSampler, UniformBeamSampler, RandomSphericSampler, Longitude2DSampler, and Latitude2DSampler.
Definition at line 64 of file Sampler.h.

|
inline |
|
inlinevirtual |
Initialize the sample.
Reimplemented in UniformSphericSampler2, UniformSphericSampler, UniformPlaneSampler, UniformBeamSampler, Longitude2DSampler, and Latitude2DSampler.
Definition at line 74 of file Sampler.h.

|
inlinevirtual |
Return true for an acceptable sample.
Reimplemented in UniformSphericSampler2, UniformSphericSampler, UniformPlaneSampler, UniformBeamSampler, RandomSphericSampler, Longitude2DSampler, and Latitude2DSampler.
|
inlinevirtual |
|
inline |
|
inline |
|
protected |