24 #include "VecMath.hpp" 32 #define EARTH_RADIUS 6378.f 33 #define EARTH_RADIUS2 40678884.f 34 #define MAX_ALTITUDE 120.f 35 #define MIN_ALTITUDE 80.f 53 void init(
const float& radiantAlpha,
const float& radiantDelta,
54 const float& speed,
const QList<ColorPair> colors);
59 virtual bool update(
double deltaTime);
73 void buildColorVectors(
const QList<ColorPair> colors);
76 Vec4f getColorFromName(QString colorName);
79 void calculateThickness(
const StelCore* core,
float &thickness,
float &bolideSize);
82 void drawBolide(
StelPainter &sPainter,
const float &bolideSize);
85 void drawTrain(
StelPainter& sPainter,
const float &thickness);
88 float meteorZ(
float zenithAngle,
float altitude);
100 Mat4d m_matAltAzToRadiant;
110 const int m_segments;
111 QVector<Vec4f> m_trainColorVector;
112 QVector<Vec4f> m_lineColorVector;
115 #endif // _METEOR_HPP_ Meteor(const StelCore *core, const StelTextureSP &bolideTexture)
Create a Meteor object.
Define the StelTextureSP type.
Main class for Stellarium core processing.
virtual void draw(const StelCore *core, StelPainter &sPainter)
Draws the meteor.
void setAbsMag(float mag)
Set meteor absolute magnitude.
Provides functions for performing openGL drawing operations.
virtual bool update(double deltaTime)
Updates the position of the meteor, and expires it if necessary.
bool isAlive()
Indicate if the meteor still visible.
float absMag()
Get meteor absolute magnitude.
QPair< QString, int > ColorPair
<colorName, intensity>
void init(const float &radiantAlpha, const float &radiantDelta, const float &speed, const QList< ColorPair > colors)
Initialize meteor.
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.