~ubuntu-branches/debian/jessie/stellarium/jessie

« back to all changes in this revision

Viewing changes to src/MeteorMgr.hpp

Tags: upstream-0.9.0
Import upstream version 0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Stellarium
 
3
 * This file Copyright (C) 2004 Robert Spearman
 
4
 * 
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License
 
7
 * as published by the Free Software Foundation; either version 2
 
8
 * of the License, or (at your option) any later version.
 
9
 * 
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 * 
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
18
 */
 
19
 
 
20
#ifndef _METEOR_MGR_H_
 
21
#define _METEOR_MGR_H_
 
22
 
 
23
#include <vector>
 
24
#include "StelModule.hpp"
 
25
 
 
26
class Meteor;
 
27
 
 
28
class MeteorMgr : public StelModule
 
29
{
 
30
 
 
31
 public:
 
32
  MeteorMgr(int zhr, int maxv );  // base_zhr is zenith hourly rate sans meteor shower
 
33
  virtual ~MeteorMgr();
 
34
  
 
35
        ///////////////////////////////////////////////////////////////////////////
 
36
        // Methods defined in the StelModule class
 
37
        virtual void init(const InitParser& conf, LoadingBar& lb);
 
38
        virtual string getModuleID() const {return "meteors";}
 
39
        virtual double draw(Projector *prj, const Navigator *nav, ToneReproducer *eye);
 
40
        virtual void update(double deltaTime);
 
41
 
 
42
  void setZHR(int zhr);   // set zenith hourly rate
 
43
  int getZHR(void);   
 
44
  void set_max_velocity(int maxv);   // set maximum meteoroid velocity km/s
 
45
 
 
46
 private:
 
47
  vector<Meteor*> active;               // Vector containing all active meteors
 
48
  int ZHR;
 
49
  int max_velocity;
 
50
  double zhr_to_wsr;  // factor to convert from zhr to whole earth per second rate
 
51
};
 
52
 
 
53
 
 
54
#endif // _METEOR_MGR_H