#include <KoSnapStrategy.h>
Definition at line 22 of file KoSnapStrategy.h.
◆ SnapType
◆ KoSnapStrategy()
Definition at line 25 of file KoSnapStrategy.cpp.
27{
28}
KoSnapGuide::Strategy type() const
returns the strategies type
KoSnapGuide::Strategy m_snapStrategyType
◆ ~KoSnapStrategy()
| virtual KoSnapStrategy::~KoSnapStrategy |
( |
| ) |
|
|
inlinevirtual |
◆ decoration()
| virtual QPainterPath KoSnapStrategy::decoration |
( |
const KoViewConverter & | converter | ) |
const |
|
pure virtual |
◆ scalarProduct()
| qreal KoSnapStrategy::scalarProduct |
( |
const QPointF & | p1, |
|
|
const QPointF & | p2 ) |
|
static |
◆ setSnappedPosition()
| void KoSnapStrategy::setSnappedPosition |
( |
const QPointF & | position, |
|
|
SnapType | snapType ) |
|
protected |
◆ snap()
| virtual bool KoSnapStrategy::snap |
( |
const QPointF & | mousePosition, |
|
|
KoSnapProxy * | proxy, |
|
|
qreal | maxSnapDistance ) |
|
pure virtual |
◆ snappedPosition()
| QPointF KoSnapStrategy::snappedPosition |
( |
| ) |
const |
◆ snappedType()
◆ squareDistance()
| qreal KoSnapStrategy::squareDistance |
( |
const QPointF & | p1, |
|
|
const QPointF & | p2 ) |
|
static |
Definition at line 51 of file KoSnapStrategy.cpp.
52{
53 const qreal dx =
p1.x() -
p2.x();
54 const qreal dy =
p1.y() -
p2.y();
55
56 return dx*dx + dy*dy;
57}
References p1, and p2.
◆ type()
◆ m_snappedPosition
| QPointF KoSnapStrategy::m_snappedPosition |
|
private |
◆ m_snappedType
◆ m_snapStrategyType
The documentation for this class was generated from the following files: