|
Krita Source Code Documentation
|
Functions | |
| bool | isSufficientlyFlat (QPointF curve[4]) |
| void | mergeSubpaths (QList< KoSubpath * > subpaths, KoPathShape *path) |
| void | removeDuplicates (KoPathShape *path) |
| void | simplifySubpath (KoSubpath *subpath, qreal error) |
| void | simplifySubpaths (QList< KoSubpath * > *subpaths, qreal error) |
| QList< KoSubpath * > | split (const KoPathShape &path) |
| void | subdivide (KoSubpath *subpath) |
| KoSubpath | subdivideAux (KoPathPoint *p1, KoPathPoint *p2) |
Variables | |
| const int | MAX_RECURSIVE_DEPTH = 1024 |
| int | recursiveDepth |
| const qreal | SUBDIVISION_COEFF = 100 |
| bool KarbonSimplifyPath::isSufficientlyFlat | ( | QPointF | curve[4] | ) |
Definition at line 201 of file KarbonSimplifyPath.cpp.
References SUBDIVISION_COEFF.
| void KarbonSimplifyPath::mergeSubpaths | ( | QList< KoSubpath * > | subpaths, |
| KoPathShape * | path ) |
Definition at line 249 of file KarbonSimplifyPath.cpp.
References KoPathPoint::activeControlPoint1, KoPathPoint::activeControlPoint2, KoPathShape::clear(), KoPathPoint::controlPoint1, KoPathPoint::controlPoint2, p, KoPathPoint::point, KoPathPoint::setControlPoint1(), and KoPathPoint::setControlPoint2().
| void KarbonSimplifyPath::removeDuplicates | ( | KoPathShape * | path | ) |
Definition at line 93 of file KarbonSimplifyPath.cpp.
References KoPathPoint::activeControlPoint1, KoPathPoint::controlPoint1, p, KoPathPoint::point, and qFuzzyCompare().
Definition at line 228 of file KarbonSimplifyPath.cpp.
References bezierFit(), KoPathShape::pointByIndex(), and KoPathShape::pointCount().
Definition at line 218 of file KarbonSimplifyPath.cpp.
References simplifySubpath().
| QList< KoSubpath * > KarbonSimplifyPath::split | ( | const KoPathShape & | path | ) |
Definition at line 114 of file KarbonSimplifyPath.cpp.
References p.
Definition at line 140 of file KarbonSimplifyPath.cpp.
References p, recursiveDepth, and subdivideAux().
| KoSubpath KarbonSimplifyPath::subdivideAux | ( | KoPathPoint * | p1, |
| KoPathPoint * | p2 ) |
Definition at line 152 of file KarbonSimplifyPath.cpp.
References isSufficientlyFlat(), MAX_RECURSIVE_DEPTH, p, p1, p2, recursiveDepth, KoPathPoint::setControlPoint1(), KoPathPoint::setControlPoint2(), and subdivideAux().
| const int KarbonSimplifyPath::MAX_RECURSIVE_DEPTH = 1024 |
Definition at line 32 of file KarbonSimplifyPath.cpp.
| int KarbonSimplifyPath::recursiveDepth |
Definition at line 33 of file KarbonSimplifyPath.cpp.
| const qreal KarbonSimplifyPath::SUBDIVISION_COEFF = 100 |
Definition at line 31 of file KarbonSimplifyPath.cpp.