Public Member Functions | Private Attributes | List of all members
base_local_planner::LineIterator Class Reference

#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. More...
 
int deltax_
 Difference between Xs of endpoints. More...
 
int deltay_
 Difference between Ys of endpoints. More...
 
int den_
 
int num_
 
int numadd_
 
int numpixels_
 
int x0_
 X coordinate of first end point. More...
 
int x1_
 X coordinate of second end point. More...
 
int x_
 X coordinate of current point. More...
 
int xinc1_
 
int xinc2_
 
int y0_
 Y coordinate of first end point. More...
 
int y1_
 Y coordinate of second end point. More...
 
int y_
 Y coordinate of current point. More...
 
int yinc1_
 
int yinc2_
 

Detailed Description

An iterator implementing Bresenham Ray-Tracing.

Definition at line 38 of file line_iterator.h.

Constructor & Destructor Documentation

base_local_planner::LineIterator::LineIterator ( int  x0,
int  y0,
int  x1,
int  y1 
)
inline

Definition at line 41 of file line_iterator.h.

Member Function Documentation

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.

Member Data Documentation

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.


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


base_local_planner
Author(s): Eitan Marder-Eppstein, Eric Perko, contradict@gmail.com
autogenerated on Sun Mar 3 2019 03:44:25