#include <Sk1DPathEffect.h>
Inherits SkPathEffect.
Inherited by SkPath1DPathEffect.
Public Member Functions | |
virtual bool | filterPath (SkPath *dst, const SkPath &src, SkScalar *width) |
Protected Member Functions | |
virtual SkScalar | begin (SkScalar contourLength)=0 |
virtual SkScalar | next (SkPath *dst, SkScalar distance, SkPathMeasure &)=0 |
Definition at line 26 of file Sk1DPathEffect.h.
Called at the start of each contour, returns the initial offset into that contour.
Implemented in SkPath1DPathEffect.
virtual bool Sk1DPathEffect::filterPath | ( | SkPath * | dst, | |
const SkPath & | src, | |||
SkScalar * | width | |||
) | [virtual] |
Given a src path and a width value, return true if the patheffect has produced a new path (dst) and a new width value. If false is returned, ignore dst and width. On input, width >= 0 means the src should be stroked On output, width >= 0 means the dst should be stroked
Implements SkPathEffect.
Reimplemented in SkPath1DPathEffect.
virtual SkScalar Sk1DPathEffect::next | ( | SkPath * | dst, | |
SkScalar | distance, | |||
SkPathMeasure & | ||||
) | [protected, pure virtual] |
Called with the current distance along the path, with the current matrix for the point/tangent at the specified distance. Return the distance to travel for the next call. If return <= 0, then that contour is done.
Implemented in SkPath1DPathEffect.