Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
A Sampler class for latitude sampling. More...
#include <Latitude2DSampler.h>
Public Member Functions | |
Latitude2DSampler (const unsigned int &nbRays=0, const decimal &Theta=(decimal) M_PIDIV2, const decimal &Phi=(decimal) M_2PI) | |
Constructors. More... | |
Latitude2DSampler (const Latitude2DSampler &other) | |
Latitude2DSampler (Latitude2DSampler *sampler) | |
virtual Sampler * | Clone () |
Clone a sample. More... | |
virtual | ~Latitude2DSampler () |
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 starting angle theta. More... | |
decimal | getStartTheta () const |
Get starting angle theta. More... | |
void | setEndTheta (const decimal &endTheta) |
Set ending angle theta. More... | |
decimal | getEndTheta () const |
Get ending angle theta. More... | |
void | setStartPhi (const decimal &startPhi) |
Set starting angle phi. More... | |
decimal | getStartPhi () const |
Get starting angle phi. More... | |
void | setEndPhi (const decimal &endPhi) |
Set ending angle phi. More... | |
decimal | getEndPhi () const |
Get ending angle phi. 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) |
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 | _deltaPhi |
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 latitude sampling.
Definition at line 32 of file Latitude2DSampler.h.
|
inline |
Constructors.
Definition at line 37 of file Latitude2DSampler.h.
|
inline |
|
inline |
|
inlinevirtual |
Destructor.
Definition at line 74 of file Latitude2DSampler.h.
|
inlinevirtual |
Clone a sample.
Reimplemented from Sampler.
Definition at line 68 of file Latitude2DSampler.h.
|
inline |
Get ending angle phi.
Definition at line 114 of file Latitude2DSampler.h.
|
inline |
Get ending angle theta.
Definition at line 106 of file Latitude2DSampler.h.
|
inlinevirtual |
Return the sample.
Reimplemented from Sampler.
Definition at line 76 of file Latitude2DSampler.h.
|
inline |
Get starting angle phi.
Definition at line 110 of file Latitude2DSampler.h.
|
inline |
Get starting angle theta.
Definition at line 102 of file Latitude2DSampler.h.
|
inlinevirtual |
Initialize the sample.
Reimplemented from Sampler.
Definition at line 87 of file Latitude2DSampler.h.
|
inlinevirtual |
Return true for an acceptable sample.
Reimplemented from Sampler.
Definition at line 86 of file Latitude2DSampler.h.
|
inline |
Set ending angle phi.
Definition at line 112 of file Latitude2DSampler.h.
|
inline |
Set ending angle theta.
Definition at line 104 of file Latitude2DSampler.h.
|
inline |
Set starting angle phi.
Definition at line 108 of file Latitude2DSampler.h.
|
inline |
Set starting angle theta.
Definition at line 100 of file Latitude2DSampler.h.
|
private |
Definition at line 121 of file Latitude2DSampler.h.
|
private |
Definition at line 120 of file Latitude2DSampler.h.
|
private |
Definition at line 118 of file Latitude2DSampler.h.
|
private |
Definition at line 122 of file Latitude2DSampler.h.
|
private |
Definition at line 119 of file Latitude2DSampler.h.
|
private |
Definition at line 117 of file Latitude2DSampler.h.