Implements the functionalities of a sound source. More...
#include <stdr_gui_sound_source.h>
Public Member Functions | |
CGuiSoundSource (QPoint p, std::string name, float resolution) | |
Default contructor. More... | |
virtual void | draw (QImage *img) |
Draws the tag in the map. More... | |
float | getDb (void) |
Returns the tag message. More... | |
void | setDb (float db) |
Sets the tag message. More... | |
~CGuiSoundSource (void) | |
Default destructor. More... | |
Public Member Functions inherited from stdr_gui::CGuiSource | |
CGuiSource (QPoint p, std::string name, float resolution) | |
Default contructor. More... | |
virtual bool | checkProximity (QPoint p) |
Checks proximity to a point. More... | |
std::string | getName (void) |
Returns the "name" of the source. More... | |
virtual | ~CGuiSource (void) |
Default destructor. More... | |
Private Attributes | |
float | db_ |
Additional Inherited Members | |
Protected Attributes inherited from stdr_gui::CGuiSource | |
std::string | name_ |
The OGM resolution. More... | |
QPoint | position_ |
< The position of the source in the map More... | |
float | resolution_ |
Implements the functionalities of a sound source.
Definition at line 36 of file stdr_gui_sound_source.h.
stdr_gui::CGuiSoundSource::CGuiSoundSource | ( | QPoint | p, |
std::string | name, | ||
float | resolution | ||
) |
Default contructor.
p | [QPoint] The pose of the rfid tag |
name | [std::string] The "name" of the rfid tag |
resolution | [float] The map's resolution |
p | [QPoint] The pose of the rfid tag |
name | [std::string] The "name" of the rfid tag |
Definition at line 32 of file stdr_gui_sound_source.cpp.
stdr_gui::CGuiSoundSource::~CGuiSoundSource | ( | void | ) |
|
virtual |
Draws the tag in the map.
img | [QImage*] The image to draw to |
Implements stdr_gui::CGuiSource.
Definition at line 53 of file stdr_gui_sound_source.cpp.
float stdr_gui::CGuiSoundSource::getDb | ( | void | ) |
void stdr_gui::CGuiSoundSource::setDb | ( | float | db | ) |
Sets the tag message.
msg | [QString] The message to be set |
Definition at line 103 of file stdr_gui_sound_source.cpp.
|
private |
Definition at line 40 of file stdr_gui_sound_source.h.