8 #ifndef SkPathMeasure_DEFINED
9 #define SkPathMeasure_DEFINED
13 #include "include/private/base/SkTDArray.h"
48 kGetPosition_MatrixFlag = 0x01,
49 kGetTangent_MatrixFlag = 0x02,
50 kGetPosAndTan_MatrixFlag = kGetPosition_MatrixFlag | kGetTangent_MatrixFlag
float SkScalar
Definition: SkScalar.h:14
Definition: SkContourMeasure.h:95
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
Definition: SkPathMeasure.h:15
bool isClosed()
Return true if the current contour is closed()
bool getMatrix(SkScalar distance, SkMatrix *matrix, MatrixFlags flags=kGetPosAndTan_MatrixFlag)
Pins distance to 0 <= distance <= getLength(), and then computes the corresponding matrix (by calling...
SkScalar getLength()
Return the total length of the current contour, or 0 if no path is associated (e.g.
SkPathMeasure(SkPathMeasure &&)=default
bool nextContour()
Move to the next contour in the path.
MatrixFlags
Definition: SkPathMeasure.h:47
void setPath(const SkPath *, bool forceClosed)
Reset the pathmeasure with the specified path.
SkPathMeasure & operator=(SkPathMeasure &&)=default
SkPathMeasure(const SkPath &path, bool forceClosed, SkScalar resScale=1)
Initialize the pathmeasure with the specified path.
bool getSegment(SkScalar startD, SkScalar stopD, SkPath *dst, bool startWithMoveTo)
Given a start and stop distance, return in dst the intervening segment(s).
bool getPosTan(SkScalar distance, SkPoint *position, SkVector *tangent)
Pins distance to 0 <= distance <= getLength(), and then computes the corresponding position and tange...
SkPath contain geometry.
Definition: SkPath.h:58