20 #ifndef _STARWRAPPER_HPP_ 21 #define _STARWRAPPER_HPP_ 23 #include "StelObject.hpp" 24 #include "StelApp.hpp" 25 #include "StelCore.hpp" 26 #include "StarMgr.hpp" 28 #include "StelSkyDrawer.hpp" 48 QString
getType(
void)
const {
return "Star";}
64 virtual float getBV(
void)
const = 0;
75 const Star *s) : a(a), z(z), s(s) {;}
78 static const double d2000 = 2451545.0;
80 s->getJ2000Pos(z, (M_PI/180.)*(0.0001/3600.) * ((core->
getJDE()-d2000)/365.25) / a->star_position_scale, v);
81 return Vec3d(v[0], v[1], v[2]);
92 float getBV(
void)
const {
return s->getBV();}
158 #endif // _STARWRAPPER_HPP_ static const Vec3f & indexToColor(unsigned char bV)
Convert quantized B-V index to RGB colors.
const int mag_range
Range of magnitudes in this level. Units: millimags.
Vec3f getInfoColor(void) const
Get a color used to display info about the object.
Wrapper struct around ZoneData.
QString getNameI18n(void) const
Return translated object's name.
The base abstract class for sky objects used in Stellarium like Stars, Planets, Constellations etc...
QString getInfoString(const StelCore *core, const InfoStringGroup &flags) const
StarWrapperBase supports the following InfoStringGroup flags.
Main class for Stellarium core processing.
virtual QVariantMap getInfoMap(const StelCore *core) const
Return a key/value map with data about an object's position, magnitude and so on. ...
QString getEnglishName(void) const
Return object's name in english.
double getJDE() const
Get the current date in Julian Day (TT).
const int mag_min
Lower bound of magnitudes in this level. Units: millimag. May be negative for brightest stars...
QString getNameI18n(void) const =0
Return translated object's name.
QString getType(void) const
Return object's type. It should be the name of the class.
virtual double getAngularSize(const StelCore *) const
Return the angular radius of a circle containing the object as seen from the observer with the circle...
Vec3d getJ2000EquatorialPos(const StelCore *core) const
Get observer-centered equatorial coordinates at equinox J2000.
float getVMagnitude(const StelCore *core) const
Return object's apparent V magnitude as seen from observer, without including extinction.
Implements all the virtual methods in ZoneArray.
A Star (Star1,Star2,Star3,...) cannot be a StelObject.
const int mag_steps
Number of steps used to describe values in mag_range. Always positive. Individual stars have their ma...
QString getEnglishName(void) const
Return object's name in english.