Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
A Sampler class for longitudinal sampling. More...
#include <Longitude2DSampler.h>
Public Member Functions | |
Longitude2DSampler (const unsigned int &nbRays=0, const decimal &Theta=(decimal) M_PIDIV2, const decimal &Phi=(decimal) M_2PI) | |
Constructors. More... | |
Longitude2DSampler (const Longitude2DSampler &other) | |
Longitude2DSampler (Longitude2DSampler *sampler) | |
virtual Sampler * | Clone () |
Clone a sample. More... | |
virtual | ~Longitude2DSampler () |
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... | |
void | setStartTheta (const decimal &startTheta) |
Set/Get starting angle theta. More... | |
decimal | getStartTheta () const |
void | setEndTheta (const decimal &endTheta) |
Set/Get ending angle theta. More... | |
decimal | getEndTheta () const |
void | setStartPhi (const decimal &startPhi) |
Set/Get starting angle phi. More... | |
decimal | getStartPhi () const |
void | setEndPhi (const decimal &endPhi) |
Set/Get ending angle phi. More... | |
decimal | getEndPhi () const |
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) |
virtual unsigned int | computeDiffractionNbr (const decimal &theta) |
Return the number of rays to launch after a diffraction event. More... | |
Private Attributes | |
decimal | _startTheta |
decimal | _endTheta |
decimal | _startPhi |
decimal | _endPhi |
decimal | _deltaTheta |
vec3 | _nMin |
unsigned int | _i |
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 longitudinal sampling.
Definition at line 32 of file Longitude2DSampler.h.
|
inline |
Constructors.
Definition at line 37 of file Longitude2DSampler.h.
|
inline |
|
inline |
|
inlinevirtual |
Destructor.
Definition at line 75 of file Longitude2DSampler.h.
|
inlinevirtual |
Clone a sample.
Reimplemented from Sampler.
Definition at line 69 of file Longitude2DSampler.h.
|
inline |
Definition at line 111 of file Longitude2DSampler.h.
|
inline |
Definition at line 105 of file Longitude2DSampler.h.
|
inlinevirtual |
Return the sample.
Reimplemented from Sampler.
Definition at line 77 of file Longitude2DSampler.h.
|
inline |
Definition at line 108 of file Longitude2DSampler.h.
|
inline |
Definition at line 102 of file Longitude2DSampler.h.
|
inlinevirtual |
Initialize the sample.
Reimplemented from Sampler.
Definition at line 90 of file Longitude2DSampler.h.
|
inlinevirtual |
Return true for an acceptable sample.
Reimplemented from Sampler.
Definition at line 89 of file Longitude2DSampler.h.
|
inline |
Set/Get ending angle phi.
Definition at line 110 of file Longitude2DSampler.h.
|
inline |
Set/Get ending angle theta.
Definition at line 104 of file Longitude2DSampler.h.
|
inline |
Set/Get starting angle phi.
Definition at line 107 of file Longitude2DSampler.h.
|
inline |
Set/Get starting angle theta.
Definition at line 101 of file Longitude2DSampler.h.
|
private |
Definition at line 118 of file Longitude2DSampler.h.
|
private |
Definition at line 117 of file Longitude2DSampler.h.
|
private |
Definition at line 115 of file Longitude2DSampler.h.
|
private |
Definition at line 120 of file Longitude2DSampler.h.
|
private |
Definition at line 119 of file Longitude2DSampler.h.
|
private |
Definition at line 116 of file Longitude2DSampler.h.
|
private |
Definition at line 114 of file Longitude2DSampler.h.