Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
A Sampler class for random spherical sampling. More...
#include <RandomSphericSampler.h>
Public Member Functions | |
RandomSphericSampler (const unsigned int &nbRays=0, const decimal &Theta=(decimal) M_PIDIV2, const decimal &Phi=(decimal) M_2PI) | |
Constructors. More... | |
RandomSphericSampler (const RandomSphericSampler &other) | |
RandomSphericSampler (RandomSphericSampler *sampler) | |
virtual Sampler * | Clone () |
Clone a sample. More... | |
virtual | ~RandomSphericSampler () |
Destructor. More... | |
virtual vec3 | getSample () |
Return the sample. More... | |
virtual bool | isAcceptableSample (vec3 v) |
Return true for an acceptable sample. More... | |
virtual unsigned int | computeDiffractionNbr (const decimal &thetaCalcul) |
Return the number of rays to launch after a diffraction event. More... | |
Public Member Functions inherited from Sampler | |
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 () |
Destructor. 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) |
Private Attributes | |
boost::uniform_real | bounded_sampler |
Static Private Attributes | |
static boost::mt19937 | random_generator = boost::mt19937() |
Additional Inherited Members | |
Protected Attributes inherited from Sampler | |
unsigned int | _nb_rays |
Number of rays to launch. More... | |
decimal | _theta |
Global polar angle. More... | |
decimal | _phi |
Global equatorial angle. More... | |
A Sampler class for random spherical sampling.
Definition at line 36 of file RandomSphericSampler.h.
|
inline |
Constructors.
Definition at line 41 of file RandomSphericSampler.h.
|
inline |
Definition at line 48 of file RandomSphericSampler.h.
|
inline |
Definition at line 52 of file RandomSphericSampler.h.
|
inlinevirtual |
Destructor.
Definition at line 62 of file RandomSphericSampler.h.
|
inlinevirtual |
Clone a sample.
Reimplemented from Sampler.
Definition at line 56 of file RandomSphericSampler.h.
|
inlinevirtual |
Return the number of rays to launch after a diffraction event.
Reimplemented from Sampler.
Definition at line 81 of file RandomSphericSampler.h.
|
inlinevirtual |
Return the sample.
Reimplemented from Sampler.
Definition at line 64 of file RandomSphericSampler.h.
|
inlinevirtual |
Return true for an acceptable sample.
Reimplemented from Sampler.
Definition at line 79 of file RandomSphericSampler.h.
|
private |
Definition at line 90 of file RandomSphericSampler.h.
|
staticprivate |
Definition at line 88 of file RandomSphericSampler.h.