|
Krita Source Code Documentation
|
#include <KoSnapProxy.h>
Public Member Functions | |
| KoCanvasBase * | canvas () |
| returns canvas we are working on | |
| KoSnapProxy (KoSnapGuide *snapGuide) | |
| QList< QPointF > | pointsFromShape (KoShape *shape) |
| returns list of points from given shape | |
| QList< QPointF > | pointsInRect (const QRectF &rect, bool omitEditedShape) |
| returns list of points in given rectangle in document coordinates | |
| QList< KoPathSegment > | segmentsInRect (const QRectF &rect, bool omitEditedShape) |
| returns list of points in given rectangle in document coordinates | |
| QList< KoShape * > | shapes (bool omitEditedShape=false) |
| returns list of all shapes | |
| QList< KoShape * > | shapesInRect (const QRectF &rect, bool omitEditedShape=false) |
| returns list of shape in given rectangle in document coordinates | |
Private Attributes | |
| KoSnapGuide * | m_snapGuide |
This class provides access to different shape related snap targets to snap strategies.
Definition at line 22 of file KoSnapProxy.h.
| KoSnapProxy::KoSnapProxy | ( | KoSnapGuide * | snapGuide | ) |
Definition at line 16 of file KoSnapProxy.cpp.
| KoCanvasBase * KoSnapProxy::canvas | ( | ) |
returns canvas we are working on
Definition at line 172 of file KoSnapProxy.cpp.
References KoSnapGuide::canvas, and m_snapGuide.
returns list of points from given shape
Definition at line 63 of file KoSnapProxy.cpp.
References KoShape::absoluteTransformation(), KoShape::boundingRect(), KoSnapGuide::ignoredPathPoints(), KoShape::isVisible(), m_snapGuide, p, KoShape::snapData(), and KoSnapData::snapPoints().
| QList< QPointF > KoSnapProxy::pointsInRect | ( | const QRectF & | rect, |
| bool | omitEditedShape ) |
returns list of points in given rectangle in document coordinates
Definition at line 21 of file KoSnapProxy.cpp.
References pointsFromShape(), shapes(), and shapesInRect().
| QList< KoPathSegment > KoSnapProxy::segmentsInRect | ( | const QRectF & | rect, |
| bool | omitEditedShape ) |
returns list of points in given rectangle in document coordinates
Definition at line 104 of file KoSnapProxy.cpp.
References KoShape::absoluteTransformation(), KoPathSegment::boundingRect(), KoPathSegment::controlPointRect(), KoShape::documentToShape(), KoPathSegment::first, KoSnapGuide::ignoredPathPoints(), m_snapGuide, KoPathSegment::mapped(), KoPathSegment::second, shapes(), shapesInRect(), KoShape::snapData(), and KoSnapData::snapSegments().
returns list of all shapes
Definition at line 140 of file KoSnapProxy.cpp.
References KoSnapGuide::additionalEditedShape, KoSnapGuide::canvas, KoSnapGuide::ignoredPathPoints(), KoSnapGuide::ignoredShapes, KoShape::isVisible(), m_snapGuide, KoPathPoint::parent(), KoCanvasBase::shapeManager(), and KoShapeManager::shapes.
returns list of shape in given rectangle in document coordinates
Definition at line 35 of file KoSnapProxy.cpp.
References KoSnapGuide::additionalEditedShape, KoShape::boundingRect(), KoSnapGuide::canvas, KoSnapGuide::ignoredPathPoints(), KoSnapGuide::ignoredShapes, m_snapGuide, KoPathPoint::parent(), KoCanvasBase::shapeManager(), shapes(), and KoShapeManager::shapesAt().
|
private |
Definition at line 46 of file KoSnapProxy.h.