|
Krita Source Code Documentation
|
Clip path used to clip shapes. More...
#include <KoClipPath.h>
Inheritance diagram for KoClipPath:Public Member Functions | |
| QTransform | clipDataTransformation (KoShape *clippedShape) const |
| QList< KoPathShape * > | clipPathShapes () const |
| Returns the clip path shapes. | |
| Qt::FillRule | clipRule () const |
| Returns the current clip rule. | |
| QList< KoShape * > | clipShapes () const |
| KoClipPath * | clone () const |
| void | collectShapePath (QPainterPath *result, const KoShape *shape) |
| void | compileClipPath () |
| KoFlake::CoordinateSystem | coordinates () const |
| KoClipPath (const KoClipPath &) | |
| KoClipPath (QList< KoShape * > clipShapes, KoFlake::CoordinateSystem coordinates) | |
| KoClipPath & | operator= (const KoClipPath &) |
| QPainterPath | path () const |
| Returns the current clip path with coordinates in percent of the clipped shape size. | |
| QPainterPath | pathForSize (const QSizeF &size) const |
| Returns the current clip path scaled to match the specified shape size. | |
| Private () | |
| Private (const Private &rhs) | |
| void | setClipRule (Qt::FillRule clipRule) |
| Sets the clip rule to be used for the clip path. | |
| ~KoClipPath () | |
| ~Private () | |
Static Public Member Functions | |
| static void | applyClipping (KoShape *clippedShape, QPainter &painter) |
| Applies the clipping to the given painter. | |
Public Attributes | |
| QPainterPath | clipPath |
| the compiled clip path in shape coordinates of the clipped shape | |
| Qt::FillRule | clipRule = Qt::WindingFill |
| KoFlake::CoordinateSystem | coordinates = KoFlake::ObjectBoundingBox |
| QSizeF | initialShapeSize |
| initial size of clipped shape | |
| QTransform | initialTransformToShape |
| initial transformation to shape coordinates of the clipped shape | |
| QList< KoShape * > | shapes |
Private Attributes | |
| QSharedDataPointer< Private > | d |
Clip path used to clip shapes.
Definition at line 34 of file KoClipPath.cpp.
|
inline |
Definition at line 57 of file KoClipPath.cpp.
| KoClipPath::KoClipPath | ( | QList< KoShape * > | clipShapes, |
| KoFlake::CoordinateSystem | coordinates ) |
Create a new shape clipping using the given clip data
| clipShapes | define the clipping shapes, owned by KoClipPath! |
| coordinates | shows if ObjectBoundingBox or UserSpaceOnUse coordinate system is used. |
Definition at line 105 of file KoClipPath.cpp.
References clipShapes(), coordinates, and d.
| KoClipPath::~KoClipPath | ( | ) |
Definition at line 113 of file KoClipPath.cpp.
| KoClipPath::KoClipPath | ( | const KoClipPath & | rhs | ) |
Definition at line 117 of file KoClipPath.cpp.
Applies the clipping to the given painter.
Definition at line 148 of file KoClipPath.cpp.
References KoShape::clipPath(), coordinates, KisAlgebra2D::mapToRect(), KoFlake::ObjectBoundingBox, KoShape::outline(), and path().
| QTransform KoClipPath::clipDataTransformation | ( | KoShape * | clippedShape | ) | const |
Returns the transformation from the clip data path shapes to the current document coordinates of the specified clipped shape. If the specified clipped shape is null, the transformation from clip data path shapes to shape coordinates of the clipped shape at the time of creating this clip path is being returned.
Definition at line 195 of file KoClipPath.cpp.
References KoShape::absoluteTransformation(), d, and KoShape::outline().
| QList< KoPathShape * > KoClipPath::clipPathShapes | ( | ) | const |
Returns the clip path shapes.
Definition at line 174 of file KoClipPath.cpp.
| Qt::FillRule KoClipPath::clipRule | ( | ) | const |
Returns the current clip rule.
| KoClipPath * KoClipPath::clone | ( | ) | const |
Definition at line 128 of file KoClipPath.cpp.
References KoClipPath().
Definition at line 63 of file KoClipPath.cpp.
References KoShape::compareShapeZIndex().
|
inline |
Definition at line 79 of file KoClipPath.cpp.
References KoShape::compareShapeZIndex().
| KoFlake::CoordinateSystem KoClipPath::coordinates | ( | ) | const |
| KoClipPath & KoClipPath::operator= | ( | const KoClipPath & | rhs | ) |
Definition at line 122 of file KoClipPath.cpp.
References d.
| QPainterPath KoClipPath::path | ( | ) | const |
Returns the current clip path with coordinates in percent of the clipped shape size.
Definition at line 164 of file KoClipPath.cpp.
References d.
| QPainterPath KoClipPath::pathForSize | ( | const QSizeF & | size | ) | const |
Returns the current clip path scaled to match the specified shape size.
Definition at line 169 of file KoClipPath.cpp.
References d, and scaleFromPercent().
|
inline |
Definition at line 37 of file KoClipPath.cpp.
|
inline |
Definition at line 41 of file KoClipPath.cpp.
References KoShape::cloneShape(), and KIS_ASSERT_RECOVER.
| void KoClipPath::setClipRule | ( | Qt::FillRule | clipRule | ) |
| QPainterPath KoClipPath::clipPath |
the compiled clip path in shape coordinates of the clipped shape
Definition at line 98 of file KoClipPath.cpp.
| Qt::FillRule KoClipPath::clipRule = Qt::WindingFill |
Definition at line 99 of file KoClipPath.cpp.
| KoFlake::CoordinateSystem KoClipPath::coordinates = KoFlake::ObjectBoundingBox |
Definition at line 100 of file KoClipPath.cpp.
|
private |
Definition at line 77 of file KoClipPath.h.
| QSizeF KoClipPath::initialShapeSize |
initial size of clipped shape
Definition at line 102 of file KoClipPath.cpp.
| QTransform KoClipPath::initialTransformToShape |
initial transformation to shape coordinates of the clipped shape
Definition at line 101 of file KoClipPath.cpp.
Definition at line 97 of file KoClipPath.cpp.