Sk2DPathEffect Class Reference

#include <Sk2DPathEffect.h>

Inherits SkPathEffect.

Collaboration diagram for Sk2DPathEffect:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Sk2DPathEffect (const SkMatrix &mat)
virtual bool filterPath (SkPath *dst, const SkPath &src, SkScalar *width)
virtual void flatten (SkFlattenableWriteBuffer &)
virtual Factory getFactory ()

Protected Member Functions

virtual void begin (const SkIRect &uvBounds, SkPath *dst)
virtual void next (const SkPoint &loc, int u, int v, SkPath *dst)
virtual void end (SkPath *dst)
virtual void nextSpan (int u, int v, int ucount, SkPath *dst)
const SkMatrixgetMatrix () const
 Sk2DPathEffect (SkFlattenableReadBuffer &)

Friends

class Sk2DPathEffectBlitter

Detailed Description

Definition at line 24 of file Sk2DPathEffect.h.


Constructor & Destructor Documentation

Sk2DPathEffect::Sk2DPathEffect ( const SkMatrix mat  ) 
Sk2DPathEffect::Sk2DPathEffect ( SkFlattenableReadBuffer  )  [protected]

Member Function Documentation

virtual void Sk2DPathEffect::begin ( const SkIRect uvBounds,
SkPath dst 
) [protected, virtual]

New virtual, to be overridden by subclasses. This is called once from filterPath, and provides the uv parameter bounds for the path. Subsequent calls to next() will receive u and v values within these bounds, and then a call to end() will signal the end of processing.

virtual void Sk2DPathEffect::end ( SkPath dst  )  [protected, virtual]
virtual bool Sk2DPathEffect::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.

virtual void Sk2DPathEffect::flatten ( SkFlattenableWriteBuffer  )  [virtual]

Override this to write data specific to your subclass into the buffer, being sure to call your super-class' version first. This data will later be passed to your Factory function, returned by getFactory().

Reimplemented from SkFlattenable.

virtual Factory Sk2DPathEffect::getFactory (  )  [virtual]

Implement this to return a factory function pointer that can be called to recreate your class given a buffer (previously written to by your override of flatten().

Implements SkFlattenable.

const SkMatrix& Sk2DPathEffect::getMatrix (  )  const [inline, protected]

Definition at line 56 of file Sk2DPathEffect.h.

virtual void Sk2DPathEffect::next ( const SkPoint loc,
int  u,
int  v,
SkPath dst 
) [protected, virtual]
virtual void Sk2DPathEffect::nextSpan ( int  u,
int  v,
int  ucount,
SkPath dst 
) [protected, virtual]

Low-level virtual called per span of locations in the u-direction. The default implementation calls next() repeatedly with each location.


Friends And Related Function Documentation

friend class Sk2DPathEffectBlitter [friend]

Definition at line 69 of file Sk2DPathEffect.h.


The documentation for this class was generated from the following file:

Generated on Tue Oct 20 11:03:41 2009 for Skia by  doxygen 1.6.1