PGROUTING
3.2
|
#include "pgr_alphaShape.h"
Classes | |
struct | EdgesFilter |
Public Member Functions | |
Pgr_alphaShape ()=delete | |
Pgr_alphaShape (const std::vector< Pgr_edge_xy_t > &edges) | |
void | clear () |
clear More... | |
std::string | get_error () const |
get_error More... | |
std::string | get_log () const |
get_log More... | |
std::string | get_notice () const |
get_notice More... | |
bool | has_error () const |
get_error More... | |
std::vector< Bpoly > | operator() (double alpha) const |
Public Attributes | |
std::ostringstream | error |
Stores the error information. More... | |
std::ostringstream | log |
Stores the hint information. More... | |
std::ostringstream | notice |
Stores the notice information. More... | |
Private Member Functions | |
std::vector< Bpoly > | build_best_alpha () const |
bool | faceBelongs (const Triangle face, double alpha) const |
void | make_triangles () |
double | radius (const Triangle t) const |
void | recursive_build (const Triangle face, std::set< Triangle > &used, std::set< E > &border_edges, double alpha) const |
Private Attributes | |
G | graph |
sides graph More... | |
std::map< Triangle, std::set< Triangle > > | m_adjacent_triangles |
t -> {adj_t} More... | |
Friends | |
std::ostream & | operator<< (std::ostream &, const Pgr_alphaShape &) |
Definition at line 63 of file pgr_alphaShape.h.
|
delete |
|
explicit |
Definition at line 167 of file pgr_alphaShape.cpp.
References graph, pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::insert_edges(), and make_triangles().
|
private |
Definition at line 248 of file pgr_alphaShape.cpp.
References pgrouting::Pgr_messages::log, m_adjacent_triangles, operator()(), pgassert, and radius().
Referenced by operator()().
|
inherited |
clear
Clears All the messages
Definition at line 59 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::error, pgrouting::Pgr_messages::log, and pgrouting::Pgr_messages::notice.
Referenced by do_pgr_pickDeliver().
|
private |
Definition at line 243 of file pgr_alphaShape.cpp.
References radius().
Referenced by recursive_build().
|
inherited |
get_error
Definition at line 53 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::error.
Referenced by do_pgr_many_withPointsDD(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pgr_withPoints(), do_pgr_withPointsKsp(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
inherited |
get_log
Definition at line 36 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::log.
Referenced by do_pgr_bipartite(), do_pgr_boyerMyrvold(), do_pgr_LTDTree(), do_pgr_makeConnected(), do_pgr_many_withPointsDD(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pgr_withPoints(), do_pgr_withPointsKsp(), pgr_bellman_ford(), pgr_dijkstraTR(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
inherited |
get_notice
Definition at line 42 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::notice.
|
inherited |
get_error
Definition at line 48 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::error.
Referenced by do_pgr_many_withPointsDD(), do_pgr_withPoints(), and do_pgr_withPointsKsp().
|
private |
Definition at line 174 of file pgr_alphaShape.cpp.
References pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::adjacent(), graph, pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::graph, m_adjacent_triangles, pgassert, pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::source(), and pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::target().
Referenced by Pgr_alphaShape().
std::vector< Bpoly > pgrouting::alphashape::Pgr_alphaShape::operator() | ( | double | alpha | ) | const |
Definition at line 368 of file pgr_alphaShape.cpp.
References build_best_alpha(), pgrouting::alphashape::Pgr_alphaShape::EdgesFilter::edges, pgrouting::alphashape::anonymous_namespace{pgr_alphaShape.cpp}::get_polygon(), pgrouting::alphashape::anonymous_namespace{pgr_alphaShape.cpp}::get_predecessors(), graph, pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::graph, m_adjacent_triangles, pgassert, and recursive_build().
Referenced by build_best_alpha().
|
private |
Definition at line 227 of file pgr_alphaShape.cpp.
References pgrouting::alphashape::anonymous_namespace{pgr_alphaShape.cpp}::circumcenter(), graph, pgassert, pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::source(), and pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::target().
Referenced by build_best_alpha(), and faceBelongs().
|
private |
Definition at line 319 of file pgr_alphaShape.cpp.
References faceBelongs(), and m_adjacent_triangles.
Referenced by operator()().
|
friend |
Definition at line 468 of file pgr_alphaShape.cpp.
|
mutableinherited |
Stores the error information.
Definition at line 85 of file pgr_messages.h.
Referenced by pgrouting::vrp::Fleet::build_fleet(), pgrouting::Pg_points_graph::check_points(), pgrouting::Pgr_messages::clear(), pgrouting::Pg_points_graph::create_new_edges(), pgrouting::Pgr_messages::get_error(), pgrouting::Pgr_messages::has_error(), pgrouting::vrp::Fleet::is_fleet_ok(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
private |
sides graph
Definition at line 93 of file pgr_alphaShape.h.
Referenced by make_triangles(), operator()(), pgrouting::alphashape::operator<<(), Pgr_alphaShape(), and radius().
|
mutableinherited |
Stores the hint information.
Definition at line 81 of file pgr_messages.h.
Referenced by pgrouting::vrp::Fleet::add_vehicle(), Pgr_bellman_ford< G >::bellman_ford(), Pgr_bellman_ford< G >::bellman_ford_1_to_1(), Pgr_bellman_ford< G >::bellman_ford_1_to_many(), build_best_alpha(), pgrouting::vrp::Fleet::build_fleet(), pgrouting::Pg_points_graph::check_points(), pgrouting::Pgr_messages::clear(), pgrouting::Pg_points_graph::create_new_edges(), pgrouting::vrp::Vehicle_pickDeliver::do_while_feasable(), pgrouting::vrp::Initial_solution::do_while_foo(), pgrouting::functions::Pgr_makeConnected< G >::generatemakeConnected(), pgrouting::Pgr_messages::get_log(), Pgr_bellman_ford< G >::get_paths(), pgrouting::vrp::Pgr_pickDeliver::get_postgres_result(), pgrouting::vrp::Vehicle::get_postgres_result(), pgrouting::vrp::Fleet::get_truck(), pgrouting::vrp::Optimize::inter_swap(), pgrouting::vrp::Fleet::is_fleet_ok(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), pgrouting::vrp::Optimize::Optimize(), pgrouting::Pg_points_graph::Pg_points_graph(), pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver(), pgrouting::vrp::Optimize::save_if_best(), pgrouting::vrp::Solution::Solution(), pgrouting::vrp::Pgr_pickDeliver::solve(), and pgrouting::vrp::Vehicle::Vehicle().
|
private |
t -> {adj_t}
Definition at line 95 of file pgr_alphaShape.h.
Referenced by build_best_alpha(), make_triangles(), operator()(), and recursive_build().
|
mutableinherited |
Stores the notice information.
Definition at line 83 of file pgr_messages.h.
Referenced by pgrouting::Pgr_messages::clear(), and pgrouting::Pgr_messages::get_notice().