Public Member Functions | Private Attributes
base_local_planner::LineIterator Class Reference

#include <line_iterator.h>

List of all members.

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_

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

Definition at line 99 of file line_iterator.h.

Definition at line 114 of file line_iterator.h.

Definition at line 117 of file line_iterator.h.

Definition at line 120 of file line_iterator.h.

Definition at line 115 of file line_iterator.h.

Definition at line 118 of file line_iterator.h.

Definition at line 121 of file line_iterator.h.

Definition at line 94 of file line_iterator.h.


Member Data Documentation

index of current point in line loop.

Definition at line 135 of file line_iterator.h.

Difference between Xs of endpoints.

Definition at line 132 of file line_iterator.h.

Difference between Ys of endpoints.

Definition at line 133 of file line_iterator.h.

Definition at line 138 of file line_iterator.h.

Definition at line 138 of file line_iterator.h.

Definition at line 138 of file line_iterator.h.

Definition at line 138 of file line_iterator.h.

X coordinate of first end point.

Definition at line 124 of file line_iterator.h.

X coordinate of second end point.

Definition at line 126 of file line_iterator.h.

X coordinate of current point.

Definition at line 129 of file line_iterator.h.

Definition at line 137 of file line_iterator.h.

Definition at line 137 of file line_iterator.h.

Y coordinate of first end point.

Definition at line 125 of file line_iterator.h.

Y coordinate of second end point.

Definition at line 127 of file line_iterator.h.

Y coordinate of current point.

Definition at line 130 of file line_iterator.h.

Definition at line 137 of file line_iterator.h.

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:46:30