stdr_gui_sound_source.h
Go to the documentation of this file.
1 /******************************************************************************
2  STDR Simulator - Simple Two DImensional Robot Simulator
3  Copyright (C) 2013 STDR Simulator
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 3 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 
16  Authors :
17  * Manos Tsardoulias, etsardou@gmail.com
18  * Aris Thallas, aris.thallas@gmail.com
19  * Chris Zalidis, zalidis@gmail.com
20 ******************************************************************************/
21 #ifndef STDR_GUI_SOUND_SOURCE_CONTAINER
22 #define STDR_GUI_SOUND_SOURCE_CONTAINER
23 
25 
30 namespace stdr_gui
31 {
36  class CGuiSoundSource : public CGuiSource
37  {
38  //------------------------------------------------------------------------//
39  private:
40  float db_;
41 
42  //------------------------------------------------------------------------//
43  public:
51  CGuiSoundSource(QPoint p,std::string name, float resolution);
52 
57  ~CGuiSoundSource(void);
58 
64  virtual void draw(QImage *img);
65 
71  void setDb(float db);
72 
77  float getDb(void);
78  };
79 }
80 
81 #endif
82 
Implements the functionalities of a sound source.
CGuiSoundSource(QPoint p, std::string name, float resolution)
Default contructor.
~CGuiSoundSource(void)
Default destructor.
void setDb(float db)
Sets the tag message.
The main namespace for STDR GUI.
float getDb(void)
Returns the tag message.
virtual void draw(QImage *img)
Draws the tag in the map.
Implements the functionalities of a source, to be derived by specific source types.


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Mon Jun 10 2019 15:15:16