Public Member Functions | Protected Attributes
bvgl_triangle_interpolation_iterator< T > Class Template Reference

#include <bvgl_triangle_interpolation_iterator.h>

Inheritance diagram for bvgl_triangle_interpolation_iterator< T >:
Inheritance graph
[legend]

List of all members.

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.
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_

Detailed Description

template<class T>
class bvgl_triangle_interpolation_iterator< T >

Definition at line 11 of file bvgl_triangle_interpolation_iterator.h.


Constructor & Destructor Documentation

template<class T >
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.


Member Function Documentation

template<class T >
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.

template<class T >
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.

template<class T >
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.

template<class T >
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.

template<class T >
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.

template<class T >
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.


Member Data Documentation

template<class T >
double bvgl_triangle_interpolation_iterator< T >::s0_ [protected]

Definition at line 44 of file bvgl_triangle_interpolation_iterator.h.

template<class T >
double bvgl_triangle_interpolation_iterator< T >::s1_ [protected]

Definition at line 45 of file bvgl_triangle_interpolation_iterator.h.

template<class T >
double bvgl_triangle_interpolation_iterator< T >::s2_ [protected]

Definition at line 46 of file bvgl_triangle_interpolation_iterator.h.

template<class T >
vgl_triangle_scan_iterator<double> bvgl_triangle_interpolation_iterator< T >::tri_it_ [protected]

Definition at line 42 of file bvgl_triangle_interpolation_iterator.h.


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