Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

Meteor Class Reference

Models a single meteor. More...

#include <Meteor.hpp>

List of all members.

Classes

struct  Vertex
 Vertex with a 3D position and a color.

Public Member Functions

 Meteor (const StelCore *, double v)
 Create a Meteor object.
bool update (double deltaTime)
 Updates the position of the meteor, and expires it if necessary.
void draw (const StelCore *core, StelProjectorP projector, class StelRenderer *renderer)
 Draws the meteor.
bool isAlive (void)
 Determine if a meteor is alive or has burned out.

Detailed Description

Models a single meteor.

Control of the meteor rate is performed in the MeteorMgr class. Once created, a meteor object only lasts for some amount of time, and then "dies", after which, the update() member returns false. The live/dead status of a meteor may also be determined using the isAlive member.

Definition at line 41 of file Meteor.hpp.


Constructor & Destructor Documentation

Meteor::Meteor ( const StelCore ,
double  v 
)

Create a Meteor object.

Parameters:
v the velocity of the meteor in km/s.

Member Function Documentation

void Meteor::draw ( const StelCore core,
StelProjectorP  projector,
class StelRenderer renderer 
)

Draws the meteor.

bool Meteor::isAlive ( void   ) 

Determine if a meteor is alive or has burned out.

Returns:
true if alive, else false.
bool Meteor::update ( double  deltaTime  ) 

Updates the position of the meteor, and expires it if necessary.

Returns:
true of the meteor is still alive, else false.

The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:43 2013 for Stellarium by  doxygen 1.6.3