Acoustic source class.
More...
#include <Source.h>
Acoustic source class.
Definition at line 32 of file Source.h.
◆ Source() [1/2]
Source::Source |
( |
std::string |
_name = "unknown source" | ) |
|
|
inline |
◆ Source() [2/2]
Source::Source |
( |
const Source & |
other | ) |
|
|
inline |
Copy constructor.
Definition at line 57 of file Source.h.
◆ ~Source()
virtual Source::~Source |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 71 of file Source.h.
◆ getDirection()
bool Source::getDirection |
( |
vec3 & |
r | ) |
|
|
inline |
Get a direction (return false if all rays has been launched)
Definition at line 103 of file Source.h.
◆ getId()
unsigned int Source::getId |
( |
| ) |
|
|
inline |
◆ getInitialRayCount()
int Source::getInitialRayCount |
( |
| ) |
|
|
inline |
Get the initial rays counter.
Definition at line 91 of file Source.h.
◆ getName()
std::string Source::getName |
( |
| ) |
|
|
inline |
◆ getNbRayLeft()
int Source::getNbRayLeft |
( |
| ) |
|
|
inline |
Get the number of remaining rays to generate.
Definition at line 87 of file Source.h.
◆ getPosition()
vec3 Source::getPosition |
( |
| ) |
|
|
inline |
◆ getSampler()
◆ getSpectre()
Get the spectrum.
Definition at line 82 of file Source.h.
◆ setId()
void Source::setId |
( |
unsigned int |
_id | ) |
|
|
inline |
◆ setInitialRayCount()
void Source::setInitialRayCount |
( |
int |
nb | ) |
|
|
inline |
Set the initial rays counter.
Definition at line 93 of file Source.h.
◆ setName()
void Source::setName |
( |
const std::string & |
_name | ) |
|
|
inline |
◆ setNbRayLeft()
void Source::setNbRayLeft |
( |
int |
nb | ) |
|
|
inline |
Set the number of remaining rays to generate.
Definition at line 89 of file Source.h.
◆ setPosition()
void Source::setPosition |
( |
const vec3 |
_pos | ) |
|
|
inline |
◆ setSampler()
void Source::setSampler |
( |
Sampler * |
_sampler | ) |
|
|
inline |
◆ setSpectre()
void Source::setSpectre |
( |
const Spectre & |
spectre | ) |
|
|
inline |
Set the spectrum.
Definition at line 84 of file Source.h.
◆ id
◆ indice
Index to know which ray we are working on.
Definition at line 150 of file Source.h.
◆ initialRayCount
int Source::initialRayCount |
|
protected |
Initial rays counter.
Definition at line 148 of file Source.h.
◆ name
◆ nbRayLeft
Number of remaining rays to generate.
Definition at line 147 of file Source.h.
◆ pos
◆ sampler
◆ spectrePuissance
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/codetympan/checkouts/latest/Tympan/geometric_methods/AcousticRaytracer/Acoustic/Source.h