stdr_gui_sound_source.h
Go to the documentation of this file.
00001 /******************************************************************************
00002    STDR Simulator - Simple Two DImensional Robot Simulator
00003    Copyright (C) 2013 STDR Simulator
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 3 of the License, or
00007    (at your option) any later version.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011    GNU General Public License for more details.
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software Foundation,
00014    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
00015    
00016    Authors : 
00017    * Manos Tsardoulias, etsardou@gmail.com
00018    * Aris Thallas, aris.thallas@gmail.com
00019    * Chris Zalidis, zalidis@gmail.com 
00020 ******************************************************************************/
00021 #ifndef STDR_GUI_SOUND_SOURCE_CONTAINER
00022 #define STDR_GUI_SOUND_SOURCE_CONTAINER
00023 
00024 #include "stdr_gui/stdr_tools.h"
00025 
00030 namespace stdr_gui
00031 {
00036   class CGuiSoundSource
00037   {
00038     //------------------------------------------------------------------------//
00039     private:
00041       QPoint position_; 
00043       std::string name_;  
00045       float db_;
00047       float resolution_;
00048     //------------------------------------------------------------------------//
00049     public:
00057       CGuiSoundSource(QPoint p,std::string name, float resolution);
00058       
00063       ~CGuiSoundSource(void);
00064       
00069       std::string getName(void);
00070       
00076       bool checkProximity(QPoint p);
00077       
00083       void draw(QImage *img);
00084       
00090       void setDb(float db);
00091       
00096       float getDb(void);
00097   };  
00098 }
00099 
00100 #endif
00101 


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Wed Sep 2 2015 03:36:44