Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
RegularSquaresGrid Class Reference

#include <regular_squares_grid.h>

Inheritance diagram for RegularSquaresGrid:
Inheritance graph
[legend]

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
 
RegularSquaresGridoperator= (const RegularSquaresGrid &grid)=default
 
RegularSquaresGridoperator= (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< Coordworld_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
 

Detailed Description

Definition at line 13 of file regular_squares_grid.h.

Member Typedef Documentation

Definition at line 15 of file regular_squares_grid.h.

Constructor & Destructor Documentation

RegularSquaresGrid::RegularSquaresGrid ( int  w,
int  h,
double  scale 
)
inline

Definition at line 19 of file regular_squares_grid.h.

RegularSquaresGrid::RegularSquaresGrid ( const RegularSquaresGrid grid)
default
RegularSquaresGrid::RegularSquaresGrid ( RegularSquaresGrid &&  grid)
default
virtual RegularSquaresGrid::~RegularSquaresGrid ( )
virtualdefault

Member Function Documentation

Point2D RegularSquaresGrid::cell_to_world ( const Coord cell) const
inline

Definition at line 103 of file regular_squares_grid.h.

Coord RegularSquaresGrid::external2internal ( const Coord coord) const
inlineprotected

Definition at line 141 of file regular_squares_grid.h.

virtual bool RegularSquaresGrid::has_cell ( const Coord c) const
inlinevirtual
bool RegularSquaresGrid::has_internal_cell ( const Coord c) const
inlineprotected

Definition at line 134 of file regular_squares_grid.h.

virtual int RegularSquaresGrid::height ( ) const
inlinevirtual

Reimplemented in RescalableCachingGridMap< BackGridMap >.

Definition at line 30 of file regular_squares_grid.h.

Coord RegularSquaresGrid::internal2external ( const Coord coord) const
inline

Definition at line 128 of file regular_squares_grid.h.

RegularSquaresGrid& RegularSquaresGrid::operator= ( const RegularSquaresGrid grid)
default
RegularSquaresGrid& RegularSquaresGrid::operator= ( RegularSquaresGrid &&  grid)
default
virtual DiscretePoint2D RegularSquaresGrid::origin ( ) const
inlinevirtual
virtual void RegularSquaresGrid::rescale ( double  )
inlinevirtual

Reimplemented in RescalableCachingGridMap< BackGridMap >.

Definition at line 32 of file regular_squares_grid.h.

virtual double RegularSquaresGrid::scale ( ) const
inlinevirtual

Reimplemented in RescalableCachingGridMap< BackGridMap >.

Definition at line 31 of file regular_squares_grid.h.

void RegularSquaresGrid::set_height ( unsigned  h)
inlineprotected

Definition at line 146 of file regular_squares_grid.h.

void RegularSquaresGrid::set_scale ( double  s)
inlineprotected

Definition at line 148 of file regular_squares_grid.h.

void RegularSquaresGrid::set_width ( unsigned  w)
inlineprotected

Definition at line 147 of file regular_squares_grid.h.

virtual int RegularSquaresGrid::width ( ) const
inlinevirtual

Reimplemented in RescalableCachingGridMap< BackGridMap >.

Definition at line 29 of file regular_squares_grid.h.

Rectangle RegularSquaresGrid::world_cell_bounds ( const Coord coord) const
inline

Definition at line 108 of file regular_squares_grid.h.

Coord RegularSquaresGrid::world_to_cell ( const Point2D pt) const
inline

Definition at line 34 of file regular_squares_grid.h.

Coord RegularSquaresGrid::world_to_cell ( double  x,
double  y 
) const
inline

Definition at line 40 of file regular_squares_grid.h.

Coord RegularSquaresGrid::world_to_cell ( double  x,
double  y,
double  scale 
) const
inline

Definition at line 48 of file regular_squares_grid.h.

std::vector<Coord> RegularSquaresGrid::world_to_cells ( const Segment2D s) const
inline

Definition at line 56 of file regular_squares_grid.h.

Member Data Documentation

int RegularSquaresGrid::_height
private

Definition at line 151 of file regular_squares_grid.h.

double RegularSquaresGrid::_m_per_cell
private

Definition at line 152 of file regular_squares_grid.h.

int RegularSquaresGrid::_width
private

Definition at line 151 of file regular_squares_grid.h.

constexpr double RegularSquaresGrid::Dbl_Inf = std::numeric_limits<double>::infinity()
static

Definition at line 16 of file regular_squares_grid.h.


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


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:26