Public Member Functions | Protected Attributes | List of all members
stdr_gui::CGuiSource Class Referenceabstract

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]

Public Member Functions

 CGuiSource (QPoint p, std::string name, float resolution)
 Default contructor. More...
 
virtual bool checkProximity (QPoint p)
 Checks proximity to a point. More...
 
virtual void draw (QImage *img)=0
 Draws the source in the map. More...
 
std::string getName (void)
 Returns the "name" of the source. More...
 
virtual ~CGuiSource (void)
 Default destructor. More...
 

Protected Attributes

std::string name_
 The OGM resolution. More...
 
QPoint position_
 < The position of the source in the map More...
 
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 47 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 45 of file stdr_gui_source.h.

float stdr_gui::CGuiSource::resolution_
protected

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 Mon Jun 10 2019 15:15:17