#include <perfect_spatial_hashing.h>
Public Member Functions | |
| Neighbor () | |
| Neighbor (ObjectPointer pObject, ScalarType dist, CoordinateType point) | |
| bool | operator< (const Neighbor &second) |
Public Attributes | |
| ScalarType | distance |
| CoordinateType | nearest_point |
| ObjectPointer | object |
This class is used to retrieve the neighboring objects in the spatial queries and to sort them.
Definition at line 1032 of file perfect_spatial_hashing.h.
| vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::Neighbor | ( | ) | [inline] |
Default constructor
Definition at line 1037 of file perfect_spatial_hashing.h.
| vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::Neighbor | ( | ObjectPointer | pObject, |
| ScalarType | dist, | ||
| CoordinateType | point | ||
| ) | [inline] |
Constructor
| [in] | pObject | The pointer to the object. |
| [in] | dist | The distance between the object and the query point. |
| [in] | point | The point on the object having minimal distance from the query point. |
Definition at line 1051 of file perfect_spatial_hashing.h.
| bool vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::operator< | ( | const Neighbor & | second | ) | [inline] |
Less than operator. Needed for sorting a range of neighbor based on their distance from the query object.
Definition at line 1062 of file perfect_spatial_hashing.h.
| ScalarType vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::distance |
Definition at line 1068 of file perfect_spatial_hashing.h.
| CoordinateType vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::nearest_point |
Definition at line 1069 of file perfect_spatial_hashing.h.
| ObjectPointer vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::object |
Definition at line 1067 of file perfect_spatial_hashing.h.