Implements the functionalities of a source, to be derived by specific source types. More...
#include <stdr_gui_source.h>
Public Member Functions | |
CGuiSource (QPoint p, std::string name, float resolution) | |
Default contructor. | |
virtual bool | checkProximity (QPoint p) |
Checks proximity to a point. | |
virtual void | draw (QImage *img)=0 |
Draws the source in the map. | |
std::string | getName (void) |
Returns the "name" of the source. | |
virtual | ~CGuiSource (void) |
Default destructor. | |
Protected Attributes | |
std::string | name_ |
The OGM resolution. | |
QPoint | position_ |
< The position of the source in the map | |
float | resolution_ |
Implements the functionalities of a source, to be derived by specific source types.
Definition at line 40 of file stdr_gui_source.h.
stdr_gui::CGuiSource::CGuiSource | ( | QPoint | p, |
std::string | name, | ||
float | resolution | ||
) |
Default contructor.
p | [QPoint] The pose of the source |
name | [std::string] The "name" of the source |
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_source.cpp.
stdr_gui::CGuiSource::~CGuiSource | ( | void | ) | [virtual] |
bool stdr_gui::CGuiSource::checkProximity | ( | QPoint | p | ) | [virtual] |
Checks proximity to a point.
p | [QPoint] The proximity point to check |
p | [QPoint] The proximity point to check |
Definition at line 63 of file stdr_gui_source.cpp.
virtual void stdr_gui::CGuiSource::draw | ( | QImage * | img | ) | [pure virtual] |
Draws the source in the map.
img | [QImage*] The image to draw to |
Implemented in stdr_gui::CGuiRfidTag, stdr_gui::CGuiThermalSource, stdr_gui::CGuiCo2Source, and stdr_gui::CGuiSoundSource.
std::string stdr_gui::CGuiSource::getName | ( | void | ) |
Returns the "name" of the source.
Definition at line 53 of file stdr_gui_source.cpp.
std::string stdr_gui::CGuiSource::name_ [protected] |
The OGM resolution.
Definition at line 48 of file stdr_gui_source.h.
QPoint stdr_gui::CGuiSource::position_ [protected] |
< The position of the source in the map
The "name" of the source tag
Definition at line 46 of file stdr_gui_source.h.
float stdr_gui::CGuiSource::resolution_ [protected] |
Definition at line 49 of file stdr_gui_source.h.