#include <bvgl_triangle_interpolation_iterator.h>
Public Member Functions | |
bvgl_triangle_interpolation_iterator (double *verts_x, double *verts_y, T *values, unsigned int v0=0, unsigned int v1=1, unsigned int v2=2) | |
constructor. | |
virtual void | reset () |
Resets the scan iterator to before the first scan line. | |
virtual bool | next () |
Tries to move to the next scan line. | |
virtual int | scany () const |
y-coordinate of the current scan line. | |
virtual int | startx () const |
Returns starting x-value of the current scan line. | |
virtual int | endx () const |
Returns ending x-value of the current scan line. | |
T | value_at (int x) |
returns the interpolated value at location x in the current scanline. | |
int | count () |
Protected Attributes | |
vgl_triangle_scan_iterator < double > | tri_it_ |
double | s0_ |
double | s1_ |
double | s2_ |
Definition at line 11 of file bvgl_triangle_interpolation_iterator.h.
bvgl_triangle_interpolation_iterator< T >::bvgl_triangle_interpolation_iterator | ( | double * | verts_x, |
double * | verts_y, | ||
T * | values, | ||
unsigned int | v0 = 0 , |
||
unsigned int | v1 = 1 , |
||
unsigned int | v2 = 2 |
||
) |
constructor.
Definition at line 17 of file bvgl_triangle_interpolation_iterator.txx.
int bvgl_triangle_interpolation_iterator< T >::endx | ( | ) | const [virtual] |
Returns ending x-value of the current scan line.
endx() should be larger than startx(), unless the scan line is empty
Implements vgl_region_scan_iterator.
Definition at line 79 of file bvgl_triangle_interpolation_iterator.txx.
bool bvgl_triangle_interpolation_iterator< T >::next | ( | ) | [virtual] |
Tries to move to the next scan line.
Returns false if there are no more scan lines.
Implements vgl_region_scan_iterator.
Definition at line 56 of file bvgl_triangle_interpolation_iterator.txx.
void bvgl_triangle_interpolation_iterator< T >::reset | ( | ) | [virtual] |
Resets the scan iterator to before the first scan line.
After calling this function, next() needs to be called before startx() and endx() form a valid scan line.
Implements vgl_region_scan_iterator.
Definition at line 48 of file bvgl_triangle_interpolation_iterator.txx.
int bvgl_triangle_interpolation_iterator< T >::scany | ( | ) | const [virtual] |
y-coordinate of the current scan line.
Implements vgl_region_scan_iterator.
Definition at line 63 of file bvgl_triangle_interpolation_iterator.txx.
int bvgl_triangle_interpolation_iterator< T >::startx | ( | ) | const [virtual] |
Returns starting x-value of the current scan line.
startx() should be smaller than endx(), unless the scan line is empty
Implements vgl_region_scan_iterator.
Definition at line 71 of file bvgl_triangle_interpolation_iterator.txx.
T bvgl_triangle_interpolation_iterator< T >::value_at | ( | int | x | ) |
returns the interpolated value at location x in the current scanline.
Definition at line 87 of file bvgl_triangle_interpolation_iterator.txx.
double bvgl_triangle_interpolation_iterator< T >::s0_ [protected] |
Definition at line 44 of file bvgl_triangle_interpolation_iterator.h.
double bvgl_triangle_interpolation_iterator< T >::s1_ [protected] |
Definition at line 45 of file bvgl_triangle_interpolation_iterator.h.
double bvgl_triangle_interpolation_iterator< T >::s2_ [protected] |
Definition at line 46 of file bvgl_triangle_interpolation_iterator.h.
vgl_triangle_scan_iterator<double> bvgl_triangle_interpolation_iterator< T >::tri_it_ [protected] |
Definition at line 42 of file bvgl_triangle_interpolation_iterator.h.