Public Member Functions | Protected Attributes
stdr_gui::CGuiSource Class Reference

Implements the functionalities of a source, to be derived by specific source types. More...

#include <stdr_gui_source.h>

Inheritance diagram for stdr_gui::CGuiSource:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

Implements the functionalities of a source, to be derived by specific source types.

Definition at line 40 of file stdr_gui_source.h.


Constructor & Destructor Documentation

stdr_gui::CGuiSource::CGuiSource ( QPoint  p,
std::string  name,
float  resolution 
)

Default contructor.

Parameters:
p[QPoint] The pose of the source
name[std::string] The "name" of the source
resolution[float] The map's resolution
Returns:
void
Parameters:
p[QPoint] The pose of the rfid tag
name[std::string] The "name" of the rfid tag
Returns:
void

Definition at line 32 of file stdr_gui_source.cpp.

stdr_gui::CGuiSource::~CGuiSource ( void  ) [virtual]

Default destructor.

Returns:
void

Definition at line 44 of file stdr_gui_source.cpp.


Member Function Documentation

bool stdr_gui::CGuiSource::checkProximity ( QPoint  p) [virtual]

Checks proximity to a point.

Parameters:
p[QPoint] The proximity point to check
Returns:
bool : True if source is close to p
Parameters:
p[QPoint] The proximity point to check
Returns:
bool : True if tag is close to p

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.

Parameters:
img[QImage*] The image to draw to
Returns:
void

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.

Returns:
std::string

Definition at line 53 of file stdr_gui_source.cpp.


Member Data Documentation

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.

Definition at line 49 of file stdr_gui_source.h.


The documentation for this class was generated from the following files:


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Thu Jun 6 2019 18:57:38