|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
A Sampler class for uniform spherical sampling. More...
#include <UniformSphericSampler.h>


Public Member Functions | |
| UniformSphericSampler (const unsigned int &nbRays=0, const decimal &Theta=(decimal) M_PIDIV2, const decimal &Phi=(decimal) M_2PI) | |
| Constructors. More... | |
| UniformSphericSampler (const UniformSphericSampler &other) | |
| UniformSphericSampler (UniformSphericSampler *sampler) | |
| virtual Sampler * | Clone () |
| Clone a sample. More... | |
| virtual | ~UniformSphericSampler () |
| 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... | |
| unsigned int | getRealNbRays () const |
| 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 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 Member Functions | |
| void | computeN1 () |
| void | computeThetaCalcul (unsigned int i) |
| void | computeN2 () |
| void | computeTrueNbRays () |
Private Attributes | |
| unsigned int | _real_nb_rays |
| Real number of rays launched. More... | |
| unsigned int | _n1 |
| Number of slices. More... | |
| unsigned int | _n2 |
| Number of rays along a specific slice. More... | |
| decimal | _thetaCalcul |
| Current angle along a longitude. More... | |
| unsigned int | _i |
| unsigned int | _j |
| Current indices. More... | |
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 uniform spherical sampling.
Definition at line 35 of file UniformSphericSampler.h.
|
inline |
Constructors.
Definition at line 39 of file UniformSphericSampler.h.
|
inline |
Definition at line 46 of file UniformSphericSampler.h.
|
inline |
Definition at line 57 of file UniformSphericSampler.h.
|
inlinevirtual |
Destructor.
Definition at line 74 of file UniformSphericSampler.h.
|
inlinevirtual |
|
inlinevirtual |
Return the number of rays to launch after a diffraction event.
Reimplemented from Sampler.
Definition at line 122 of file UniformSphericSampler.h.
|
inlineprivate |
Definition at line 129 of file UniformSphericSampler.h.
|
inlineprivate |
Definition at line 144 of file UniformSphericSampler.h.
|
inlineprivate |
Definition at line 138 of file UniformSphericSampler.h.
|
inlineprivate |
Definition at line 150 of file UniformSphericSampler.h.
|
inline |
Definition at line 117 of file UniformSphericSampler.h.
|
inlinevirtual |
Return the sample.
Reimplemented from Sampler.
Definition at line 76 of file UniformSphericSampler.h.

|
inlinevirtual |
Initialize the sample.
Reimplemented from Sampler.
Definition at line 106 of file UniformSphericSampler.h.
|
inlinevirtual |
Return true for an acceptable sample.
Reimplemented from Sampler.
Definition at line 101 of file UniformSphericSampler.h.
|
private |
Definition at line 165 of file UniformSphericSampler.h.
|
private |
Current indices.
Definition at line 165 of file UniformSphericSampler.h.
|
private |
Number of slices.
Definition at line 162 of file UniformSphericSampler.h.
|
private |
Number of rays along a specific slice.
Definition at line 163 of file UniformSphericSampler.h.
|
private |
Real number of rays launched.
Definition at line 161 of file UniformSphericSampler.h.
|
private |
Current angle along a longitude.
Definition at line 164 of file UniformSphericSampler.h.