|
CGAL 6.0 - dD Spatial Searching
|
#include <CGAL/Search_traits_adapter.h>
Base_distance.
A class that uses a point property map to adapt a distance class to work on a key as point type.
When using Search_traits_adapter<Key,PointPropertyMap,BaseTraits> in a nearest neighbor search algorithm, this class must be used as distance.
| Key | is a type that is associated to a point of type Base_distance::Point_d. |
| PointPropertyMap | is a model of ReadablePropertyMap with Key as key type and Base_distance::Point_d as value type. |
| Base_distance | is a model of either GeneralDistance or OrthogonalDistance. |
GeneralDistance if Base_distance is a model of GeneralDistanceOrthogonalDistance if Base_distance is a model of OrthogonalDistanceSearch_traits_adapter<Key,PointPropertyMap,BaseTraits> Types | |
| typedef Base_distance::FT | FT |
| typedef Key | Point_d |
| typedef Base_distance::Query_item | Query_item |
Operations | |
| const PointPropertyMap & | point_property_map () const |
| Returns the point property map. | |