![]() |
Stellarium
25.3
|
Public Slots | |
| void | setSearchMode (bool b) |
| Is called when the search dialog is opend and closed. | |
| void | setMoveToAnotherStart () |
| Is called when the the user is moved to another star. | |
Public Member Functions | |
| void | drawLine (StelCore *core) const |
| Draws the line between the start and the current end point. More... | |
| void | handleMouseClicks (QMouseEvent *) |
| Handle mouse clicks. More... | |
| bool | handleMouseMoves (int x, int y, Qt::MouseButtons b) |
| Handle mouse moves. More... | |
| void | handleKeys (QKeyEvent *e) |
| Handle key events. More... | |
| std::optional< SkyPoint > | findNearestPoint (int x, int y, StelProjectorP prj) const |
| Finds the nearest sky point to the given position. More... | |
| void | undoLastLine () |
| Undo the last drawn line. | |
| std::vector< StarLine > | getStars () const |
| Get the drawn stick figures as stars if available. More... | |
| std::vector< CoordinateLine > | getCoordinates () const |
| Get the drawn stick figures as coordinates. More... | |
| void | loadLines (const std::vector< CoordinateLine > &coordinates, const std::vector< StarLine > &stars) |
| Loads lines into the buffer from a tuple of coordinates and stars. | |
| void | setTool (DrawTools tool) |
| Set the active draw tool. More... | |
| void | setDrawingMode (DrawingMode mode) |
| Sets the drawing mode. More... | |
| void | resetDrawing () |
| Resets the currently drawn lines. | |
Static Public Attributes | |
| static const StelCore::FrameType | drawFrame = StelCore::FrameJ2000 |
| The frame that is used for calculation and is drawn on. | |
| void scm::ScmDraw::drawLine | ( | StelCore * | core | ) | const |
Draws the line between the start and the current end point.
| core | The core used for drawing the line. |
| std::optional<SkyPoint> scm::ScmDraw::findNearestPoint | ( | int | x, |
| int | y, | ||
| StelProjectorP | prj | ||
| ) | const |
Finds the nearest sky point to the given position.
| x | The x viewport coordinate of the mouse. |
| y | The y viewport coordinate of the mouse. |
| prj | The projector to use for the calculation. |
| std::vector<CoordinateLine> scm::ScmDraw::getCoordinates | ( | ) | const |
Get the drawn stick figures as coordinates.
| std::vector<StarLine> scm::ScmDraw::getStars | ( | ) | const |
Get the drawn stick figures as stars if available.
| void scm::ScmDraw::handleKeys | ( | QKeyEvent * | e | ) |
Handle key events.
Please note that most of the interactions will be done through the GUI module.
| e | the Key event |
| void scm::ScmDraw::handleMouseClicks | ( | QMouseEvent * | ) |
Handle mouse clicks.
Please note that most of the interactions will be done through the GUI module.
| bool scm::ScmDraw::handleMouseMoves | ( | int | x, |
| int | y, | ||
| Qt::MouseButtons | b | ||
| ) |
Handle mouse moves.
Please note that most of the interactions will be done through the GUI module.
|
inline |
Sets the drawing mode.
| mode | The drawing mode to use. |
| void scm::ScmDraw::setTool | ( | DrawTools | tool | ) |
Set the active draw tool.
| tool | The tool to be used. |