![]() |
Stellarium
25.3
|
Public Member Functions | |
| ScmConstellationArtwork (const std::array< Anchor, 3 > &anchors, const QImage &artwork) | |
| void | setupArt () |
| Setups the artwork in the frame based on the anchors. | |
| void | setAnchor (int index, const Anchor &anchor) |
| Sets an anchor value at the selected index. More... | |
| const std::array< Anchor, 3 > & | getAnchors () const |
| Gets the anchors of the artwork. More... | |
| void | setArtwork (const QImage &artwork) |
| Sets the size of the artwork in pixels. More... | |
| const QImage & | getArtwork () const |
| Gets the artwork. More... | |
| bool | getHasArt () const |
| Get the indicator if the artwork contains art. More... | |
| void | draw (StelCore *core) const |
| Draws the artwork. More... | |
| void | draw (StelCore *core, StelPainter &painter) const |
| Draws the artwork. More... | |
| QJsonObject | toJson (const QString &relativePath) const |
| Converts the artwork into stalleriums json format. More... | |
| bool | save (const QString &filepath) const |
| Writes the image of the artwork to the disk. More... | |
| void | reset () |
| Resets the artwork state. | |
| void scm::ScmConstellationArtwork::draw | ( | StelCore * | core | ) | const |
Draws the artwork.
| core | The core to use to draw the artwork. |
| void scm::ScmConstellationArtwork::draw | ( | StelCore * | core, |
| StelPainter & | painter | ||
| ) | const |
Draws the artwork.
| core | The core to use to draw the artwork. |
| const std::array<Anchor, 3>& scm::ScmConstellationArtwork::getAnchors | ( | ) | const |
Gets the anchors of the artwork.
| const QImage& scm::ScmConstellationArtwork::getArtwork | ( | ) | const |
Gets the artwork.
| bool scm::ScmConstellationArtwork::getHasArt | ( | ) | const |
Get the indicator if the artwork contains art.
| bool scm::ScmConstellationArtwork::save | ( | const QString & | filepath | ) | const |
Writes the image of the artwork to the disk.
| filepath | The filepath to write the artwork to. |
| void scm::ScmConstellationArtwork::setAnchor | ( | int | index, |
| const Anchor & | anchor | ||
| ) |
Sets an anchor value at the selected index.
| index | The index to set the anchor. |
| anchor | The anchor to be set. |
| void scm::ScmConstellationArtwork::setArtwork | ( | const QImage & | artwork | ) |
Sets the size of the artwork in pixels.
| Artwork | The size of the artwork. |
| QJsonObject scm::ScmConstellationArtwork::toJson | ( | const QString & | relativePath | ) | const |
Converts the artwork into stalleriums json format.
| relativePath | The relative path to the artwork on disk. |