SkPerspIter Class Reference

#include <SkPerspIter.h>

Collaboration diagram for SkPerspIter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkPerspIter (const SkMatrix &m, SkScalar x, SkScalar y, int count)
const SkFixedgetXY () const
int next ()

Detailed Description

Definition at line 22 of file SkPerspIter.h.


Constructor & Destructor Documentation

SkPerspIter::SkPerspIter ( const SkMatrix m,
SkScalar  x,
SkScalar  y,
int  count 
)

Iterate a line through the matrix [x,y] ... [x+count-1, y].

Parameters:
m The matrix we will be iterating a line through
x The initial X coordinate to be mapped through the matrix
y The initial Y coordinate to be mapped through the matrix
count The number of points (x,y) (x+1,y) (x+2,y) ... we will eventually map

Member Function Documentation

const SkFixed* SkPerspIter::getXY (  )  const [inline]

Return the buffer of [x,y] fixed point values we will be filling. This always returns the same value, so it can be saved across calls to next().

Definition at line 36 of file SkPerspIter.h.

int SkPerspIter::next (  ) 

Return the number of [x,y] pairs that have been filled in the getXY() buffer. When this returns 0, the iterator is finished.


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

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