#include <gtest/gtest.h>
#include <boost/geometry/algorithms/perimeter.hpp>
#include <random>
#include "lanelet2_core/geometry/Polygon.h"
#include "lanelet2_core/primitives/CompoundPolygon.h"
#include "lanelet2_core/primitives/Polygon.h"
Go to the source code of this file.
Classes | |
class | AllPolygonsTest< T > |
class | CompoundPolygonTypeTest< T > |
class | HybridPolygonsTest< T > |
class | HybridPolygonsTwoDTest< T > |
class | MutablePolygonsTest< T > |
class | NonHybridPolygonsTest< T > |
class | NormalPolygonsTest< T > |
class | PolygonPoints |
class | PolygonTypeTest< T > |
class | PolygonTypeTest< CompoundHybridPolygon2d > |
class | PolygonTypeTest< CompoundHybridPolygon3d > |
class | PolygonTypeTest< CompoundPolygon2d > |
class | PolygonTypeTest< CompoundPolygon3d > |
class | PrimitivePolygonsTest< T > |
class | ThreeDAndBasicPolygonsTest< T > |
class | ThreeDPolygonsTest< T > |
class | TwoDAndBasicPolygonsTest< T > |
class | TwoDPolygonsTest< T > |
Macros | |
#define | TYPED_TEST_SUITE TYPED_TEST_CASE |
#define TYPED_TEST_SUITE TYPED_TEST_CASE |
Definition at line 210 of file test_polygon.cpp.
Definition at line 189 of file test_polygon.cpp.
using HybridPolygons = testing::Types<ConstHybridPolygon2d, ConstHybridPolygon3d, CompoundHybridPolygon2d, CompoundHybridPolygon3d> |
Definition at line 205 of file test_polygon.cpp.
using HybridPolygonsTwoD = testing::Types<ConstHybridPolygon2d, CompoundHybridPolygon2d> |
Definition at line 206 of file test_polygon.cpp.
using MutablePolygons = testing::Types<Polygon2d, Polygon3d> |
Definition at line 199 of file test_polygon.cpp.
using NonHybridPolygons = testing::Types<Polygon2d, Polygon3d, ConstPolygon2d, ConstPolygon3d, CompoundPolygon2d, CompoundPolygon3d> |
Definition at line 203 of file test_polygon.cpp.
using NormalPolygons = testing::Types<Polygon2d, Polygon3d, ConstPolygon2d, ConstPolygon3d> |
Definition at line 190 of file test_polygon.cpp.
using PrimitivePolygons = testing::Types<Polygon2d, Polygon3d, ConstPolygon2d, ConstPolygon3d, ConstHybridPolygon2d, ConstHybridPolygon3d> |
Definition at line 201 of file test_polygon.cpp.
using ThreeDAndBasicPolygons = testing::Types<BasicPolygon3d, Polygon3d, ConstPolygon3d, ConstHybridPolygon3d, CompoundPolygon3d, CompoundHybridPolygon3d> |
Definition at line 196 of file test_polygon.cpp.
using ThreeDPolygons = testing::Types<Polygon3d, ConstPolygon3d, ConstHybridPolygon3d, CompoundPolygon3d, CompoundHybridPolygon3d> |
Definition at line 192 of file test_polygon.cpp.
using TwoDAndBasicPolygons = testing::Types<BasicPolygon2d, Polygon2d, ConstPolygon2d, ConstHybridPolygon2d, CompoundPolygon2d, CompoundHybridPolygon2d> |
Definition at line 198 of file test_polygon.cpp.
using TwoDPolygons = testing::Types<Polygon2d, ConstPolygon2d, ConstHybridPolygon2d, CompoundPolygon2d, CompoundHybridPolygon2d> |
Definition at line 194 of file test_polygon.cpp.
void checkPartitionConsistency | ( | const BasicPolygon2d & | poly, |
const BasicPolygons2d & | parts | ||
) |
Definition at line 305 of file test_polygon.cpp.
PolygonT composePolygon | ( | std::initializer_list< ConstLineString3d > | list | ) |
Definition at line 104 of file test_polygon.cpp.
|
inline |
Definition at line 286 of file test_polygon.cpp.
auto getZ | ( | const T & | p | ) | -> std::enable_if_t<!traits::is2D<T>(), double> |
Definition at line 134 of file test_polygon.cpp.
bool isConnectionConvex | ( | const BasicPoint2d & | seg1, |
const BasicPoint2d & | seg2, | ||
const double | eps = 4 * std::numeric_limits<double>::epsilon() |
||
) |
Definition at line 290 of file test_polygon.cpp.
bool isConvex | ( | const BasicPolygon2d & | poly | ) |
Definition at line 295 of file test_polygon.cpp.
T toPolygon | ( | const Polygon3d & | p | ) |
Definition at line 12 of file test_polygon.cpp.
BasicPolygon2d toPolygon< BasicPolygon2d > | ( | const Polygon3d & | p | ) |
Definition at line 24 of file test_polygon.cpp.
BasicPolygon3d toPolygon< BasicPolygon3d > | ( | const Polygon3d & | p | ) |
Definition at line 28 of file test_polygon.cpp.
ConstPolygon2d toPolygon< ConstPolygon2d > | ( | const Polygon3d & | p | ) |
Definition at line 20 of file test_polygon.cpp.
Definition at line 16 of file test_polygon.cpp.
TYPED_TEST | ( | MutablePolygonsTest | , |
id | |||
) |
Definition at line 224 of file test_polygon.cpp.
TYPED_TEST | ( | MutablePolygonsTest | , |
readAttributes | |||
) |
Definition at line 229 of file test_polygon.cpp.
TYPED_TEST | ( | TwoDAndBasicPolygonsTest | , |
bounds2d | |||
) |
Definition at line 236 of file test_polygon.cpp.
TYPED_TEST | ( | ThreeDAndBasicPolygonsTest | , |
bounds3d | |||
) |
Definition at line 244 of file test_polygon.cpp.
TYPED_TEST | ( | HybridPolygonsTwoDTest | , |
distance2d | |||
) |
Definition at line 254 of file test_polygon.cpp.
TYPED_TEST | ( | HybridPolygonsTwoDTest | , |
distancePoint2d | |||
) |
Definition at line 259 of file test_polygon.cpp.
TYPED_TEST | ( | HybridPolygonsTwoDTest | , |
area | |||
) |
Definition at line 263 of file test_polygon.cpp.
TYPED_TEST | ( | HybridPolygonsTwoDTest | , |
centroid | |||
) |
Definition at line 268 of file test_polygon.cpp.
TYPED_TEST | ( | AllPolygonsTest | , |
perimeter | |||
) |
Definition at line 275 of file test_polygon.cpp.
TYPED_TEST | ( | TwoDPolygonsTest | , |
toBasicPolygon | |||
) |
Definition at line 280 of file test_polygon.cpp.
TYPED_TEST | ( | TwoDPolygonsTest | , |
convexPartition | |||
) |
Definition at line 322 of file test_polygon.cpp.
TYPED_TEST | ( | TwoDAndBasicPolygonsTest | , |
triangulate | |||
) |
Definition at line 341 of file test_polygon.cpp.
TYPED_TEST_SUITE | ( | AllPolygonsTest | , |
AllPolygons | |||
) |
TYPED_TEST_SUITE | ( | TwoDPolygonsTest | , |
TwoDPolygons | |||
) |
TYPED_TEST_SUITE | ( | ThreeDPolygonsTest | , |
ThreeDPolygons | |||
) |
TYPED_TEST_SUITE | ( | TwoDAndBasicPolygonsTest | , |
TwoDAndBasicPolygons | |||
) |
TYPED_TEST_SUITE | ( | ThreeDAndBasicPolygonsTest | , |
ThreeDAndBasicPolygons | |||
) |
TYPED_TEST_SUITE | ( | NormalPolygonsTest | , |
NormalPolygons | |||
) |
TYPED_TEST_SUITE | ( | MutablePolygonsTest | , |
MutablePolygons | |||
) |
TYPED_TEST_SUITE | ( | PrimitivePolygonsTest | , |
PrimitivePolygons | |||
) |
TYPED_TEST_SUITE | ( | NonHybridPolygonsTest | , |
NonHybridPolygons | |||
) |
TYPED_TEST_SUITE | ( | HybridPolygonsTest | , |
HybridPolygons | |||
) |
TYPED_TEST_SUITE | ( | HybridPolygonsTwoDTest | , |
HybridPolygonsTwoD | |||
) |