43 :
BaseIterator(info), polygon_(polygon), start_index_(0, 0)
45 if (polygon.points.size() == 0)
58 for (
const auto& vertex :
polygon_.points)
60 min_x = std::min(min_x, vertex.x);
61 min_y = std::min(min_y, vertex.y);
62 max_x = std::max(max_x, vertex.x);
63 max_y = std::max(max_y, vertex.y);
70 unsigned int max_x_grid, max_y_grid;
87 :
PolygonFill(other.info_, other.index_, other.polygon_, other.min_x_, other.min_y_, other.width_, other.height_,
93 nav_2d_msgs::Polygon2D polygon,
94 unsigned int min_x,
unsigned int min_y,
unsigned int width,
unsigned int height,
97 min_x_(min_x), min_y_(min_y), width_(width), height_(height), start_index_(start_index)
137 ++(*internal_iterator_);
143 ++(*internal_iterator_);