![]() |
Stellarium
25.3
|
Public Member Functions | |
| ScmConstellation (const QString &id, const std::vector< CoordinateLine > &coordinates, const std::vector< StarLine > &stars, const bool isDarkConstellation) | |
| QString | getId () const |
| Gets the id of the constellation. More... | |
| void | setEnglishName (const QString &name) |
| Sets the english name of the constellation. More... | |
| QString | getEnglishName () const |
| Gets the english name of the constellation. More... | |
| void | setNativeName (const std::optional< QString > &name) |
| Sets the native name of the constellation. More... | |
| std::optional< QString > | getNativeName () const |
| Gets the native name of the constellation. More... | |
| void | setPronounce (const std::optional< QString > &pronounce) |
| Sets the pronounciation of the constellation. More... | |
| std::optional< QString > | getPronounce () const |
| Gets the pronounciation of the constellation. More... | |
| void | setIPA (const std::optional< QString > &ipa) |
| Sets the IPA. More... | |
| std::optional< QString > | getIPA () const |
| Gets the IPA. More... | |
| void | setArtwork (const ScmConstellationArtwork &artwork) |
| Sets the artwork. More... | |
| const ScmConstellationArtwork & | getArtwork () const |
| Gets the artwork. More... | |
| void | setConstellation (const std::vector< CoordinateLine > &coordinates, const std::vector< StarLine > &stars) |
| Sets the coordinate lines and star lines of the constellation. More... | |
| const std::vector< CoordinateLine > & | getCoordinates () const |
| Gets the coordinates of the constellation. More... | |
| const std::vector< StarLine > & | getStars () const |
| Gets the stars of the constellation. More... | |
| void | drawConstellation (StelCore *core, const Vec3f &lineColor, const Vec3f &labelColor) const |
| Draws the constellation based on the coordinates. More... | |
| void | drawConstellation (StelCore *core) const |
| Draws the constellation based on the coordinates using the default color. More... | |
| void | drawNames (StelCore *core, StelPainter &painter, const Vec3f &labelColor) const |
| Draws the label of the constellation. More... | |
| void | drawNames (StelCore *core, StelPainter &painter) const |
| Draws the label of the constellation using the default color. More... | |
| QJsonObject | toJson (const QString &skyCultureId) const |
| Returns the constellation data as a JSON object. More... | |
| bool | saveArtwork (const QString &directory) |
| Saves the artwork of this constellation, if art is attached, to the give filepath. More... | |
| void | hide () |
| Hides the constellation from being drawn. | |
| void | show () |
| Enables the constellation to be drawn. | |
| bool | getIsDarkConstellation () const |
| Returns whether the constellation is a dark constellation. More... | |
Static Public Attributes | |
| static const StelCore::FrameType | drawFrame = StelCore::FrameJ2000 |
| The frame that is used for calculation and is drawn on. | |
| void scm::ScmConstellation::drawConstellation | ( | StelCore * | core | ) | const |
Draws the constellation based on the coordinates using the default color.
| core | The core used for drawing. |
| void scm::ScmConstellation::drawConstellation | ( | StelCore * | core, |
| const Vec3f & | lineColor, | ||
| const Vec3f & | labelColor | ||
| ) | const |
Draws the constellation based on the coordinates.
| core | The core used for drawing. |
| color | The color to use for drawing the constellation. |
| void scm::ScmConstellation::drawNames | ( | StelCore * | core, |
| StelPainter & | painter | ||
| ) | const |
Draws the label of the constellation using the default color.
| core | The core used for drawing. |
| painter | The painter used for drawing. |
| void scm::ScmConstellation::drawNames | ( | StelCore * | core, |
| StelPainter & | painter, | ||
| const Vec3f & | labelColor | ||
| ) | const |
Draws the label of the constellation.
| core | The core used for drawing. |
| painter | The painter used for drawing. |
| labelColor | The color of the label. |
| const ScmConstellationArtwork& scm::ScmConstellation::getArtwork | ( | ) | const |
Gets the artwork.
| const std::vector<CoordinateLine>& scm::ScmConstellation::getCoordinates | ( | ) | const |
Gets the coordinates of the constellation.
| QString scm::ScmConstellation::getEnglishName | ( | ) | const |
Gets the english name of the constellation.
| QString scm::ScmConstellation::getId | ( | ) | const |
Gets the id of the constellation.
| std::optional<QString> scm::ScmConstellation::getIPA | ( | ) | const |
Gets the IPA.
|
inline |
Returns whether the constellation is a dark constellation.
| std::optional<QString> scm::ScmConstellation::getNativeName | ( | ) | const |
Gets the native name of the constellation.
| std::optional<QString> scm::ScmConstellation::getPronounce | ( | ) | const |
Gets the pronounciation of the constellation.
| const std::vector<StarLine>& scm::ScmConstellation::getStars | ( | ) | const |
Gets the stars of the constellation.
| bool scm::ScmConstellation::saveArtwork | ( | const QString & | directory | ) |
Saves the artwork of this constellation, if art is attached, to the give filepath.
| directory | The directory to the illustrations. |
| void scm::ScmConstellation::setArtwork | ( | const ScmConstellationArtwork & | artwork | ) |
Sets the artwork.
| artwork | The artwork. |
| void scm::ScmConstellation::setConstellation | ( | const std::vector< CoordinateLine > & | coordinates, |
| const std::vector< StarLine > & | stars | ||
| ) |
Sets the coordinate lines and star lines of the constellation.
| coordinates | The coordinates of the constellation. |
| stars | The equivalent stars to the coordinates. |
| void scm::ScmConstellation::setEnglishName | ( | const QString & | name | ) |
Sets the english name of the constellation.
| name | The english name |
| void scm::ScmConstellation::setIPA | ( | const std::optional< QString > & | ipa | ) |
Sets the IPA.
| ipa | The optional ipa |
| void scm::ScmConstellation::setNativeName | ( | const std::optional< QString > & | name | ) |
Sets the native name of the constellation.
| name | The native name |
| void scm::ScmConstellation::setPronounce | ( | const std::optional< QString > & | pronounce | ) |
Sets the pronounciation of the constellation.
| pronounce | The pronounciation |
| QJsonObject scm::ScmConstellation::toJson | ( | const QString & | skyCultureId | ) | const |
Returns the constellation data as a JSON object.
| skyCultureId | The ID of the sky culture to which this constellation belongs. |