#include <KoClipMask.h>
Definition at line 19 of file KoClipMask.cpp.
◆ ~Private()
Definition at line 40 of file KoClipMask.cpp.
40 {
43 }
QList< KoShape * > shapes
◆ KoClipMask() [1/2]
| KoClipMask::KoClipMask |
( |
| ) |
|
Definition at line 56 of file KoClipMask.cpp.
58{
59}
QSharedDataPointer< Private > m_d
◆ ~KoClipMask()
| KoClipMask::~KoClipMask |
( |
| ) |
|
◆ KoClipMask() [2/2]
◆ clone()
◆ contentCoordinates()
◆ coordinates()
◆ drawMask()
| void KoClipMask::drawMask |
( |
QPainter * | painter, |
|
|
KoShape * | shape ) |
Definition at line 146 of file KoClipMask.cpp.
147{
148 painter->save();
149
150 QPainterPath clipPathInShapeSpace;
151
154 clipPathInShapeSpace.addPolygon(relativeToShape.map(
m_d->maskRect));
155 } else {
156 clipPathInShapeSpace.addRect(
m_d->maskRect);
157 clipPathInShapeSpace =
m_d->extraShapeTransform.map(clipPathInShapeSpace);
158 }
159
160 painter->setClipPath(clipPathInShapeSpace, Qt::IntersectClip);
161
164
165 painter->setTransform(relativeToShape, true);
166 } else {
167 painter->setTransform(
m_d->extraShapeTransform,
true);
168 }
169
173
174 painter->restore();
175}
void setShapes(const QList< KoShape * > &shapes)
virtual QRectF outlineRect() const
QTransform mapToRect(const QRectF &rect)
References m_d, KisAlgebra2D::mapToRect(), KoFlake::ObjectBoundingBox, KoShape::outlineRect(), p, and KoShapePainter::setShapes().
◆ isEmpty()
| bool KoClipMask::isEmpty |
( |
| ) |
const |
◆ maskRect()
| QRectF KoClipMask::maskRect |
( |
| ) |
const |
◆ operator=()
◆ Private() [1/2]
◆ Private() [2/2]
| KoClipMask::Private |
( |
const Private & | rhs | ) |
|
|
inline |
Definition at line 25 of file KoClipMask.cpp.
26 : QSharedData()
31 {
32 Q_FOREACH (
KoShape *shape, rhs.shapes) {
35
37 }
38 }
virtual KoShape * cloneShape() const
creates a deep copy of the shape or shape's subtree
#define KIS_ASSERT_RECOVER(cond)
QTransform extraShapeTransform
KoFlake::CoordinateSystem coordinates
KoFlake::CoordinateSystem contentCoordinates
References KoShape::cloneShape(), and KIS_ASSERT_RECOVER.
◆ setContentCoordinates()
◆ setCoordinates()
◆ setExtraShapeOffset()
| void KoClipMask::setExtraShapeOffset |
( |
const QPointF & | value | ) |
|
◆ setMaskRect()
| void KoClipMask::setMaskRect |
( |
const QRectF & | value | ) |
|
◆ setShapes()
◆ shapes()
◆ contentCoordinates
◆ coordinates
◆ extraShapeTransform
| QTransform KoClipMask::extraShapeTransform |
◆ m_d
| QSharedDataPointer<Private> KoClipMask::m_d |
|
private |
◆ maskRect
| QRectF KoClipMask::maskRect = QRectF(-0.1, -0.1, 1.2, 1.2) |
◆ shapes
The documentation for this class was generated from the following files: