![]() |
Stellarium
25.4
|
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 | drawLines (StelCore *core) const |
| Draws the constellation lines that are currently being edited. 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< ConstellationLine > | getConstellationLines () const |
| Gets the lines of the constellation. More... | |
| void | loadLines (const std::vector< ConstellationLine > &lines) |
| Loads constellation lines into the buffer. More... | |
| 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::drawLines | ( | StelCore * | core | ) | const |
Draws the constellation lines that are currently being edited.
| 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<ConstellationLine> scm::ScmDraw::getConstellationLines | ( | ) | const |
Gets the lines of the constellation.
| 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.
| void scm::ScmDraw::loadLines | ( | const std::vector< ConstellationLine > & | lines | ) |
Loads constellation lines into the buffer.
| lines | The lines to load. |
|
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. |