![]() |
Stellarium
HEAD
|
Public Member Functions | |
| ScmConstellationImageAnchor (QPointF position, qreal diameter) | |
| void | setDiameter (qreal diameter) |
| Set the diameter of this anchor. More... | |
| void | setPosDiameter (qreal x, qreal y, qreal diameter) |
| Set the position and diameter of this anchor. More... | |
| void | setSelectionReference (ScmConstellationImageAnchor *&anchor) |
| Set the reference to the selected anchor. More... | |
| void | select () |
| Selects this anchor. | |
| void | deselect () |
| Deselects this anchor. | |
| void | setSelectionChangedCallback (std::function< void()> func) |
| Set the selection changed callback function. | |
| void | setPositionChangedCallback (std::function< void()> func) |
| Set the position changed callback function. | |
| void | setMovementBounds (const QRectF &bounds) |
| Set the bounds in which the anchors can be moved. More... | |
| void | setStarHip (StarId hip) |
| set the bound star ID of this anchor. | |
| bool | trySetStarHip (const QString &id) |
| Tries to extract the hip from the star id. More... | |
| const StarId & | getStarHip () const |
| Get the star hip id. More... | |
| void | updateColor () |
| Updates the color of the anchor based on its current state. | |
| Vec2i | getPosition () const |
| Get the position of the anchor in the parent image. More... | |
| void | setPosition (const Vec2i &position) |
| Set the position of the anchor in the parent image. More... | |
| Vec2i ScmConstellationImageAnchor::getPosition | ( | ) | const |
Get the position of the anchor in the parent image.
| const StarId& ScmConstellationImageAnchor::getStarHip | ( | ) | const |
Get the star hip id.
| void ScmConstellationImageAnchor::setDiameter | ( | qreal | diameter | ) |
Set the diameter of this anchor.
| diameter | The diameter of this round anchor. |
| void ScmConstellationImageAnchor::setMovementBounds | ( | const QRectF & | bounds | ) |
Set the bounds in which the anchors can be moved.
| bounds | The bound the anchor can be moved in. |
| void ScmConstellationImageAnchor::setPosDiameter | ( | qreal | x, |
| qreal | y, | ||
| qreal | diameter | ||
| ) |
Set the position and diameter of this anchor.
| x | The x position in the scene. |
| y | The y position in the scene. |
| diameter | The diameter of this anchor. |
| void ScmConstellationImageAnchor::setPosition | ( | const Vec2i & | position | ) |
Set the position of the anchor in the parent image.
| position | The position of the anchor. |
| void ScmConstellationImageAnchor::setSelectionReference | ( | ScmConstellationImageAnchor *& | anchor | ) |
Set the reference to the selected anchor.
| anchor | The pointer to the selection anchor. |
| bool ScmConstellationImageAnchor::trySetStarHip | ( | const QString & | id | ) |
Tries to extract the hip from the star id.
| id | The id to extract the hip from. |