class SkPathEffectBase : public SkPathEffect {
public:
SkPathEffectBase() {}
/** \class PointData
PointDataaggregatesalltheinformationneededtodrawthepoint primitivesreturnedbyan'asPoints'call.
*/ class PointData {
public:
PointData()
: fFlags(0)
, fPoints(nullptr)
, fNumPoints(0) {
fSize.set(SK_Scalar1, SK_Scalar1); // 'asPoints' needs to initialize/fill-in 'fClipRect' if it sets // the kUseClip flag
}
~PointData() { delete [] fPoints;
}
// TODO: consider using passed-in flags to limit the work asPoints does. // For example, a kNoPath flag could indicate don't bother generating // stamped solutions.
// Currently none of these flags are supported. enum PointFlags {
kCircles_PointFlag = 0x01, // draw points as circles (instead of rects)
kUsePath_PointFlag = 0x02, // draw points as stamps of the returned path
kUseClip_PointFlag = 0x04, // apply 'fClipRect' before drawing the points
};
uint32_t fFlags; // flags that impact the drawing of the points
SkPoint* fPoints; // the center point of each generated point int fNumPoints; // number of points in fPoints
SkVector fSize; // the size to draw the points
SkRect fClipRect; // clip required to draw the points (if kUseClip is set)
SkPath fPath; // 'stamp' to be used at each point (if kUsePath is set)
SkPath fFirst; // If not empty, contains geometry for first point
SkPath fLast; // If not empty, contains geometry for last point
// Compute a conservative bounds for its effect, given the bounds of the path. 'bounds' is // both the input and output; if false is returned, fast bounds could not be calculated and // 'bounds' is undefined. // // If 'bounds' is null, performs a dry-run determining if bounds could be computed.
virtual bool computeFastBounds(SkRect* bounds) const = 0;
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.