21 #ifndef EMODNET_QMGC_TILE_BORDER_VERTICES_H 22 #define EMODNET_QMGC_TILE_BORDER_VERTICES_H 24 #include "tin_creation/tin_creation_cgal_types.h" 39 BorderVertex(
const double& c,
const double& h ) : coord(c), height(h) {}
44 return (coord < v.coord);
59 , m_northernVertices()
60 , m_southernVertices()
64 const std::vector<BorderVertex>& westernVertices,
65 const std::vector<BorderVertex>& northernVertices,
66 const std::vector<BorderVertex>& southernVertices,
67 const int& lifeCounter = 4 )
68 : m_easternVertices(easternVertices)
69 , m_westernVertices(westernVertices)
70 , m_northernVertices(northernVertices)
71 , m_southernVertices(southernVertices)
72 , m_lifeCounter(lifeCounter) {}
76 std::vector<BorderVertex> getEasternVerticesAndDecreaseLife() { m_lifeCounter-- ;
return m_easternVertices ; }
77 std::vector<BorderVertex> getWesternVerticesAndDecreaseLife() { m_lifeCounter-- ;
return m_westernVertices ; }
78 std::vector<BorderVertex> getNorthernVerticesAndDecreaseLife() { m_lifeCounter-- ;
return m_northernVertices ; }
79 std::vector<BorderVertex> getSouthernVerticesAndDecreaseLife() { m_lifeCounter-- ;
return m_southernVertices ; }
81 std::vector<BorderVertex> getEasternVertices() {
return m_easternVertices ; }
82 std::vector<BorderVertex> getWesternVertices() {
return m_westernVertices ; }
83 std::vector<BorderVertex> getNorthernVertices() {
return m_northernVertices ; }
84 std::vector<BorderVertex> getSouthernVertices() {
return m_southernVertices ; }
86 bool isAlive() {
return m_lifeCounter > 0 ; }
89 std::vector<BorderVertex> m_easternVertices ;
90 std::vector<BorderVertex> m_westernVertices ;
91 std::vector<BorderVertex> m_northernVertices ;
92 std::vector<BorderVertex> m_southernVertices ;
96 #endif //EMODNET_QMGC_TILE_BORDER_VERTICES_H Class storing a vertex on the border of a tile.
Definition: tile_border_vertices.h:35
Stores the vertices on the borders of a tile.
Definition: tile_border_vertices.h:53