|
Krita Source Code Documentation
|
#include <kis_algebra_2d.h>
Classes | |
| struct | Segment |
| struct | VectorPathPoint |
Public Member Functions | |
| QPainterPath | asPainterPath () const |
| bool | fuzzyComparePointsCyclic (const VectorPath &path, qreal eps=0.0f) const |
| int | pathIndexToSegmentIndex (int index) |
| VectorPathPoint | pointAt (int i) const |
| int | pointsCount () const |
| VectorPath | reversed () const |
| QList< VectorPathPoint > | segmentAt (int i) const |
| QLineF | segmentAtAsLine (int i) const |
| std::optional< Segment > | segmentAtAsSegment (int i) const |
| int | segmentIndexToPathIndex (int index) |
| int | segmentsCount () const |
| VectorPath | trulySimplified (qreal epsDegrees=0.5) const |
| VectorPath (const QList< VectorPathPoint > path) | |
| VectorPath (const QPainterPath &path) | |
Static Public Member Functions | |
| static QList< QPointF > | intersectSegmentWithLineBounded (const QLineF &line, const Segment &segment) |
| static QList< QPointF > | intersectSegmentWithLineBounded (const QLineF &line, const VectorPathPoint &p1, const VectorPathPoint &p2) |
Private Attributes | |
| QPainterPath | m_originalPath |
| QList< VectorPathPoint > | m_points |
Definition at line 586 of file kis_algebra_2d.h.
| KisAlgebra2D::VectorPath::VectorPath | ( | const QPainterPath & | path | ) |
Definition at line 2050 of file kis_algebra_2d.cpp.
References KIS_SAFE_ASSERT_RECOVER, KIS_SAFE_ASSERT_RECOVER_BREAK, and m_points.
| KisAlgebra2D::VectorPath::VectorPath | ( | const QList< VectorPathPoint > | path | ) |
Definition at line 2079 of file kis_algebra_2d.cpp.
References m_points.
| QPainterPath KisAlgebra2D::VectorPath::asPainterPath | ( | ) | const |
Definition at line 2367 of file kis_algebra_2d.cpp.
References KisAlgebra2D::VectorPath::VectorPathPoint::lineTo(), m_originalPath, m_points, KisAlgebra2D::VectorPath::VectorPathPoint::moveTo(), and pointsCount().
| bool KisAlgebra2D::VectorPath::fuzzyComparePointsCyclic | ( | const VectorPath & | path, |
| qreal | eps = 0.0f ) const |
Definition at line 2313 of file kis_algebra_2d.cpp.
References KisAlgebra2D::VectorPath::VectorPathPoint::endPoint, eps, KisAlgebra2D::fuzzyPointCompare(), pointAt(), pointsCount(), qFuzzyIsNull(), segmentsCount(), and KisAlgebra2D::wrapValue().
|
static |
Definition at line 2127 of file kis_algebra_2d.cpp.
References KisBezierUtils::bezierCurve(), KisAlgebra2D::VectorPath::VectorPathPoint::BezierTo, KisAlgebra2D::VectorPath::Segment::controlPoint1, KisAlgebra2D::VectorPath::Segment::controlPoint2, KisAlgebra2D::VectorPath::Segment::endPoint, eps, KisBezierUtils::intersectWithLine(), KisAlgebra2D::isOnLine(), p, KisAlgebra2D::VectorPath::Segment::startPoint, and KisAlgebra2D::VectorPath::Segment::type.
|
static |
Definition at line 2156 of file kis_algebra_2d.cpp.
References intersectSegmentWithLineBounded(), p1, and p2.
| int KisAlgebra2D::VectorPath::pathIndexToSegmentIndex | ( | int | index | ) |
Definition at line 2161 of file kis_algebra_2d.cpp.
References KisAlgebra2D::VectorPath::VectorPathPoint::BezierTo, and m_points.
| VectorPath::VectorPathPoint KisAlgebra2D::VectorPath::pointAt | ( | int | i | ) | const |
Definition at line 2089 of file kis_algebra_2d.cpp.
References m_points.
| int KisAlgebra2D::VectorPath::pointsCount | ( | ) | const |
Definition at line 2084 of file kis_algebra_2d.cpp.
References m_points.
| VectorPath KisAlgebra2D::VectorPath::reversed | ( | ) | const |
Definition at line 2299 of file kis_algebra_2d.cpp.
References m_points, and VectorPath().
| QList< VectorPath::VectorPathPoint > KisAlgebra2D::VectorPath::segmentAt | ( | int | i | ) | const |
Definition at line 2099 of file kis_algebra_2d.cpp.
References m_points, and segmentsCount().
| QLineF KisAlgebra2D::VectorPath::segmentAtAsLine | ( | int | i | ) | const |
Definition at line 2118 of file kis_algebra_2d.cpp.
References segmentAt().
| std::optional< VectorPath::Segment > KisAlgebra2D::VectorPath::segmentAtAsSegment | ( | int | i | ) | const |
Definition at line 2109 of file kis_algebra_2d.cpp.
References segmentAt().
| int KisAlgebra2D::VectorPath::segmentIndexToPathIndex | ( | int | index | ) |
Definition at line 2181 of file kis_algebra_2d.cpp.
References KisAlgebra2D::VectorPath::VectorPathPoint::BezierTo, and m_points.
| int KisAlgebra2D::VectorPath::segmentsCount | ( | ) | const |
Definition at line 2094 of file kis_algebra_2d.cpp.
References m_points.
| VectorPath KisAlgebra2D::VectorPath::trulySimplified | ( | qreal | epsDegrees = 0.5 | ) | const |
Definition at line 2203 of file kis_algebra_2d.cpp.
References KisAlgebra2D::crossProduct(), eps, KisAlgebra2D::fuzzyPointCompare(), kisDegreesToRadians(), m_points, qFuzzyIsNull(), and VectorPath().
|
private |
Definition at line 687 of file kis_algebra_2d.h.
|
private |
Definition at line 688 of file kis_algebra_2d.h.