LibrePCB Developers Documentation
|
Measure tool providing the measure functionality for the editor states. More...
#include <measuretool.h>
Inherits QObject.
Signals | |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
Public Member Functions | |
MeasureTool ()=delete | |
MeasureTool (const MeasureTool &other)=delete | |
MeasureTool (GraphicsView &view, const LengthUnit &unit, 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 () noexcept |
void | leave () noexcept |
bool | processKeyPressed (const QKeyEvent &e) noexcept |
bool | processKeyReleased (const QKeyEvent &e) noexcept |
bool | processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept |
bool | processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) 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< GraphicsView > | mView |
LengthUnit | mUnit |
QSet< Point > | mSnapCandidates |
Point | mLastScenePos |
Point | mCursorPos |
bool | mCursorSnapped |
tl::optional< Point > | mStartPos |
tl::optional< Point > | mEndPos |
Measure tool providing the measure functionality for the editor states.
|
delete |
|
delete |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
delete |
|
signal |
|
staticprivatenoexcept |
|
staticprivatenoexcept |
|
staticprivatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |