![]() |
LibrePCB Developers Documentation
|
Measure tool providing the measure functionality for the editor states. More...
#include <measuretool.h>
Inherits QObject.
Collaboration diagram for MeasureTool:Signals | |
| void | infoBoxTextChanged (const QString &text) |
| void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
Public Member Functions | |
| MeasureTool (const MeasureTool &other)=delete | |
| MeasureTool (QObject *parent=nullptr) noexcept | |
| ~MeasureTool () noexcept | |
| void | setSymbol (const Symbol *symbol) noexcept |
| void | setFootprint (const Footprint *footprint) noexcept |
| void | setSchematic (const Schematic *schematic) noexcept |
| void | setBoard (const Board *board) noexcept |
| void | enter (GraphicsScene &scene, const LengthUnit &unit, const Point &pos) noexcept |
| void | leave () noexcept |
| bool | processKeyPressed (int key, Qt::KeyboardModifiers modifiers) noexcept |
| bool | processKeyReleased (int key, Qt::KeyboardModifiers modifiers) noexcept |
| bool | processGraphicsSceneMouseMoved (const Point &pos, Qt::KeyboardModifiers modifiers) noexcept |
| bool | processGraphicsSceneLeftMouseButtonPressed () noexcept |
| bool | processCopy () noexcept |
| bool | processRemove () noexcept |
| bool | processAbortCommand () noexcept |
| MeasureTool & | operator= (const MeasureTool &rhs)=delete |
Private Member Functions | |
| void | updateCursorPosition (Qt::KeyboardModifiers modifiers) noexcept |
| void | updateRulerPositions () noexcept |
| void | updateStatusBarMessage () noexcept |
Static Private Member Functions | |
| static QSet< Point > | snapCandidatesFromSymbol (const Symbol &symbol, const Transform &transform) noexcept |
| static QSet< Point > | snapCandidatesFromFootprint (const Footprint &footprint, const Transform &transform) noexcept |
| static QSet< Point > | snapCandidatesFromPath (const Path &path) noexcept |
| static QSet< Point > | snapCandidatesFromCircle (const Point ¢er, const Length &diameter) noexcept |
Private Attributes | |
| QPointer< GraphicsScene > | mScene |
| LengthUnit | mUnit |
| QSet< Point > | mSnapCandidates |
| Point | mLastScenePos |
| Point | mCursorPos |
| bool | mCursorSnapped |
| std::optional< Point > | mStartPos |
| std::optional< Point > | mEndPos |
Measure tool providing the measure functionality for the editor states.
|
delete |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
noexcept |
|
noexcept |
Here is the call graph for this function:
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
delete |
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
staticprivatenoexcept |
Here is the call graph for this function:
|
staticprivatenoexcept |
Here is the call graph for this function:
Here is the call graph for this function:
|
staticprivatenoexcept |
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |