|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Another sampler class for uniform spherical sampling. More...
#include <UniformSphericSampler2.h>


Public Member Functions | |
| UniformSphericSampler2 (const unsigned int &nbRays=0, const decimal &Theta=(decimal) M_PIDIV2, const decimal &Phi=(decimal) M_2PI) | |
| Constructors. More... | |
| UniformSphericSampler2 (const UniformSphericSampler2 &other) | |
| UniformSphericSampler2 (UniformSphericSampler2 *sampler) | |
| virtual Sampler * | Clone () |
| Clone a sample. More... | |
| virtual | ~UniformSphericSampler2 () |
| 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 |
| Return the launched rays real number. 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 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 | _dr |
| Radius of elementary element of sphere. More... | |
| decimal | _phi0 |
| Angle offset between a slice and the previous on. More... | |
| decimal | _d_theta |
| Angle step along longitude. More... | |
| decimal | _d_phi |
| Angle step along given 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... | |
Another sampler class for uniform spherical sampling.
Definition at line 35 of file UniformSphericSampler2.h.
|
inline |
Constructors.
Definition at line 39 of file UniformSphericSampler2.h.
|
inline |
Definition at line 47 of file UniformSphericSampler2.h.
|
inline |
Definition at line 62 of file UniformSphericSampler2.h.
|
inlinevirtual |
Destructor.
Definition at line 83 of file UniformSphericSampler2.h.
|
inlinevirtual |
|
inlinevirtual |
Return the number of rays to launch after a diffraction event.
Reimplemented from Sampler.
Definition at line 134 of file UniformSphericSampler2.h.
|
inlineprivate |
Definition at line 140 of file UniformSphericSampler2.h.
|
inlineprivate |
Definition at line 152 of file UniformSphericSampler2.h.
|
inlineprivate |
Definition at line 147 of file UniformSphericSampler2.h.
|
inlineprivate |
Definition at line 158 of file UniformSphericSampler2.h.
|
inline |
Return the launched rays real number.
Definition at line 129 of file UniformSphericSampler2.h.
|
inlinevirtual |
Return the sample.
Reimplemented from Sampler.
Definition at line 85 of file UniformSphericSampler2.h.

|
inlinevirtual |
Initialize the sample.
Reimplemented from Sampler.
Definition at line 116 of file UniformSphericSampler2.h.
|
inlinevirtual |
Return true for an acceptable sample.
Reimplemented from Sampler.
Definition at line 111 of file UniformSphericSampler2.h.
|
private |
Angle step along given slice.
Definition at line 175 of file UniformSphericSampler2.h.
|
private |
Angle step along longitude.
Definition at line 174 of file UniformSphericSampler2.h.
|
private |
Radius of elementary element of sphere.
Definition at line 172 of file UniformSphericSampler2.h.
|
private |
Definition at line 177 of file UniformSphericSampler2.h.
|
private |
Current indices.
Definition at line 177 of file UniformSphericSampler2.h.
|
private |
Number of slices.
Definition at line 170 of file UniformSphericSampler2.h.
|
private |
Number of rays along a specific slice.
Definition at line 171 of file UniformSphericSampler2.h.
|
private |
Angle offset between a slice and the previous on.
Definition at line 173 of file UniformSphericSampler2.h.
|
private |
Real number of rays launched.
Definition at line 169 of file UniformSphericSampler2.h.
|
private |
Current angle along a longitude.
Definition at line 176 of file UniformSphericSampler2.h.