GeometryHelper.h 974 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef GEOMETRYHELPER_H
  2. #define GEOMETRYHELPER_H
  3. #include <Common/BoostGraphWrapper.h>
  4. #include <boost/geometry.hpp>
  5. #include <boost/geometry/geometries/linestring.hpp>
  6. #include <boost/geometry/geometries/point_xy.hpp>
  7. /**
  8. * @brief The GeometryHelper class
  9. *
  10. * The class provides helpers for geometry of graphs in graph layouts.
  11. */
  12. class GRAPHLAYOUTLIBRARYSHARED_EXPORT GeometryHelper
  13. {
  14. public:
  15. /** @name Creators
  16. * The methods under this section are responsible for constructing or
  17. * destructing an instance of type GeometryHelper.
  18. */
  19. //@{
  20. GeometryHelper();
  21. //@}
  22. /** @name Queries
  23. * The methods under this section are responsible for accessing
  24. * an instance of type GeometryHelper.
  25. */
  26. //@{
  27. static bool isIntersectingEdges(EdgeDescriptor& firstEdge, EdgeDescriptor& secondEdge, SubGraph& subGraph);
  28. //@}
  29. private:
  30. // for edge intersection
  31. typedef boost::geometry::model::d2::point_xy<int> GeometryPoint;
  32. };
  33. #endif // GEOMETRYHELPER_H