Go to the documentation of this file.
35 #ifndef NAV_GRID_ITERATORS_SUB_GRID_H
36 #define NAV_GRID_ITERATORS_SUB_GRID_H
59 unsigned int width,
unsigned int height)
68 :
SubGrid(info, bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight()) {}
80 unsigned int width,
unsigned int height);
89 :
SubGrid(info, index, bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight()) {}
104 #endif // NAV_GRID_ITERATORS_SUB_GRID_H
SubGrid(const nav_grid::NavGridInfo *info, const nav_grid::Index &index, const nav_core2::UIntBounds &bounds)
Public constructor using UIntBounds object that takes in an arbitrary index.
SubGrid begin() const override
Iterator for looping through every index within an aligned rectangular portion of the grid.
SubGrid(const nav_grid::NavGridInfo *info, unsigned int min_x, unsigned int min_y, unsigned int width, unsigned int height)
Public Constructor.
SubGrid(const nav_grid::NavGridInfo *info, const nav_core2::UIntBounds &bounds)
Public Constructor using UIntBounds object.
SubGrid end() const override
GenericIndex< unsigned int > Index
void increment() override
Increase the iterator to the next element.
bool fieldsEqual(const SubGrid &other) override
Additional check for whether fields of derived iterators are equal.