Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classMeteor.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:19:35 2014 Кодировка: Поисковые слова: р р р р р р р |
![]() |
Stellarium 0.12.3
|
Models a single meteor. More...
#include <Meteor.hpp>
Public Member Functions | |
Meteor (const StelCore *, double v) | |
Create a Meteor object. More... | |
bool | update (double deltaTime) |
Updates the position of the meteor, and expires it if necessary. More... | |
void | draw (const StelCore *core, StelProjectorP projector, class StelRenderer *renderer) |
Draws the meteor. More... | |
bool | isAlive (void) |
Determine if a meteor is alive or has burned out. More... | |
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.
Meteor::Meteor | ( | const StelCore * | , |
double | v | ||
) |
Create a Meteor object.
v | the velocity of the meteor in km/s. |
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.
bool Meteor::update | ( | double | deltaTime | ) |
Updates the position of the meteor, and expires it if necessary.