![]() |
Stellarium
25.1
|
Stores the star catalogue data. More...
#include <StarMgr.hpp>
Public Slots | |
void | setFlagStars (bool b) |
Set display flag for Stars. | |
bool | getFlagStars (void) const |
Get display flag for Stars. | |
void | setFlagLabels (bool b) |
Set display flag for Star names (labels). | |
bool | getFlagLabels (void) const |
Get display flag for Star names (labels). | |
void | setLabelsAmount (double a) |
Set the amount of star labels. More... | |
double | getLabelsAmount (void) const |
Get the amount of star labels. More... | |
void | setFontSize (int newFontSize) |
Define font size to use for star names display. | |
static void | setFlagSciNames (bool f) |
Show scientific or catalog names on stars without common names. | |
static bool | getFlagSciNames (void) |
void | setDesignationUsage (const bool flag) |
Set flag for usage designations of stars for their labels instead common names. | |
static bool | getDesignationUsage (void) |
Get flag for usage designations of stars for their labels instead common names. | |
void | setFlagDblStarsDesignation (const bool flag) |
Set flag for usage traditional designations of double stars. | |
static bool | getFlagDblStarsDesignation (void) |
Get flag for usage traditional designations of double stars. | |
void | setFlagVarStarsDesignation (const bool flag) |
Set flag for usage designations of variable stars. | |
static bool | getFlagVarStarsDesignation (void) |
Get flag for usage designations of variable stars. | |
void | setFlagHIPDesignation (const bool flag) |
Set flag for usage Hipparcos catalog designations of stars. | |
static bool | getFlagHIPDesignation (void) |
Get flag for usage Hipparcos catalog designations of stars. | |
void | setFlagAdditionalNames (bool flag) |
Show additional star names. | |
static bool | getFlagAdditionalNames (void) |
Public Member Functions | |
void | init () override |
Initialize the StarMgr. More... | |
void | draw (StelCore *core) override |
Draw the stars and the star selection indicator if necessary. | |
void | update (double deltaTime) override |
Update any time-dependent features. More... | |
double | getCallOrder (StelModuleActionName actionName) const override |
Used to determine the order in which the various StelModules are drawn. | |
QList< StelObjectP > | searchAround (const Vec3d &v, double limitFov, const StelCore *core) const override |
Return a list containing the stars located inside the limFov circle around position v. | |
StelObjectP | searchByNameI18n (const QString &nameI18n) const override |
Return the matching Stars object's pointer if exists or Q_NULLPTR. More... | |
StelObjectP | searchByName (const QString &name) const override |
Return the matching star if exists or Q_NULLPTR. More... | |
StelObjectP | searchByID (const QString &id) const override |
Same as searchByName(id);. | |
QStringList | listMatchingObjects (const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const override |
Find and return the list of at most maxNbItem objects auto-completing the passed object English name. More... | |
QStringList | listAllObjects (bool inEnglish) const override |
QStringList | listAllObjectsByType (const QString &objType, bool inEnglish) const override |
List all StelObjects by type. More... | |
QString | getName () const override |
Gets a user-displayable name of the object category. | |
QString | getStelObjectType () const override |
Returns the name that will be returned by StelObject::getType() for the objects this module manages. | |
StelObjectP | searchHP (int hip) const |
Search by Hipparcos catalogue number. More... | |
StelObjectP | searchGaia (StarId source_id) const |
Search by Gaia source id. More... | |
QVariantList | getCatalogsDescription () const |
bool | checkAndLoadCatalog (const QVariantMap &m, bool load) |
Try to load the given catalog, even if it is marched as unchecked. More... | |
const QList< StelObjectP > & | getHipparcosStars () const |
Get the list of all Hipparcos stars. | |
const QList< QMap< StelObjectP, float > > & | getHipparcosHighPMStars () const |
const QList< QMap< StelObjectP, float > > & | getHipparcosDoubleStars () const |
const QList< QMap< StelObjectP, float > > & | getHipparcosVariableStars () const |
const QList< QMap< StelObjectP, float > > & | getHipparcosAlgolTypeStars () const |
const QList< QMap< StelObjectP, float > > & | getHipparcosClassicalCepheidsTypeStars () const |
const QList< StelObjectP > & | getHipparcosCarbonStars () const |
const QList< StelObjectP > & | getHipparcosBariumStars () const |
![]() | |
bool | matchObjectName (const QString &objName, const QString &objPrefix, bool useStartOfWords) const |
Auxiliary method of listMatchingObjects() More... | |
![]() | |
StelModule () | |
Constructor. Every derived class MUST call setObjectName(className) in its constructor. | |
virtual void | deinit () |
Called before the module will be deleted, and before the OpenGL context is suppressed. More... | |
virtual QSettings * | getSettings () |
Return module-specific settings. More... | |
virtual QString | getModuleVersion () const |
Get the version of the module, default is stellarium main version. | |
virtual QString | getAuthorName () const |
Get the name of the module author. | |
virtual QString | getAuthorEmail () const |
Get the email address of the module author. | |
virtual void | handleMouseClicks (class QMouseEvent *) |
Handle mouse clicks. More... | |
virtual void | handleMouseWheel (class QWheelEvent *) |
Handle mouse wheel. More... | |
virtual bool | handleMouseMoves (int x, int y, Qt::MouseButtons b) |
Handle mouse moves. More... | |
virtual void | handleKeys (class QKeyEvent *e) |
Handle key events. More... | |
virtual bool | handlePinch (qreal scale, bool started) |
Handle pinch gesture events. More... | |
virtual bool | configureGui (bool show=true) |
Detect or show the configuration GUI elements for the module. More... | |
Static Public Member Functions | |
static QString | getCommonName (StarId hip) |
Get the (translated) common name for a star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getSciName (StarId hip) |
Get the (translated) scientific name for a star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getSciExtraName (StarId hip) |
Get the (translated) scientific extra name for a star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getGcvsName (StarId hip) |
Get the (translated) scientific name for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getWdsName (StarId hip) |
Get the (translated) scientific name for a double star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getCommonEnglishName (StarId hip) |
Get the (English) common name for a star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getAdditionalNames (StarId hip) |
Get the (translated) additional names for a star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getAdditionalEnglishNames (StarId hip) |
Get the English additional names for a star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getCrossIdentificationDesignations (QString hip) |
Get the cross-identification designations for a star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getGcvsVariabilityType (StarId hip) |
Get the type of variability for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static float | getGcvsMaxMagnitude (StarId hip) |
Get the magnitude at maximum brightness for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static int | getGcvsMagnitudeFlag (StarId hip) |
Get the magnitude flag code for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static float | getGcvsMinMagnitude (StarId hip, bool firstMinimumFlag=true) |
Get the minimum magnitude or amplitude for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getGcvsPhotometricSystem (StarId hip) |
Get the photometric system for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static double | getGcvsEpoch (StarId hip) |
Get Epoch for maximum light for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static double | getGcvsPeriod (StarId hip) |
Get the period for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static int | getGcvsMM (StarId hip) |
Get the rising time or duration of eclipse for a variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | getGcvsSpectralType (StarId hip) |
Get the spectral type of variable star with a specified Hipparcos or Gaia catalogue number. More... | |
static int | getWdsLastObservation (StarId hip) |
Get year of last satisfactory observation of double star with a Hipparcos or Gaia catalogue number. More... | |
static float | getWdsLastPositionAngle (StarId hip) |
Get position angle at date of last satisfactory observation of double star with a Hipparcos or Gaia catalogue number. More... | |
static float | getWdsLastSeparation (StarId hip) |
Get separation angle at date of last satisfactory observation of double star with a Hipparcos or Gaia catalogue number. More... | |
static binaryorbitstar | getBinaryOrbitData (StarId hip) |
Get binary orbit data for a star with a specified Hipparcos or Gaia catalogue number. More... | |
static QString | convertToSpectralType (int index) |
static QString | convertToComponentIds (int index) |
static QString | convertToOjectTypes (int index) |
Additional Inherited Members | |
![]() | |
enum | StelModuleSelectAction { AddToSelection , ReplaceSelection , RemoveFromSelection } |
Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More... | |
enum | StelModuleActionName { ActionDraw , ActionUpdate , ActionHandleMouseClicks , ActionHandleMouseMoves , ActionHandleKeys } |
Define the possible action for which an order is defined. More... | |
![]() | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to slot) to the StelActionMgr object. More... | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to own slot) to the StelActionMgr object. More... | |
StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *contextObject, std::function< void()> lambda, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to Lambda functor) to the StelActionMgr object. More... | |
Stores the star catalogue data.
Used to render the stars themselves, as well as determine the color table and render the labels of those stars with names for a given SkyCulture.
The celestial sphere is split into zones, which correspond to the triangular faces of a geodesic sphere. The number of zones (faces) depends on the level of sub-division of this sphere. The lowest level, 0, is an icosahedron (20 faces), subsequent levels, L, of sub-division give the number of zones, n as:
n=20 x 4^L
Stellarium uses levels 0 to 7 in the existing star catalogues. Star Data Records contain the position of a star as an offset from the central position of the zone in which that star is located, thus it is necessary to determine the vector from the observer to the centre of a zone, and add the star's offsets to find the absolute position of the star on the celestial sphere.
This position for a star is expressed as a 3-dimensional vector which points from the observer (at the centre of the geodesic sphere) to the position of the star as observed on the celestial sphere.
bool StarMgr::checkAndLoadCatalog | ( | const QVariantMap & | m, |
bool | load | ||
) |
Try to load the given catalog, even if it is marched as unchecked.
Mark it as checked if checksum is correct.
m | the catalog data. |
load | true if the catalog should be loaded, otherwise just check but don't load. |
|
static |
Get the English additional names for a star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the (translated) additional names for a star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get binary orbit data for a star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the (English) common name for a star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the (translated) common name for a star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the cross-identification designations for a star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get Epoch for maximum light for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the magnitude flag code for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the magnitude at maximum brightness for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the minimum magnitude or amplitude for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
firstMinimumFlag |
|
static |
Get the rising time or duration of eclipse for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the (translated) scientific name for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the period for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the photometric system for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the spectral type of variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the type of variability for a variable star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
inlineslot |
Get the amount of star labels.
The real amount is also proportional with FOV.
|
static |
Get the (translated) scientific extra name for a star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the (translated) scientific name for a star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get year of last satisfactory observation of double star with a Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get position angle at date of last satisfactory observation of double star with a Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get separation angle at date of last satisfactory observation of double star with a Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
static |
Get the (translated) scientific name for a double star with a specified Hipparcos or Gaia catalogue number.
hip | The Hipparcos/Gaia number of star |
|
overridevirtual |
Initialize the StarMgr.
Implements StelModule.
|
overridevirtual |
Implements StelObjectModule.
|
overridevirtual |
List all StelObjects by type.
objType | object type |
inEnglish | list translated names (false) or in English (true) |
Reimplemented from StelObjectModule.
|
overridevirtual |
Find and return the list of at most maxNbItem objects auto-completing the passed object English name.
objPrefix | the case insensitive first letters of the searched object |
maxNbItem | the maximum number of returned object names |
useStartOfWords | the autofill mode for returned objects names |
Reimplemented from StelObjectModule.
|
overridevirtual |
Return the matching star if exists or Q_NULLPTR.
name | The case in-sensitive english star name |
Implements StelObjectModule.
|
overridevirtual |
Return the matching Stars object's pointer if exists or Q_NULLPTR.
nameI18n | The case in-sensitive localized star common name or HIP/HP, SAO, HD, HR, GCVS or WDS number catalog name (format can be HP1234 or HP 1234 or HIP 1234) or sci name |
Implements StelObjectModule.
StelObjectP StarMgr::searchGaia | ( | StarId | source_id | ) | const |
Search by Gaia source id.
source_id | the Gaia source id of the star which is required. |
StelObjectP StarMgr::searchHP | ( | int | hip | ) | const |
Search by Hipparcos catalogue number.
hip | the Hipparcos catalogue number of the star which is required. |
|
slot |
Set the amount of star labels.
The real amount is also proportional with FOV. The limit is set in function of the stars magnitude
a | the amount between 0 and 10. 0 is no labels, 10 is maximum of labels |
|
inlineoverridevirtual |
Update any time-dependent features.
Includes fading in and out stars and labels when they are turned on and off.
Reimplemented from StelModule.