42 Comet(
const QString& englishName,
48 const QString& texMapName,
49 posFuncType _coordFunc,
51 OsculatingFunctType *osculatingFunc,
54 const QString &pTypeStr,
55 float dustTailWidthFact=1.5f,
56 float dustTailLengthFact=0.4f,
57 float dustTailBrightnessFact=1.5f
106 virtual void draw(
StelCore* core,
float maxMagLabels,
const QFont& planetNameFont);
109 virtual void update(
int deltaTime);
114 Vec2f getComaDiameterAndTailLengthAU();
120 void computeComa(
const float diameter);
132 void computeParabola(
const float parameter,
const float topradius,
const float zshift, QVector<Vec3d>& vertexArr, QVector<float>& texCoordArr, QVector<unsigned short>& indices,
const float xOffset=0.0f);
134 double absoluteMagnitude;
135 double slopeParameter;
136 double semiMajorAxis;
137 bool isCometFragment;
138 bool nameIsProvisionalDesignation;
148 float dustTailWidthFactor;
149 float dustTailLengthFactor;
150 float dustTailBrightnessFactor;
151 QVector<double> comaVertexArr;
152 QVector<float> comaTexCoordArr;
155 static bool createTailIndices;
156 static bool createTailTextureCoords;
158 QVector<Vec3d> gastailVertexArr;
159 QVector<Vec3d> dusttailVertexArr;
160 QVector<Vec3f> gastailColorArr;
161 QVector<Vec3f> dusttailColorArr;
162 static QVector<float> tailTexCoordArr;
163 static QVector<unsigned short> tailIndices;
virtual void update(double deltaTime)
Update time-varying components.
virtual float getVMagnitude(const StelCore *core) const
Class used to translate strings to any language.
virtual QString getInfoString(const StelCore *core, const InfoStringGroup &flags) const
Get a string with data about the Comet.
virtual QString getEnglishName(void) const
Return object's name in english.
virtual void draw(StelCore *core, float maxMagLabels, const QFont &planetNameFont)
re-implementation of Planet's draw()
Main class for Stellarium core processing.
This StelObjectModule derivative is used to model SolarSystem bodies.
virtual QVariantMap getInfoMap(const StelCore *core) const
In addition to Planet::getInfoMap(), Comets provides estimates for.
void setAbsoluteMagnitudeAndSlope(const double magnitude, const double slope)
sets absolute magnitude and slope parameter.
virtual QString getNameI18n(void) const
Return translated object's name.
virtual void translateName(const StelTranslator &trans)
sets the nameI18 property with the appropriate translation.
virtual double getSiderealPeriod() const
get sidereal period for comet, days, or returns 0 if not possible (paraboloid, hyperboloid orbit) ...
QSharedPointer< ModelViewTranform > ModelViewTranformP
Shared pointer on a ModelViewTranform instance (implement reference counting)
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
void setSemiMajorAxis(const double value)
set value for semi-major axis in AU