|
HoaLibrary
2.0
High Order Ambisonics Library
|
The sources group. More...
#include <SourcesGroup.h>
Public Member Functions | |
| SourcesGroup (SourcesManager *sourcesManager, bool existence) | |
| The source group constructor. More... | |
| ~SourcesGroup () | |
| The source group destructor. More... | |
| void | setExistence (bool state) |
| Set the existence state of the group. More... | |
| void | setCoordinatesPolar (double radius, double azimuth) |
| Set the position of the group with polar coordinates. More... | |
| void | setRadius (double radius) |
| Set the radius of the group. More... | |
| void | seAzimuth (double azimuth) |
| Set the azimuth of the group. More... | |
| void | setCoordinatesCartesian (double abscissa, double ordinate) |
| Set the position of the group with cartesians coordinates. More... | |
| void | setAbscissa (double abscissa) |
| Set the abscissa of the group. More... | |
| void | setOrdinate (double ordinate) |
| Set the ordinate of the group. More... | |
| void | setColor (double red, double green, double blue, double alpha) |
| Set the color of the group. More... | |
| void | setDescription (std::string description) |
| Set the description of the group. More... | |
| void | setMaximumRadius (double limitValue) |
| Set the maximum radius of the group. More... | |
| void | addSource (long sourceIndex) |
| Store a new source in this group. More... | |
| void | removeSource (long sourceIndex) |
| Remove a source from this group. More... | |
| void | sourceHasMoved () |
| Notify the group that a source has moved. More... | |
| void | setMute (long aValue) |
| Set the mute state of the group. More... | |
| void | setRelativeCoordinatesPolar (double radius, double azimuth) |
| Set the position of the group with relative polar coordinates. More... | |
| void | setRelativeRadius (double radius) |
| Set the radius of the group with a relative value. More... | |
| void | setRelativeAzimuth (double azimuth) |
| Set the azimuth of the group with a relative value. More... | |
| bool | getExistence () const |
| Get the existence state of the group. More... | |
| double | getRadius () const |
| Get the radius of the group. More... | |
| double | getAzimuth () const |
| Get the azimuth of the group. More... | |
| double | getAbscissa () const |
| Get the abscissa of the group. More... | |
| double | getOrdinate () const |
| Get the ordinate of the group. More... | |
| double * | getColor () const |
| Get the color of the group. More... | |
| std::string | getDescription () const |
| Get the description of the group. More... | |
| long | getNumberOfSources () const |
| Get the number of sources owned by this group. More... | |
| bool | getMute () const |
| Get the mute state of the group. More... | |
| long | getSourceIndex (long index) const |
| Get the the index of a source stored at a particular index by the group. More... | |
The sources group.
The SourcesGroup should be used to store and manage multiple Source
Definition at line 20 of file SourcesGroup.h.
| Hoa2D::SourcesGroup::SourcesGroup | ( | SourcesManager * | sourcesManager, |
| bool | existence | ||
| ) |
The source group constructor.
The source group constructor allocates and initialize the member values for a source group.
| sourcesManager | A SourceManager object's pointer. |
| existence | The existence state of the source. |
Definition at line 11 of file SourcesGroup.cpp.
| Hoa2D::SourcesGroup::~SourcesGroup | ( | ) |
The source group destructor.
The source group destructor free the memory.
Definition at line 370 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::addSource | ( | long | sourceIndex | ) |
Store a new source in this group.
| sourceIndex | The index of the source to store. |
Definition at line 65 of file SourcesGroup.cpp.
|
inline |
Get the abscissa of the group.
Definition at line 199 of file SourcesGroup.h.
|
inline |
Get the azimuth of the group.
Definition at line 192 of file SourcesGroup.h.
|
inline |
Get the color of the group.
Definition at line 213 of file SourcesGroup.h.
|
inline |
Get the description of the group.
Definition at line 220 of file SourcesGroup.h.
|
inline |
Get the existence state of the group.
Definition at line 178 of file SourcesGroup.h.
|
inline |
Get the mute state of the group.
Definition at line 234 of file SourcesGroup.h.
|
inline |
Get the number of sources owned by this group.
Definition at line 227 of file SourcesGroup.h.
|
inline |
Get the ordinate of the group.
Definition at line 206 of file SourcesGroup.h.
|
inline |
Get the radius of the group.
Definition at line 185 of file SourcesGroup.h.
|
inline |
Get the the index of a source stored at a particular index by the group.
| index | The index of the source. |
Definition at line 241 of file SourcesGroup.h.
| void Hoa2D::SourcesGroup::removeSource | ( | long | sourceIndex | ) |
Remove a source from this group.
| sourceIndex | The index of the source to store. |
Definition at line 82 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::seAzimuth | ( | double | azimuth | ) |
Set the azimuth of the group.
| azimuth | The azimuth of the group. |
Definition at line 311 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setAbscissa | ( | double | abscissa | ) |
Set the abscissa of the group.
| abscissa | The abscissa of the group. |
Definition at line 325 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setColor | ( | double | red, |
| double | green, | ||
| double | blue, | ||
| double | alpha | ||
| ) |
Set the color of the group.
| 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 33 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setCoordinatesCartesian | ( | double | abscissa, |
| double | ordinate | ||
| ) |
Set the position of the group with cartesians coordinates.
| abscissa | The abscissa of the group. |
| ordinate | The ordinate of the group. |
Definition at line 316 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setCoordinatesPolar | ( | double | radius, |
| double | azimuth | ||
| ) |
Set the position of the group with polar coordinates.
| radius | The radius of the group. |
| azimuth | The azimuth of the group. |
Definition at line 301 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setDescription | ( | std::string | description | ) |
Set the description of the group.
| description | The text description of the group. |
Definition at line 28 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setExistence | ( | bool | state | ) |
Set the existence state of the group.
| state | The existence state of the group. |
Definition at line 23 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setMaximumRadius | ( | double | limitValue | ) |
Set the maximum radius of the group.
| limitValue | The radius limit value. |
Definition at line 41 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setMute | ( | long | aValue | ) |
Set the mute state of the group.
| state | The mute state of the group. |
Definition at line 365 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setOrdinate | ( | double | ordinate | ) |
Set the ordinate of the group.
| ordinate | The ordinate of the group. |
Definition at line 332 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setRadius | ( | double | radius | ) |
Set the radius of the group.
| radius | The radius of the group. |
Definition at line 306 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setRelativeAzimuth | ( | double | azimuth | ) |
Set the azimuth of the group with a relative value.
| azimuth | The relative azimuth value. |
Definition at line 352 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setRelativeCoordinatesPolar | ( | double | radius, |
| double | azimuth | ||
| ) |
Set the position of the group with relative polar coordinates.
| radius | The relative radius value. |
| azimuth | The relative azimuth value. |
Definition at line 339 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::setRelativeRadius | ( | double | radius | ) |
Set the radius of the group with a relative value.
| radius | The relative radius value. |
Definition at line 345 of file SourcesGroup.cpp.
| void Hoa2D::SourcesGroup::sourceHasMoved | ( | ) |
Notify the group that a source has moved.
You need to call this function whenever a source has moved to update group information.
| sourceIndex | The index of the source to store. |
Definition at line 77 of file SourcesGroup.cpp.
1.8.5