forked from AtsushiSakai/grid_map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBufferRegion.cpp
62 lines (49 loc) · 1.04 KB
/
BufferRegion.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* BufferRegion.cpp
*
* Created on: Aug 19, 2015
* Author: Péter Fankhauser
* Institute: ETH Zurich, Autonomous Systems Lab
*/
#include <grid_map_core/BufferRegion.hpp>
namespace grid_map {
BufferRegion::BufferRegion() :
staretIndex_(Index::Zero()),
size_(Size::Zero()),
quadrant_(BufferRegion::Quadrant::Undefined)
{
}
BufferRegion::BufferRegion(const Index& index, const Size& size, const BufferRegion::Quadrant& quadrant) :
staretIndex_(index),
size_(size),
quadrant_(quadrant)
{
}
BufferRegion::~BufferRegion()
{
}
const Index& BufferRegion::getStartIndex() const
{
return staretIndex_;
}
void BufferRegion::setStartIndex(const Index& staretIndex)
{
staretIndex_ = staretIndex;
}
const Size& BufferRegion::getSize() const
{
return size_;
}
void BufferRegion::setSize(const Size& size)
{
size_ = size;
}
BufferRegion::Quadrant BufferRegion::getQuadrant() const
{
return quadrant_;
}
void BufferRegion::setQuadrant(BufferRegion::Quadrant type)
{
quadrant_ = type;
}
} /* namespace grid_map */