#include <regular_squares_grid.h>
Public Types | |
using | Coord = DiscretePoint2D |
Public Member Functions | |
Point2D | cell_to_world (const Coord &cell) const |
virtual bool | has_cell (const Coord &c) const |
virtual int | height () const |
Coord | internal2external (const Coord &coord) const |
RegularSquaresGrid & | operator= (const RegularSquaresGrid &grid)=default |
RegularSquaresGrid & | operator= (RegularSquaresGrid &&grid)=default |
virtual DiscretePoint2D | origin () const |
RegularSquaresGrid (int w, int h, double scale) | |
RegularSquaresGrid (const RegularSquaresGrid &grid)=default | |
RegularSquaresGrid (RegularSquaresGrid &&grid)=default | |
virtual void | rescale (double) |
virtual double | scale () const |
virtual int | width () const |
Rectangle | world_cell_bounds (const Coord &coord) const |
Coord | world_to_cell (const Point2D &pt) const |
Coord | world_to_cell (double x, double y) const |
Coord | world_to_cell (double x, double y, double scale) const |
std::vector< Coord > | world_to_cells (const Segment2D &s) const |
virtual | ~RegularSquaresGrid ()=default |
Static Public Attributes | |
static constexpr double | Dbl_Inf = std::numeric_limits<double>::infinity() |
Protected Member Functions | |
Coord | external2internal (const Coord &coord) const |
bool | has_internal_cell (const Coord &c) const |
void | set_height (unsigned h) |
void | set_scale (double s) |
void | set_width (unsigned w) |
Private Attributes | |
int | _height |
double | _m_per_cell |
int | _width |
Definition at line 13 of file regular_squares_grid.h.
Definition at line 15 of file regular_squares_grid.h.
|
inline |
Definition at line 19 of file regular_squares_grid.h.
|
default |
|
default |
|
virtualdefault |
Definition at line 103 of file regular_squares_grid.h.
Definition at line 141 of file regular_squares_grid.h.
|
inlinevirtual |
Reimplemented in UnboundedLazyTiledGridMap, UnboundedPlainGridMap, and RescalableCachingGridMap< BackGridMap >.
Definition at line 124 of file regular_squares_grid.h.
|
inlineprotected |
Definition at line 134 of file regular_squares_grid.h.
|
inlinevirtual |
Reimplemented in RescalableCachingGridMap< BackGridMap >.
Definition at line 30 of file regular_squares_grid.h.
Definition at line 128 of file regular_squares_grid.h.
|
default |
|
default |
|
inlinevirtual |
Reimplemented in UnboundedLazyTiledGridMap, UnboundedPlainGridMap, and RescalableCachingGridMap< BackGridMap >.
Definition at line 120 of file regular_squares_grid.h.
|
inlinevirtual |
Reimplemented in RescalableCachingGridMap< BackGridMap >.
Definition at line 32 of file regular_squares_grid.h.
|
inlinevirtual |
Reimplemented in RescalableCachingGridMap< BackGridMap >.
Definition at line 31 of file regular_squares_grid.h.
|
inlineprotected |
Definition at line 146 of file regular_squares_grid.h.
|
inlineprotected |
Definition at line 148 of file regular_squares_grid.h.
|
inlineprotected |
Definition at line 147 of file regular_squares_grid.h.
|
inlinevirtual |
Reimplemented in RescalableCachingGridMap< BackGridMap >.
Definition at line 29 of file regular_squares_grid.h.
Definition at line 108 of file regular_squares_grid.h.
Definition at line 34 of file regular_squares_grid.h.
|
inline |
Definition at line 40 of file regular_squares_grid.h.
|
inline |
Definition at line 48 of file regular_squares_grid.h.
Definition at line 56 of file regular_squares_grid.h.
|
private |
Definition at line 151 of file regular_squares_grid.h.
|
private |
Definition at line 152 of file regular_squares_grid.h.
|
private |
Definition at line 151 of file regular_squares_grid.h.
|
static |
Definition at line 16 of file regular_squares_grid.h.