vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor Struct Reference

#include <perfect_spatial_hashing.h>

List of all members.

Public Member Functions

 Neighbor (ObjectPointer pObject, ScalarType dist, CoordinateType point)
 Neighbor ()
bool operator< (const Neighbor &second)

Public Attributes

ScalarType distance
CoordinateType nearest_point
ObjectPointer object

Detailed Description

template<class OBJECT_TYPE, class SCALAR_TYPE>
struct vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor

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.


Constructor & Destructor Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::Neighbor (  )  [inline]

Default constructor

Definition at line 1037 of file perfect_spatial_hashing.h.

template<class OBJECT_TYPE , class SCALAR_TYPE >
vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::Neighbor ( ObjectPointer  pObject,
ScalarType  dist,
CoordinateType  point 
) [inline]

Constructor

Parameters:
[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.


Member Function Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
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.


Member Data Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
ScalarType vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::distance

Definition at line 1068 of file perfect_spatial_hashing.h.

template<class OBJECT_TYPE , class SCALAR_TYPE >
CoordinateType vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::nearest_point

Definition at line 1069 of file perfect_spatial_hashing.h.

template<class OBJECT_TYPE , class SCALAR_TYPE >
ObjectPointer vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::Neighbor::object

Definition at line 1067 of file perfect_spatial_hashing.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:04 2013