![]() |
Stellarium
HEAD
|
Public Member Functions | |
| ScmConstellation (const QString &id, const std::vector< ConstellationLine > &lines, const bool isDarkConstellation) | |
| QString | getId () const |
| Gets the id of the constellation. More... | |
| void | setCulturalName (const ScmCulturalName &culturalName) |
| Sets the cultural name of the constellation. More... | |
| const ScmCulturalName & | getCulturalName () const |
| Gets the cultural name of the constellation. More... | |
| void | setDescription (const QString &description) |
| Sets the description of the constellation. More... | |
| QString | getDescription () const |
| Gets the description of the constellation. More... | |
| void | setArtwork (const ScmConstellationArtwork &artwork) |
| Sets the artwork. More... | |
| const ScmConstellationArtwork & | getArtwork () const |
| Gets the artwork. More... | |
| void | setLines (const std::vector< ConstellationLine > &lines) |
| Sets the lines of the constellation. More... | |
| const std::vector< ConstellationLine > & | getLines () const |
| Gets the lines of the constellation. More... | |
| void | draw (StelCore *core) const |
| Draws the constellation lines, name and artwork using default colors. More... | |
| void | drawLines (StelPainter &sPainter, const Vec3f &lineColor) const |
| Draws the constellation lines. More... | |
| void | drawName (StelCore *core, StelPainter &painter, const Vec3f &labelColor) const |
| Draws the label of the constellation. More... | |
| void | drawArtwork (StelCore *core, StelPainter &painter) const |
| Draws the artwork of the constellation. More... | |
| QJsonObject | toJson (const QString &skyCultureId, const bool mergeLines) 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... | |
| bool | getIsDarkConstellation () const |
| Returns whether the constellation is a dark constellation. More... | |
Data Fields | |
| bool | isHidden = false |
| Whether the constellation should be drawn or not. | |
Static Public Attributes | |
| static const StelCore::FrameType | drawFrame = StelCore::FrameJ2000 |
| The frame that is used for calculation and is drawn on. | |
| void scm::ScmConstellation::draw | ( | StelCore * | core | ) | const |
Draws the constellation lines, name and artwork using default colors.
| core | The core used for drawing. |
| void scm::ScmConstellation::drawArtwork | ( | StelCore * | core, |
| StelPainter & | painter | ||
| ) | const |
Draws the artwork of the constellation.
| core | The core used for drawing. |
| painter | The painter used for drawing. |
| void scm::ScmConstellation::drawLines | ( | StelPainter & | sPainter, |
| const Vec3f & | lineColor | ||
| ) | const |
Draws the constellation lines.
| sPainter | The painter used for drawing. |
| lineColor | The color of the lines. |
| void scm::ScmConstellation::drawName | ( | 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 ScmCulturalName& scm::ScmConstellation::getCulturalName | ( | ) | const |
Gets the cultural name of the constellation.
|
inline |
Gets the description of the constellation.
| QString scm::ScmConstellation::getId | ( | ) | const |
Gets the id of the constellation.
|
inline |
Returns whether the constellation is a dark constellation.
| const std::vector<ConstellationLine>& scm::ScmConstellation::getLines | ( | ) | const |
Gets the lines 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::setCulturalName | ( | const ScmCulturalName & | culturalName | ) |
Sets the cultural name of the constellation.
| culturalName | The cultural name data. |
|
inline |
Sets the description of the constellation.
| description | The description. |
| void scm::ScmConstellation::setLines | ( | const std::vector< ConstellationLine > & | lines | ) |
Sets the lines of the constellation.
| lines | The lines of the constellation. |
| QJsonObject scm::ScmConstellation::toJson | ( | const QString & | skyCultureId, |
| const bool | mergeLines | ||
| ) | const |
Returns the constellation data as a JSON object.
| skyCultureId | The ID of the sky culture to which this constellation belongs. |
| mergeLines | Whether to merge lines into polylines where possible. |