BufferRegion.hpp
Go to the documentation of this file.
1 /*
2  * BufferRegion.hpp
3  *
4  * Created on: Aug 19, 2015
5  * Author: Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
9 #pragma once
10 
12 
13 namespace grid_map {
14 
20 {
21  public:
22 
26  enum class Quadrant
27  {
28  Undefined,
29  TopLeft,
30  TopRight,
31  BottomLeft,
33  };
34 
35  constexpr static unsigned int nQuadrants = 4;
36 
37  BufferRegion();
38  BufferRegion(Index startIndex, Size size, BufferRegion::Quadrant quadrant);
39  virtual ~BufferRegion() = default;
40 
41  const Index& getStartIndex() const;
42  void setStartIndex(const Index& startIndex);
43  const Size& getSize() const;
44  void setSize(const Size& size);
47 
48  private:
49 
52 
55 
58 
59  public:
60  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
61 };
62 
63 } /* namespace grid_map */
BufferRegion::Quadrant getQuadrant() const
static constexpr unsigned int nQuadrants
virtual ~BufferRegion()=default
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