21 #ifndef EMODNET_QMGC_BORDERS_DATA_H 22 #define EMODNET_QMGC_BORDERS_DATA_H 24 #include "tin_creation/tin_creation_cgal_types.h" 32 typedef TinCreation::Point_3 Point_3;
55 , northWestCorner(-1, -1, -1)
56 , northEastCorner(-1, -1, -1)
57 , southWestCorner(-1, -1, -1)
58 , southEastCorner(-1, -1, -1)
59 , constrainNorthWestCorner(false)
60 , constrainNorthEastCorner(false)
61 , constrainSouthWestCorner(false)
62 , constrainSouthEastCorner(false) {}
88 return !tileNorthVertices.empty() || !tileWestVertices.empty();
96 return !tileNorthVertices.empty() || !tileEastVertices.empty();
104 return !tileSouthVertices.empty() || !tileWestVertices.empty();
112 return !tileSouthVertices.empty() || !tileEastVertices.empty();
149 #endif //EMODNET_TOOLS_BORDERS_DATA_H BordersData(const BordersData &bd)
Copy constructor.
Definition: borders_data.h:68
bool useNorthWestCorner()
Check wether north-west corner needs to be used.
Definition: borders_data.h:119
bool useSouthWestCorner()
Check wether south-west corner needs to be used.
Definition: borders_data.h:135
bool useSouthEastCorner()
Check wether south-east corner needs to be used.
Definition: borders_data.h:143
bool isNorthEastCornerConstrainedByBorders()
Check if the north-east corner is already constrained by one of the borders.
Definition: borders_data.h:95
Structure storing the data for the borders of a tile. This includes the 4 east-west-north-south borde...
Definition: borders_data.h:30
bool isSouthEastCornerConstrainedByBorders()
Check if the south-east corner is already constrained by one of the borders.
Definition: borders_data.h:111
Point_3 southEastCorner
The south-east corner to maintain (if constrainSouthEastCorner is set)
Definition: borders_data.h:45
bool isSouthWestCornerConstrainedByBorders()
Check if the south-west corner is already constrained by one of the borders.
Definition: borders_data.h:103
std::vector< Point_3 > tileSouthVertices
Vertices to maintain for the southern border of the tile.
Definition: borders_data.h:37
Point_3 southWestCorner
The south-west corner to maintain (if constrainSouthWestCorner is set)
Definition: borders_data.h:44
Point_3 northEastCorner
The north-east corner to maintain (if constrainNorthEastCorner is set)
Definition: borders_data.h:43
bool isNorthWestCornerConstrainedByBorders()
Check if the north-west corner is already constrained by one of the borders.
Definition: borders_data.h:87
bool useNorthEastCorner()
Check wether north-east corner needs to be used.
Definition: borders_data.h:127
BordersData()
Default constructor.
Definition: borders_data.h:50
bool constrainSouthWestCorner
Flag indicating whether the south-west corner should be constrained.
Definition: borders_data.h:40
bool constrainNorthEastCorner
Flag indicating whether the north-east corner should be constrained.
Definition: borders_data.h:39
std::vector< Point_3 > tileEastVertices
Vertices to maintain for the eastern border of the tile.
Definition: borders_data.h:34
std::vector< Point_3 > tileWestVertices
Vertices to maintain for the western border of the tile.
Definition: borders_data.h:35
bool constrainSouthEastCorner
Flag indicating whether the north-east corner should be constrained.
Definition: borders_data.h:41
bool constrainNorthWestCorner
Flag indicating whether the north-west corner should be constrained.
Definition: borders_data.h:38
Point_3 northWestCorner
The north-west corner to maintain (if constrainNorthWestCorner is set)
Definition: borders_data.h:42
std::vector< Point_3 > tileNorthVertices
Vertices to maintain for the northern border of the tile.
Definition: borders_data.h:36