#include <line_iterator.h>
Public Member Functions | |
void | advance () |
int | getX () const |
int | getX0 () const |
int | getX1 () const |
int | getY () const |
int | getY0 () const |
int | getY1 () const |
bool | isValid () const |
LineIterator (int x0, int y0, int x1, int y1) | |
Private Attributes | |
int | curpixel_ |
index of current point in line loop. | |
int | deltax_ |
Difference between Xs of endpoints. | |
int | deltay_ |
Difference between Ys of endpoints. | |
int | den_ |
int | num_ |
int | numadd_ |
int | numpixels_ |
int | x0_ |
X coordinate of first end point. | |
int | x1_ |
X coordinate of second end point. | |
int | x_ |
X coordinate of current point. | |
int | xinc1_ |
int | xinc2_ |
int | y0_ |
Y coordinate of first end point. | |
int | y1_ |
Y coordinate of second end point. | |
int | y_ |
Y coordinate of current point. | |
int | yinc1_ |
int | yinc2_ |
An iterator implementing Bresenham Ray-Tracing.
Definition at line 38 of file line_iterator.h.
base_local_planner::LineIterator::LineIterator | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1 | ||
) | [inline] |
Definition at line 41 of file line_iterator.h.
void base_local_planner::LineIterator::advance | ( | ) | [inline] |
Definition at line 99 of file line_iterator.h.
int base_local_planner::LineIterator::getX | ( | ) | const [inline] |
Definition at line 114 of file line_iterator.h.
int base_local_planner::LineIterator::getX0 | ( | ) | const [inline] |
Definition at line 117 of file line_iterator.h.
int base_local_planner::LineIterator::getX1 | ( | ) | const [inline] |
Definition at line 120 of file line_iterator.h.
int base_local_planner::LineIterator::getY | ( | ) | const [inline] |
Definition at line 115 of file line_iterator.h.
int base_local_planner::LineIterator::getY0 | ( | ) | const [inline] |
Definition at line 118 of file line_iterator.h.
int base_local_planner::LineIterator::getY1 | ( | ) | const [inline] |
Definition at line 121 of file line_iterator.h.
bool base_local_planner::LineIterator::isValid | ( | ) | const [inline] |
Definition at line 94 of file line_iterator.h.
int base_local_planner::LineIterator::curpixel_ [private] |
index of current point in line loop.
Definition at line 135 of file line_iterator.h.
int base_local_planner::LineIterator::deltax_ [private] |
Difference between Xs of endpoints.
Definition at line 132 of file line_iterator.h.
int base_local_planner::LineIterator::deltay_ [private] |
Difference between Ys of endpoints.
Definition at line 133 of file line_iterator.h.
int base_local_planner::LineIterator::den_ [private] |
Definition at line 138 of file line_iterator.h.
int base_local_planner::LineIterator::num_ [private] |
Definition at line 138 of file line_iterator.h.
int base_local_planner::LineIterator::numadd_ [private] |
Definition at line 138 of file line_iterator.h.
int base_local_planner::LineIterator::numpixels_ [private] |
Definition at line 138 of file line_iterator.h.
int base_local_planner::LineIterator::x0_ [private] |
X coordinate of first end point.
Definition at line 124 of file line_iterator.h.
int base_local_planner::LineIterator::x1_ [private] |
X coordinate of second end point.
Definition at line 126 of file line_iterator.h.
int base_local_planner::LineIterator::x_ [private] |
X coordinate of current point.
Definition at line 129 of file line_iterator.h.
int base_local_planner::LineIterator::xinc1_ [private] |
Definition at line 137 of file line_iterator.h.
int base_local_planner::LineIterator::xinc2_ [private] |
Definition at line 137 of file line_iterator.h.
int base_local_planner::LineIterator::y0_ [private] |
Y coordinate of first end point.
Definition at line 125 of file line_iterator.h.
int base_local_planner::LineIterator::y1_ [private] |
Y coordinate of second end point.
Definition at line 127 of file line_iterator.h.
int base_local_planner::LineIterator::y_ [private] |
Y coordinate of current point.
Definition at line 130 of file line_iterator.h.
int base_local_planner::LineIterator::yinc1_ [private] |
Definition at line 137 of file line_iterator.h.
int base_local_planner::LineIterator::yinc2_ [private] |
Definition at line 137 of file line_iterator.h.