/** Pins distance to 0 <= distance <= getLength(), and then computes thecorrespondingmatrix(bycallinggetPosTan). Returnsfalseifthereisnopath,orazero-lengthpathwasspecified,inwhichcase matrixisunchanged.
*/
[[nodiscard]] bool getMatrix(SkScalar distance, SkMatrix* matrix,
MatrixFlags flags = kGetPosAndTan_MatrixFlag) const;
/** Given a start and stop distance, append to dst the intervening segment(s). Ifthesegmentiszero-length,returnfalse,elsereturntrue. startDandstopDarepinnedtolegalvalues(0..getLength()).IfstartD>stopD thenreturnfalse(andleavedstuntouched). BeginthesegmentwithamoveToifstartWithMoveToistrue
*/
[[nodiscard]] bool getSegment(SkScalar startD, SkScalar stopD, SkPathBuilder* dst, bool startWithMoveTo) const;
/** Return true if the contour is closed()
*/ bool isClosed() const { return fIsClosed; }
/** Measurement data for individual verbs.
*/ struct VerbMeasure {
SkScalar fDistance; // Cumulative distance along the current contour.
SkPathVerb fVerb; // Verb type.
SkSpan<const SkPoint> fPts; // Verb points.
};
private: struct Segment;
public: /** Utility for iterating over the current contour verbs: * *for(constautoverb_measure:contour_measure){ *... *}
*/ class ForwardVerbIterator final { public:
VerbMeasure operator*() const;
static SkSpan<const Segment> LastSegForCurrentVerb(const SkSpan<const Segment>& segs) {
size_t i = 1; while (i < segs.size() && segs[0].fPtIndex == segs[i].fPtIndex) {
++i;
}
return segs.subspan(i - 1);
}
// Remaining segments for forward iteration. The first segment in the span is // adjusted to always point to the last segment of the current verb, such that its distance // corresponds to the verb distance.
SkSpan<const Segment> fSegments;
// All path points (indexed in segments).
SkSpan<const SkPoint> fPts;
};
private: struct Segment {
SkScalar fDistance; // total distance up to this point unsigned fPtIndex; // index into the fPts array unsigned fTValue : 30; unsigned fType : 2; // actually the enum SkSegType // See SkPathMeasurePriv.h
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.21Bemerkung:
(vorverarbeitet am 2026-08-24)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.