|
Krita Source Code Documentation
|
#include <KoMarker.h>
Inheritance diagram for KoMarker:Public Types | |
| enum | MarkerCoordinateSystem { StrokeWidth , UserSpaceOnUse } |
Public Member Functions | |
| void | applyShapeStroke (const KoShape *shape, KoShapeStroke *stroke, const QPointF &pos, qreal strokeWidth, qreal nodeAngle) |
| QRectF | boundingRect (qreal strokeWidth, qreal nodeAngle) const |
| bool | compareShapesTo (const QList< KoShape * > other) const |
| MarkerCoordinateSystem | coordinateSystem () const |
| void | drawPreview (QPainter *painter, const QRectF &previewRect, const QPen &pen, KoFlake::MarkerPosition position) |
| qreal | explicitOrientation () const |
| bool | hasAutoOrientation () const |
| KoMarker () | |
| KoMarker (const KoMarker &rhs) | |
| QTransform | markerTransform (qreal strokeWidth, qreal nodeAngle, const QPointF &pos=QPointF()) |
| qreal | maxInset (qreal strokeWidth) const |
| QString | name () const |
| bool | operator== (const KoMarker &other) const |
| bool | operator== (const KoMarker::Private &other) const |
| QPainterPath | outline (qreal strokeWidth, qreal nodeAngle) const |
| void | paintAtPosition (QPainter *painter, const QPointF &pos, qreal strokeWidth, qreal nodeAngle) |
paintAtOrigin paints the marker at the position pos. Scales and rotates the marker if needed. | |
| Private () | |
| Private (const Private &rhs) | |
| QPointF | referencePoint () const |
| QSizeF | referenceSize () const |
| void | setAutoOrientation (bool value) |
| void | setCoordinateSystem (MarkerCoordinateSystem value) |
| void | setExplicitOrientation (qreal value) |
| void | setReferencePoint (const QPointF &value) |
| void | setReferenceSize (const QSizeF &size) |
| void | setShapes (const QList< KoShape * > &shapes) |
| QList< KoShape * > | shapes () const |
| ~KoMarker () | |
| ~Private () | |
Static Public Member Functions | |
| static MarkerCoordinateSystem | coordinateSystemFromString (const QString &value) |
| static QString | coordinateSystemToString (MarkerCoordinateSystem value) |
Public Attributes | |
| MarkerCoordinateSystem | coordinateSystem |
| qreal | explicitOrientation |
| bool | hasAutoOrientation |
| QString | name |
| QPointF | referencePoint |
| QSizeF | referenceSize |
| QScopedPointer< KoShapePainter > | shapePainter |
| QList< KoShape * > | shapes |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Definition at line 28 of file KoMarker.cpp.
| Enumerator | |
|---|---|
| StrokeWidth | |
| UserSpaceOnUse | |
Definition at line 42 of file KoMarker.h.
|
inline |
Definition at line 38 of file KoMarker.cpp.
| KoMarker::KoMarker | ( | ) |
Definition at line 119 of file KoMarker.cpp.
| KoMarker::~KoMarker | ( | ) |
| KoMarker::KoMarker | ( | const KoMarker & | rhs | ) |
Definition at line 134 of file KoMarker.cpp.
| void KoMarker::applyShapeStroke | ( | const KoShape * | shape, |
| KoShapeStroke * | stroke, | ||
| const QPointF & | pos, | ||
| qreal | strokeWidth, | ||
| qreal | nodeAngle ) |
Definition at line 316 of file KoMarker.cpp.
References KoShape::absoluteTransformation(), KoShape::background(), boundingRect(), KoFlake::cloneGradient(), KoShapeStroke::color, d, KisAlgebra2D::ensureRectNotSmaller(), KIS_ASSERT_RECOVER_RETURN, KoShape::linearizeSubtree(), KoShapeStroke::lineBrush(), KoShape::outline(), KoShape::setBackground(), KoShape::setStroke(), KoShape::stroke(), and toQShared().
| QRectF KoMarker::boundingRect | ( | qreal | strokeWidth, |
| qreal | nodeAngle ) const |
Bounding rect of the marker in local coordinates. It is assumed that the marker is painted with the reference point placed at position (0,0)
Definition at line 256 of file KoMarker.cpp.
References KoShape::boundingRect(), and d.
Definition at line 83 of file KoMarker.cpp.
| MarkerCoordinateSystem KoMarker::coordinateSystem | ( | ) | const |
|
static |
Definition at line 155 of file KoMarker.cpp.
References StrokeWidth, UserSpaceOnUse, and value().
|
static |
Definition at line 166 of file KoMarker.cpp.
References StrokeWidth, and value().
| void KoMarker::drawPreview | ( | QPainter * | painter, |
| const QRectF & | previewRect, | ||
| const QPen & | pen, | ||
| KoFlake::MarkerPosition | position ) |
Draws a preview of the marker in previewRect of painter
Definition at line 285 of file KoMarker.cpp.
References KoFlake::EndMarker, KoFlake::MidMarker, outline(), paintAtPosition(), and KoFlake::StartMarker.
| qreal KoMarker::explicitOrientation | ( | ) | const |
| bool KoMarker::hasAutoOrientation | ( | ) | const |
|
inline |
Definition at line 97 of file KoMarker.cpp.
| qreal KoMarker::maxInset | ( | qreal | strokeWidth | ) | const |
Return maximum distance that the marker can take outside the shape itself
Definition at line 243 of file KoMarker.cpp.
References boundingRect(), and KisAlgebra2D::norm().
| QString KoMarker::name | ( | ) | const |
Display name of the marker
| bool KoMarker::operator== | ( | const KoMarker & | other | ) | const |
|
inline |
Definition at line 45 of file KoMarker.cpp.
| QPainterPath KoMarker::outline | ( | qreal | strokeWidth, |
| qreal | nodeAngle ) const |
Outline of the marker in local coordinates. It is assumed that the marker is painted with the reference point placed at position (0,0)
Definition at line 269 of file KoMarker.cpp.
References KoShape::absoluteTransformation(), d, KoShape::outline(), and outline().
| void KoMarker::paintAtPosition | ( | QPainter * | painter, |
| const QPointF & | pos, | ||
| qreal | strokeWidth, | ||
| qreal | nodeAngle ) |
paintAtOrigin paints the marker at the position pos. Scales and rotates the marker if needed.
Definition at line 228 of file KoMarker.cpp.
References d.
|
inline |
Definition at line 31 of file KoMarker.cpp.
|
inline |
Definition at line 59 of file KoMarker.cpp.
References KoShape::cloneShape().
| QPointF KoMarker::referencePoint | ( | ) | const |
| QSizeF KoMarker::referenceSize | ( | ) | const |
| void KoMarker::setAutoOrientation | ( | bool | value | ) |
| void KoMarker::setCoordinateSystem | ( | KoMarker::MarkerCoordinateSystem | value | ) |
| void KoMarker::setExplicitOrientation | ( | qreal | value | ) |
| void KoMarker::setReferencePoint | ( | const QPointF & | value | ) |
| void KoMarker::setReferenceSize | ( | const QSizeF & | size | ) |
| KoMarker::MarkerCoordinateSystem KoMarker::coordinateSystem |
Definition at line 73 of file KoMarker.cpp.
|
private |
Definition at line 105 of file KoMarker.h.
| qreal KoMarker::explicitOrientation |
Definition at line 78 of file KoMarker.cpp.
| bool KoMarker::hasAutoOrientation |
Definition at line 77 of file KoMarker.cpp.
| QString KoMarker::name |
Definition at line 72 of file KoMarker.cpp.
| QPointF KoMarker::referencePoint |
Definition at line 74 of file KoMarker.cpp.
| QSizeF KoMarker::referenceSize |
Definition at line 75 of file KoMarker.cpp.
| QScopedPointer<KoShapePainter> KoMarker::shapePainter |
Definition at line 81 of file KoMarker.cpp.
Definition at line 80 of file KoMarker.cpp.