Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure

modules/MeteorMgr.hpp

00001 /*
00002  * Stellarium
00003  * This file Copyright (C) 2004 Robert Spearman
00004  * 
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018  */
00019 
00020 #ifndef _METEORMGR_HPP_
00021 #define _METEORMGR_HPP_
00022 
00023 #include <vector>
00024 #include "StelModule.hpp"
00025 
00026 class Meteor;
00027 
00030 class MeteorMgr : public StelModule
00031 {
00032     Q_OBJECT
00033 
00034 public:
00039     MeteorMgr(int zhr, int maxv); 
00040     virtual ~MeteorMgr();
00041  
00043     // Methods defined in the StelModule class
00045     virtual void init();
00046     
00048     virtual void draw(StelCore* core);
00049     
00054     virtual void update(double deltaTime);
00055     
00057     virtual double getCallOrder(StelModuleActionName actionName) const;
00058     
00059 public slots:
00061     // Method callable from script and GUI
00063     int getZHR(void);
00065     void setZHR(int zhr);
00066     
00068     void setFlagShow(bool b) { flagShow = b; }
00070     bool getFlagShow(void) const { return flagShow; }
00071     
00073     void setMaxVelocity(int maxv);
00074     
00075 private:
00076     std::vector<Meteor*> active;        // Vector containing all active meteors
00077     int ZHR;
00078     int maxVelocity;
00079     double zhrToWsr;  // factor to convert from zhr to whole earth per second rate
00080     bool flagShow;
00081 };
00082 
00083 
00084 #endif // _METEORMGR_HPP_

Generated on Mon Feb 2 17:23:47 2009 for Stellarium by  doxygen 1.5.5