Public Member Functions | Protected Member Functions | Protected Attributes
nav_grid_iterators::RayTrace Class Reference

Line Iterator with Ray Tracing (subpixel accuracy) More...

#include <ray_trace.h>

Inheritance diagram for nav_grid_iterators::RayTrace:
Inheritance graph
[legend]

List of all members.

Public Member Functions

RayTrace begin () const
 Helper function for range-style iteration.
RayTrace end () const
 Helper function for range-style iteration.
nav_grid::SignedIndex getFinalIndex () const override
void increment () override
 Increase the iterator to the next element.
bool operator!= (const RayTrace &other)
 Test if two iterators are not equivalent - required for testing if iterator is at the end.
RayTraceoperator++ ()
 Increase the iterator to the next element.
bool operator== (const RayTrace &other)
 Test if two iterators are equivalent.
 RayTrace (double x0, double y0, double x1, double y1, bool include_last_index=true)
 Public constructor.

Protected Member Functions

 RayTrace (const nav_grid::SignedIndex &index, double x0, double y0, double x1, double y1, bool include_last_index, double dx, double dy, double initial_error, int loop_inc_x, int loop_inc_y)
 Protected constructor that takes in an arbitrary index and other internal parameters.

Protected Attributes

double dx_
double dy_
double error_
bool include_last_index_
double initial_error_
int loop_inc_x_
int loop_inc_y_
double x0_
double x1_
double y0_
double y1_

Detailed Description

Line Iterator with Ray Tracing (subpixel accuracy)

Definition at line 46 of file ray_trace.h.


Constructor & Destructor Documentation

nav_grid_iterators::RayTrace::RayTrace ( double  x0,
double  y0,
double  x1,
double  y1,
bool  include_last_index = true 
)

Public constructor.

Parameters:
x0Start x coordinate
y0Start y coordinate
x1End x coordinate
y1End y coordinate
include_last_indexIf true, will include the end coordinates.

Definition at line 41 of file ray_trace.cpp.

nav_grid_iterators::RayTrace::RayTrace ( const nav_grid::SignedIndex &  index,
double  x0,
double  y0,
double  x1,
double  y1,
bool  include_last_index,
double  dx,
double  dy,
double  initial_error,
int  loop_inc_x,
int  loop_inc_y 
) [protected]

Protected constructor that takes in an arbitrary index and other internal parameters.

Parameters:
indexInitial index
x0Start x coordinate
y0Start y coordinate
x1End x coordinate
y1End y coordinate
include_last_indexIf true, will include the end coordinates.
dx
dy
initial_error
loop_inc_x
loop_inc_y

Definition at line 99 of file ray_trace.cpp.


Member Function Documentation

Helper function for range-style iteration.

Returns:
Iterator representing beginning of the iteration

Definition at line 108 of file ray_trace.cpp.

Helper function for range-style iteration.

Returns:
Iterator representing end of the iteration, with an invalid index

Definition at line 114 of file ray_trace.cpp.

nav_grid::SignedIndex nav_grid_iterators::RayTrace::getFinalIndex ( ) const [override, virtual]

Implements nav_grid_iterators::AbstractLineIterator.

Definition at line 142 of file ray_trace.cpp.

void nav_grid_iterators::RayTrace::increment ( ) [override, virtual]

Increase the iterator to the next element.

Implements nav_grid_iterators::AbstractLineIterator.

Definition at line 128 of file ray_trace.cpp.

bool nav_grid_iterators::RayTrace::operator!= ( const RayTrace other) [inline]

Test if two iterators are not equivalent - required for testing if iterator is at the end.

Definition at line 70 of file ray_trace.h.

RayTrace& nav_grid_iterators::RayTrace::operator++ ( ) [inline]

Increase the iterator to the next element.

Returns:
a reference to the updated iterator.

Definition at line 91 of file ray_trace.h.

bool nav_grid_iterators::RayTrace::operator== ( const RayTrace other) [inline]

Test if two iterators are equivalent.

Definition at line 62 of file ray_trace.h.


Member Data Documentation

Definition at line 126 of file ray_trace.h.

Definition at line 126 of file ray_trace.h.

Definition at line 126 of file ray_trace.h.

Definition at line 125 of file ray_trace.h.

Definition at line 126 of file ray_trace.h.

Definition at line 127 of file ray_trace.h.

Definition at line 127 of file ray_trace.h.

Definition at line 124 of file ray_trace.h.

Definition at line 124 of file ray_trace.h.

Definition at line 124 of file ray_trace.h.

Definition at line 124 of file ray_trace.h.


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


nav_grid_iterators
Author(s):
autogenerated on Wed Jun 26 2019 20:09:45