MeteorMgr.hpp   MeteorMgr.hpp 
skipping to change at line 17 skipping to change at line 17
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _METEORMGR_HPP_ #ifndef _METEORMGR_HPP_
#define _METEORMGR_HPP_ #define _METEORMGR_HPP_
#include <vector> #include <vector>
#include "StelModule.hpp" #include "StelModule.hpp"
class Meteor; class Meteor;
//! @class MeteorMgr //! @class MeteorMgr
//! Simulates meteor showers. //! Simulates a meteor shower.
class MeteorMgr : public StelModule class MeteorMgr : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(int ZHR READ getZHR WRITE setZHR NOTIFY zhrChanged)
public: public:
//! Construct a MeteorMgr object. //! Construct a MeteorMgr object.
//! @param zhr the base zenith hourly rate - i.e. the rate when ther e is no //! @param zhr the base zenith hourly rate - i.e. the rate when ther e is no
//! meteor shower in progress. //! meteor shower in progress.
//! @param maxv the initial value of the maximum meteor velocity. //! @param maxv the initial value of the maximum meteor velocity.
MeteorMgr(int zhr, int maxv); MeteorMgr(int zhr, int maxv);
virtual ~MeteorMgr(); virtual ~MeteorMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
skipping to change at line 75 skipping to change at line 76
void setZHR(int zhr); void setZHR(int zhr);
//! Set flag used to turn on and off meteor rendering. //! Set flag used to turn on and off meteor rendering.
void setFlagShow(bool b) { flagShow = b; } void setFlagShow(bool b) { flagShow = b; }
//! Get value of flag used to turn on and off meteor rendering. //! Get value of flag used to turn on and off meteor rendering.
bool getFlagShow(void) const { return flagShow; } bool getFlagShow(void) const { return flagShow; }
//! Set the maximum velocity in km/s //! Set the maximum velocity in km/s
void setMaxVelocity(int maxv); void setMaxVelocity(int maxv);
signals:
void zhrChanged(int);
private: private:
std::vector<Meteor*> active; // Vector containing all act ive meteors std::vector<Meteor*> active; // Vector containing all act ive meteors
int ZHR; int ZHR;
int maxVelocity; int maxVelocity;
double zhrToWsr; // factor to convert from zhr to whole earth per s econd rate double zhrToWsr; // factor to convert from zhr to whole earth per s econd rate
bool flagShow; bool flagShow;
}; };
#endif // _METEORMGR_HPP_ #endif // _METEORMGR_HPP_
 End of changes. 4 change blocks. 
2 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/