20 #ifndef _STELOBJECT_HPP_ 21 #define _STELOBJECT_HPP_ 23 #include "VecMath.hpp" 25 #include "StelRegionObject.hpp" 133 virtual QString
getType()
const = 0;
203 virtual double getParentSatellitesFov(
const StelCore*)
const {
return -1.;}
218 static int stelObjectPMetaTypeID;
221 Q_DECLARE_OPERATORS_FOR_FLAGS(StelObject::InfoStringGroup)
223 #endif // _STELOBJECT_HPP_ Vec3d getAltAzPosAuto(const StelCore *core) const
Get observer-centered alt/az position It is the automatic position, i.e.
The supergalactic position.
static const InfoStringGroupFlags AllInfo
A pre-defined set of specifiers for the getInfoString flags argument to getInfoString.
The type of the object (star, planet, etc.)
virtual double getAngularSize(const StelCore *core) const =0
Return the angular radius of a circle containing the object as seen from the observer with the circle...
virtual QString getInfoString(const StelCore *core, const InfoStringGroup &flags=StelObject::AllInfo) const =0
Write I18n information about the object in QString.
virtual QString getType() const =0
Return object's type. It should be the name of the class.
QString getPositionInfoString(const StelCore *core, const InfoStringGroup &flags) const
Format the positional info string contain J2000/of date/altaz/hour angle positions for the object...
Vec3d getAltAzPosGeometric(const StelCore *core) const
Get observer-centered alt/az position It is the geometric position, i.e.
The base abstract class for sky objects used in Stellarium like Stars, Planets, Constellations etc...
Mean and Apparent Sidereal Time.
A shared pointer on a SphericalRegion.
virtual float getSelectPriority(const StelCore *) const
Return a priority value which is used to discriminate objects by priority As for magnitudes, the lower is the higher priority.
The position (Altitude/Azimuth)
virtual double getCloseViewFov(const StelCore *) const
Return the best FOV in degree to use for a close view of the object.
Main class for Stellarium core processing.
The hour angle + DE (of date)
virtual Vec3d getJ2000EquatorialPos(const StelCore *core) const =0
Get observer-centered equatorial coordinates at equinox J2000.
The ecliptic position (of date)
virtual QVariantMap getInfoMap(const StelCore *core) const
Return a key/value map with data about an object's position, magnitude and so on. ...
Info about an object's distance.
Special SphericalRegion for a point on the sphere.
Vec3d getEquinoxEquatorialPos(const StelCore *core) const
Get observer-centered equatorial coordinate at the current equinox The frame has its Z axis at the pl...
Strip HTML tags from output.
virtual Vec3f getInfoColor() const
Get a color used to display info about the object.
The ecliptic position (J2000.0 ref) [+ XYZ of VSOP87A (used mainly for debugging, not public)]...
InfoStringGroupFlags
Used as named bitfield flags as specifiers to filter results of getInfoString.
virtual QString getEnglishName() const =0
Return object's name in english.
void postProcessInfoString(QString &str, const InfoStringGroup &flags) const
Apply post processing on the info string.
The equatorial position (J2000 ref)
Define the StelObjectP type.
virtual SphericalRegionP getRegion() const
Default implementation of the getRegion method.
The equatorial position (of date)
virtual float getVMagnitude(const StelCore *core) const
Return object's apparent V magnitude as seen from observer, without including extinction.
virtual Vec3d getPointInRegion() const
Default implementation of the getPointInRegion method.
Vec3d getEquinoxEquatorialPosAuto(const StelCore *core) const
Like getEquinoxEquatorialPos(core), but adds refraction correction to the position if atmosphere is a...
Vec3d getEquinoxEquatorialPosApparent(const StelCore *core) const
Like getEquinoxEquatorialPos(core), but always adds refraction correction to the position.
virtual QString getNameI18n() const =0
Return translated object's name.
Vec3d getSiderealPosApparent(const StelCore *core) const
Get observer-centered hour angle + declination (at current equinox) It is the apparent position...
Three-letter constellation code (And, Boo, Cas, ...)
Simple abstract class defining basic methods implemented by all objects that need to be stored in a S...
Vec3d getAltAzPosApparent(const StelCore *core) const
Get observer-centered alt/az position It is the apparent position, i.e.
float getVMagnitudeWithExtinction(const StelCore *core) const
Return object's apparent V magnitude as seen from observer including extinction.
static const InfoStringGroupFlags ShortInfo
A pre-defined set of specifiers for the getInfoString flags argument to getInfoString.
Info about an object's size.
Vec3d getSiderealPosGeometric(const StelCore *core) const
Get observer-centered hour angle + declination (at current equinox) It is the geometric position...
Derived class-specific extra fields.
Vec3d getGalacticPos(const StelCore *core) const
Get observer-centered galactic coordinates.
Vec3d getSupergalacticPos(const StelCore *core) const
Get observer-centered supergalactic coordinates.
virtual double getSatellitesFov(const StelCore *) const
Return the best FOV in degree to use for a global view of the object satellite system (if there are s...