#include <BufferRegion.hpp>
Public Types | |
enum | Quadrant { Undefined, TopLeft, TopRight, BottomLeft, BottomRight } |
Public Member Functions | |
BufferRegion () | |
BufferRegion (const Index &startIndex, const Size &size, const BufferRegion::Quadrant &quadrant) | |
BufferRegion::Quadrant | getQuadrant () const |
const Size & | getSize () const |
const Index & | getStartIndex () const |
void | setQuadrant (BufferRegion::Quadrant type) |
void | setSize (const Size &size) |
void | setStartIndex (const Index &startIndex) |
virtual | ~BufferRegion () |
Static Public Attributes | |
static constexpr unsigned int | nQuadrants = 4 |
Private Attributes | |
Quadrant | quadrant_ |
Quadrant type of the buffer region. | |
Size | size_ |
Size of the buffer region. | |
Index | staretIndex_ |
Start index (typically top-left) of the buffer region. |
This class holds information about a rectangular region of cells of the circular buffer.
Definition at line 19 of file BufferRegion.hpp.
The definition of the buffer region positions.
Definition at line 26 of file BufferRegion.hpp.
Definition at line 12 of file BufferRegion.cpp.
grid_map::BufferRegion::BufferRegion | ( | const Index & | startIndex, |
const Size & | size, | ||
const BufferRegion::Quadrant & | quadrant | ||
) |
Definition at line 19 of file BufferRegion.cpp.
grid_map::BufferRegion::~BufferRegion | ( | ) | [virtual] |
Definition at line 26 of file BufferRegion.cpp.
Definition at line 50 of file BufferRegion.cpp.
const Size & grid_map::BufferRegion::getSize | ( | ) | const |
Definition at line 40 of file BufferRegion.cpp.
const Index & grid_map::BufferRegion::getStartIndex | ( | ) | const |
Definition at line 30 of file BufferRegion.cpp.
Definition at line 55 of file BufferRegion.cpp.
void grid_map::BufferRegion::setSize | ( | const Size & | size | ) |
Definition at line 45 of file BufferRegion.cpp.
void grid_map::BufferRegion::setStartIndex | ( | const Index & | startIndex | ) |
Definition at line 35 of file BufferRegion.cpp.
constexpr unsigned int grid_map::BufferRegion::nQuadrants = 4 [static] |
Definition at line 35 of file BufferRegion.hpp.
Quadrant grid_map::BufferRegion::quadrant_ [private] |
Quadrant type of the buffer region.
Definition at line 57 of file BufferRegion.hpp.
Size grid_map::BufferRegion::size_ [private] |
Size of the buffer region.
Definition at line 54 of file BufferRegion.hpp.
Index grid_map::BufferRegion::staretIndex_ [private] |
Start index (typically top-left) of the buffer region.
Definition at line 51 of file BufferRegion.hpp.