|
Krita Source Code Documentation
|
#include <KoCreatePathTool_p.h>
Inheritance diagram for AngleSnapStrategy:Public Member Functions | |
| void | activate () |
| AngleSnapStrategy (qreal angleStep, bool active) | |
| void | deactivate () |
| QPainterPath | decoration (const KoViewConverter &converter) const override |
| returns the current snap strategy decoration | |
| void | setAngleStep (qreal angleStep) |
| void | setStartPoint (const QPointF &startPoint) |
| bool | snap (const QPointF &mousePosition, KoSnapProxy *proxy, qreal maxSnapDistance) override |
Public Member Functions inherited from KoSnapStrategy | |
| KoSnapStrategy (KoSnapGuide::Strategy type) | |
| QPointF | snappedPosition () const |
| returns the snapped position form the last call to snapToPoints | |
| SnapType | snappedType () const |
| KoSnapGuide::Strategy | type () const |
| returns the strategies type | |
| virtual | ~KoSnapStrategy () |
Private Attributes | |
| bool | m_active |
| qreal | m_angleStep |
| QPointF | m_startPoint |
Additional Inherited Members | |
Public Types inherited from KoSnapStrategy | |
| enum | SnapType { ToPoint = 0 , ToLine } |
Static Public Member Functions inherited from KoSnapStrategy | |
| static qreal | scalarProduct (const QPointF &p1, const QPointF &p2) |
| static qreal | squareDistance (const QPointF &p1, const QPointF &p2) |
Protected Member Functions inherited from KoSnapStrategy | |
| void | setSnappedPosition (const QPointF &position, SnapType snapType) |
| sets the current snapped position | |
Definition at line 98 of file KoCreatePathTool_p.h.
|
inlineexplicit |
Definition at line 101 of file KoCreatePathTool_p.h.
|
inline |
Definition at line 154 of file KoCreatePathTool_p.h.
References m_active.
|
inline |
Definition at line 150 of file KoCreatePathTool_p.h.
References m_active.
|
inlineoverridevirtual |
returns the current snap strategy decoration
Implements KoSnapStrategy.
Definition at line 141 of file KoCreatePathTool_p.h.
References decoration(), m_startPoint, and KoSnapStrategy::snappedPosition().
|
inline |
Definition at line 109 of file KoCreatePathTool_p.h.
References m_angleStep.
|
inline |
Definition at line 105 of file KoCreatePathTool_p.h.
References m_startPoint.
|
inlineoverridevirtual |
Implements KoSnapStrategy.
Definition at line 113 of file KoCreatePathTool_p.h.
References m_active, m_angleStep, m_startPoint, KoSnapStrategy::setSnappedPosition(), KoSnapStrategy::squareDistance(), and KoSnapStrategy::ToLine.
|
private |
Definition at line 161 of file KoCreatePathTool_p.h.
|
private |
Definition at line 160 of file KoCreatePathTool_p.h.
|
private |
Definition at line 159 of file KoCreatePathTool_p.h.