BufferRegion.cpp
Go to the documentation of this file.
1 /*
2  * BufferRegion.cpp
3  *
4  * Created on: Aug 19, 2015
5  * Author: Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
9 
10 namespace grid_map {
11 
12 BufferRegion::BufferRegion() : startIndex_(Index::Zero()),
13  size_(Size::Zero()),
14  quadrant_(BufferRegion::Quadrant::Undefined)
15 {
16 }
17 
18 BufferRegion::BufferRegion(Index index, Size size, BufferRegion::Quadrant quadrant) : startIndex_(std::move(index)),
19  size_(std::move(size)),
20  quadrant_(std::move(quadrant))
21 {
22 }
23 
25 {
26  return startIndex_;
27 }
28 
29 void BufferRegion::setStartIndex(const Index& startIndex)
30 {
31  startIndex_ = startIndex;
32 }
33 
35 {
36  return size_;
37 }
38 
39 void BufferRegion::setSize(const Size& size)
40 {
41  size_ = size;
42 }
43 
45 {
46  return quadrant_;
47 }
48 
50 {
51  quadrant_ = type;
52 }
53 
54 } /* namespace grid_map */
55 
56 
BufferRegion::Quadrant getQuadrant() const
Eigen::Array2i Index
Definition: TypeDefs.hpp:22
void setQuadrant(BufferRegion::Quadrant type)
Eigen::Array2i Size
Definition: TypeDefs.hpp:23
Index startIndex_
Start index (typically top-left) of the buffer region.
Quadrant quadrant_
Quadrant type of the buffer region.
const Index & getStartIndex() const
void setSize(const Size &size)
Size size_
Size of the buffer region.
void setStartIndex(const Index &startIndex)
const Size & getSize() const


grid_map_core
Author(s): Péter Fankhauser
autogenerated on Wed Jul 5 2023 02:23:35