#include <scanline_polygon_fill.h>
Public Member Functions | |
void | addEdge (T id, float x1, float y1, float x2, float y2) |
bool | addPolygon (T id, const Eigen::Vector3f &normal, float d) |
void | draw (std::vector< std::vector< T > > &out) |
void | fill (std::vector< std::vector< T > > &out) |
ScanlinePolygonFill (int width, int height) | |
int | x2w (float x) const |
int | y2h (float y) const |
Private Attributes | |
int | h |
std::map< T, ScanlinePolygon > | polys |
int | w |
float | xmax |
float | xmin |
float | ymax |
float | ymin |
std::list< ScanlineEdge< T > > | yque |
float | zmax |
float | zmin |
float | zthr |
Definition at line 145 of file scanline_polygon_fill.h.
cob_3d_mapping::ScanlinePolygonFill< T >::ScanlinePolygonFill | ( | int | width, |
int | height | ||
) | [inline] |
Definition at line 148 of file scanline_polygon_fill.h.
void cob_3d_mapping::ScanlinePolygonFill< T >::addEdge | ( | T | id, |
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2 | ||
) | [inline] |
Definition at line 160 of file scanline_polygon_fill.h.
bool cob_3d_mapping::ScanlinePolygonFill< T >::addPolygon | ( | T | id, |
const Eigen::Vector3f & | normal, | ||
float | d | ||
) | [inline] |
Definition at line 165 of file scanline_polygon_fill.h.
void cob_3d_mapping::ScanlinePolygonFill< T >::draw | ( | std::vector< std::vector< T > > & | out | ) |
Definition at line 73 of file scanline_polygon_fill.hpp.
void cob_3d_mapping::ScanlinePolygonFill< T >::fill | ( | std::vector< std::vector< T > > & | out | ) |
Definition at line 103 of file scanline_polygon_fill.hpp.
int cob_3d_mapping::ScanlinePolygonFill< T >::x2w | ( | float | x | ) | const [inline] |
Definition at line 172 of file scanline_polygon_fill.h.
int cob_3d_mapping::ScanlinePolygonFill< T >::y2h | ( | float | y | ) | const [inline] |
Definition at line 177 of file scanline_polygon_fill.h.
int cob_3d_mapping::ScanlinePolygonFill< T >::h [private] |
Definition at line 190 of file scanline_polygon_fill.h.
std::map<T,ScanlinePolygon> cob_3d_mapping::ScanlinePolygonFill< T >::polys [private] |
Definition at line 199 of file scanline_polygon_fill.h.
int cob_3d_mapping::ScanlinePolygonFill< T >::w [private] |
Definition at line 189 of file scanline_polygon_fill.h.
float cob_3d_mapping::ScanlinePolygonFill< T >::xmax [private] |
Definition at line 192 of file scanline_polygon_fill.h.
float cob_3d_mapping::ScanlinePolygonFill< T >::xmin [private] |
Definition at line 191 of file scanline_polygon_fill.h.
float cob_3d_mapping::ScanlinePolygonFill< T >::ymax [private] |
Definition at line 194 of file scanline_polygon_fill.h.
float cob_3d_mapping::ScanlinePolygonFill< T >::ymin [private] |
Definition at line 193 of file scanline_polygon_fill.h.
std::list<ScanlineEdge<T> > cob_3d_mapping::ScanlinePolygonFill< T >::yque [private] |
Definition at line 198 of file scanline_polygon_fill.h.
float cob_3d_mapping::ScanlinePolygonFill< T >::zmax [private] |
Definition at line 196 of file scanline_polygon_fill.h.
float cob_3d_mapping::ScanlinePolygonFill< T >::zmin [private] |
Definition at line 195 of file scanline_polygon_fill.h.
float cob_3d_mapping::ScanlinePolygonFill< T >::zthr [private] |
Definition at line 197 of file scanline_polygon_fill.h.