![]() |
Stellarium 0.15.2
|
Models a single meteor. More...
#include <Meteor.hpp>
Inheritance diagram for Meteor:Public Types | |
| typedef QPair< QString, int > | ColorPair |
| <colorName, intensity> More... | |
Public Member Functions | |
| Meteor (const StelCore *core, const StelTextureSP &bolideTexture) | |
| Create a Meteor object. More... | |
| void | init (const float &radiantAlpha, const float &radiantDelta, const float &speed, const QList< ColorPair > colors) |
| Initialize meteor. More... | |
| virtual bool | update (double deltaTime) |
| Updates the position of the meteor, and expires it if necessary. More... | |
| virtual void | draw (const StelCore *core, StelPainter &sPainter) |
| Draws the meteor. More... | |
| bool | isAlive () |
| Indicate if the meteor still visible. More... | |
| void | setAbsMag (float mag) |
| Set meteor absolute magnitude. More... | |
| float | absMag () |
| Get meteor absolute magnitude. More... | |
Models a single meteor.
Once created, a meteor object only lasts for some amount of time, and then "dies", after which, the update() member returns false.
Definition at line 42 of file Meteor.hpp.
| typedef QPair<QString, int> Meteor::ColorPair |
<colorName, intensity>
Definition at line 46 of file Meteor.hpp.
| Meteor::Meteor | ( | const StelCore * | core, |
| const StelTextureSP & | bolideTexture | ||
| ) |
Create a Meteor object.
|
inline |
Get meteor absolute magnitude.
Definition at line 69 of file Meteor.hpp.
|
virtual |
Draws the meteor.
| void Meteor::init | ( | const float & | radiantAlpha, |
| const float & | radiantDelta, | ||
| const float & | speed, | ||
| const QList< ColorPair > | colors | ||
| ) |
Initialize meteor.
|
inline |
Indicate if the meteor still visible.
Definition at line 65 of file Meteor.hpp.
|
inline |
Set meteor absolute magnitude.
Definition at line 67 of file Meteor.hpp.
|
virtual |
Updates the position of the meteor, and expires it if necessary.
| deltaTime | the time increment in seconds since the last call. |
1.8.11