|
HoaLibrary
2.0
High Order Ambisonics Library
|
The source. More...
#include <Source.h>
Public Member Functions | |
| Source (bool existence=true, double radius=0., double azimuth=0.) | |
| The source constructor. More... | |
| ~Source () | |
| The source destructor. More... | |
| void | setExistence (bool state) |
| Set the existence state of the source. More... | |
| void | setCoordinatesPolar (double radius, double azimuth) |
| Set the position of the source with polar coordinates. More... | |
| void | setRadius (double radius) |
| Set the radius of the source. More... | |
| void | seAzimuth (double azimuth) |
| Set the azimuth of the source. More... | |
| void | setCoordinatesCartesian (double abscissa, double ordinate) |
| Set the position of the source with cartesians coordinates. More... | |
| void | setAbscissa (double abscissa) |
| Set the abscissa of the source. More... | |
| void | setOrdinate (double ordinate) |
| Set the ordinate of the source. More... | |
| void | setColor (double red, double green, double blue, double alpha) |
| Set the color of the source. More... | |
| void | setDescription (std::string description) |
| Set the description of the source. More... | |
| void | setGroup (long groupIndex) |
| Add source to an indexed group. More... | |
| void | removeGroup (long groupIndex) |
| Remove source from an indexed group. More... | |
| void | setMaximumRadius (double limitValue) |
| Set the maximum radius of the source. More... | |
| void | setMute (bool state) |
| Set the mute state of the source. More... | |
| bool | getExistence () const |
| Get the existence state of the source. More... | |
| double | getRadius () const |
| Get the radius of the source. More... | |
| double | getAzimuth () const |
| Get the azimuth of the source. More... | |
| double | getAbscissa () const |
| Get the abscissa of the source. More... | |
| double | getOrdinate () const |
| Get the ordinate of the source. More... | |
| double * | getColor () const |
| Get the color of the source. More... | |
| std::string | getDescription () const |
| Get the description of the source. More... | |
| long | getNumberOfGroups () const |
| Get the number of group the source is owned by. More... | |
| long | getGroupIndex (long index) |
| Get the the group index the source is owned by at a particular index. More... | |
| bool | isOwnedByGroup (long groupIndex) |
| Determine if the source is owned by a particular group. More... | |
| bool | getMute () const |
| Get the mute state of the source. More... | |
The source.
The source store and manage source informations like the position, color, mute...
| Hoa2D::Source::Source | ( | bool | existence = true, |
| double | radius = 0., |
||
| double | azimuth = 0. |
||
| ) |
The source constructor.
The source constructor allocates and initialize the member values for a source.
| existence | The existence state of the source. |
| radius | The radius of the source. |
| azimuth | The azimuth of the source. |
Definition at line 11 of file Source.cpp.
| Hoa2D::Source::~Source | ( | ) |
The source destructor.
The source destructor free the memory.
Definition at line 132 of file Source.cpp.
|
inline |
Get the abscissa of the source.
|
inline |
Get the azimuth of the source.
|
inline |
|
inline |
|
inline |
Get the existence state of the source.
| long Hoa2D::Source::getGroupIndex | ( | long | index | ) |
Get the the group index the source is owned by at a particular index.
| index | The index of the group |
Definition at line 117 of file Source.cpp.
|
inline |
|
inline |
|
inline |
Get the ordinate of the source.
|
inline |
Get the radius of the source.
| bool Hoa2D::Source::isOwnedByGroup | ( | long | groupIndex | ) |
Determine if the source is owned by a particular group.
| groupIndex | The index of the group |
Definition at line 125 of file Source.cpp.
| void Hoa2D::Source::removeGroup | ( | long | groupIndex | ) |
Remove source from an indexed group.
| groupIndex | The index of the group. |
Definition at line 102 of file Source.cpp.
| void Hoa2D::Source::seAzimuth | ( | double | azimuth | ) |
Set the azimuth of the source.
| azimuth | The azimuth of the source. |
Definition at line 49 of file Source.cpp.
| void Hoa2D::Source::setAbscissa | ( | double | abscissa | ) |
Set the abscissa of the source.
| abscissa | The abscissa of the source. |
Definition at line 60 of file Source.cpp.
| void Hoa2D::Source::setColor | ( | double | red, |
| double | green, | ||
| double | blue, | ||
| double | alpha | ||
| ) |
Set the color of the source.
| red | The red component of the color. |
| green | The green component of the color |
| blue | The blue component of the color |
| alpha | The alpha component of the color |
Definition at line 74 of file Source.cpp.
| void Hoa2D::Source::setCoordinatesCartesian | ( | double | abscissa, |
| double | ordinate | ||
| ) |
Set the position of the source with cartesians coordinates.
| abscissa | The abscissa of the source. |
| ordinate | The ordinate of the source. |
Definition at line 54 of file Source.cpp.
| void Hoa2D::Source::setCoordinatesPolar | ( | double | radius, |
| double | azimuth | ||
| ) |
Set the position of the source with polar coordinates.
| radius | The radius of the source. |
| azimuth | The azimuth of the source. |
Definition at line 33 of file Source.cpp.
| void Hoa2D::Source::setDescription | ( | std::string | description | ) |
Set the description of the source.
| description | The text description of the source. |
Definition at line 82 of file Source.cpp.
| void Hoa2D::Source::setExistence | ( | bool | state | ) |
Set the existence state of the source.
| state | The existence state of the source. |
Definition at line 28 of file Source.cpp.
| void Hoa2D::Source::setGroup | ( | long | groupIndex | ) |
Add source to an indexed group.
| groupIndex | The index of the group. |
Definition at line 87 of file Source.cpp.
| void Hoa2D::Source::setMaximumRadius | ( | double | limitValue | ) |
Set the maximum radius of the source.
| limitValue | The radius limit value. |
Definition at line 23 of file Source.cpp.
| void Hoa2D::Source::setMute | ( | bool | state | ) |
Set the mute state of the source.
| state | The mute state of the source. |
Definition at line 97 of file Source.cpp.
| void Hoa2D::Source::setOrdinate | ( | double | ordinate | ) |
Set the ordinate of the source.
| ordinate | The ordinate of the source. |
Definition at line 67 of file Source.cpp.
| void Hoa2D::Source::setRadius | ( | double | radius | ) |
Set the radius of the source.
| radius | The radius of the source. |
Definition at line 39 of file Source.cpp.
1.8.5