|
BWAPI
|
#include <Arr_lm_nearest_neighbor.h>
Classes | |
| struct | Construct_coord_iterator |
| class | NN_Point_2 |
Public Types | |
| typedef GeomTraits_ | Geometry_traits_2 |
| typedef Geometry_traits_2::Approximate_number_type | ANT |
| typedef Geometry_traits_2::Point_2 | Point_2 |
| typedef Arr_landmarks_nearest_neighbor < Geometry_traits_2 > | Self |
Public Member Functions | |
| Arr_landmarks_nearest_neighbor () | |
| ~Arr_landmarks_nearest_neighbor () | |
| template<class InputIterator > | |
| void | init (InputIterator begin, InputIterator end) |
| void | clear () |
| Point_2 | find_nearest_neighbor (const Point_2 &q, Object &obj) const |
Protected Types | |
| typedef CGAL::Search_traits < ANT, NN_Point_2, const ANT *, Construct_coord_iterator > | Search_traits |
| typedef CGAL::Orthogonal_k_neighbor_search < Search_traits > | Neighbor_search |
| typedef Neighbor_search::iterator | Neighbor_iterator |
| typedef Neighbor_search::Tree | Tree |
Protected Attributes | |
| Tree * | m_tree |
| bool | m_is_empty |
| typedef Geometry_traits_2::Approximate_number_type Arr_landmarks_nearest_neighbor< GeomTraits_ >::ANT |
| typedef GeomTraits_ Arr_landmarks_nearest_neighbor< GeomTraits_ >::Geometry_traits_2 |
typedef Neighbor_search::iterator Arr_landmarks_nearest_neighbor< GeomTraits_ >::Neighbor_iterator [protected] |
typedef CGAL::Orthogonal_k_neighbor_search<Search_traits> Arr_landmarks_nearest_neighbor< GeomTraits_ >::Neighbor_search [protected] |
| typedef Geometry_traits_2::Point_2 Arr_landmarks_nearest_neighbor< GeomTraits_ >::Point_2 |
typedef CGAL::Search_traits<ANT, NN_Point_2, const ANT*, Construct_coord_iterator> Arr_landmarks_nearest_neighbor< GeomTraits_ >::Search_traits [protected] |
| typedef Arr_landmarks_nearest_neighbor<Geometry_traits_2> Arr_landmarks_nearest_neighbor< GeomTraits_ >::Self |
typedef Neighbor_search::Tree Arr_landmarks_nearest_neighbor< GeomTraits_ >::Tree [protected] |
| Arr_landmarks_nearest_neighbor< GeomTraits_ >::Arr_landmarks_nearest_neighbor | ( | ) | [inline] |
Default constructor.
| Arr_landmarks_nearest_neighbor< GeomTraits_ >::~Arr_landmarks_nearest_neighbor | ( | ) | [inline] |
Destructor.

| void Arr_landmarks_nearest_neighbor< GeomTraits_ >::clear | ( | ) | [inline] |
Clear the search tree.

| Point_2 Arr_landmarks_nearest_neighbor< GeomTraits_ >::find_nearest_neighbor | ( | const Point_2 & | q, |
| Object & | obj | ||
| ) | const [inline] |
Find the nearest landmark point to the query point.
| q | The query point. |
| obj | Output: The location of the nearest landmark point in the arrangement (a vertex, halfedge, or face handle). |

| void Arr_landmarks_nearest_neighbor< GeomTraits_ >::init | ( | InputIterator | begin, |
| InputIterator | end | ||
| ) | [inline] |
bool Arr_landmarks_nearest_neighbor< GeomTraits_ >::m_is_empty [protected] |
Tree* Arr_landmarks_nearest_neighbor< GeomTraits_ >::m_tree [protected] |
1.7.6.1