Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

rsdl_bins_2d< COORD_T, VALUE_T > Class Template Reference

#include <rsdl_bins_2d.h>

List of all members.


Detailed Description

template<class COORD_T, class VALUE_T>
class rsdl_bins_2d< COORD_T, VALUE_T >

Definition at line 29 of file rsdl_bins_2d.h.

Public Types

typedef vnl_vector_fixed<
COORD_T, 2 > 
point_type
typedef VALUE_T value_type
typedef rsdl_bins_2d_entry<
COORD_T, VALUE_T > 
bin_entry_type_
typedef vcl_vector< bin_entry_type_bin_vector_type_

Public Member Functions

 rsdl_bins_2d ()
 rsdl_bins_2d (const point_type &min_pt, const point_type &max_pt, const point_type &bin_sizes)
 ~rsdl_bins_2d ()
void set_distance_tolerance (COORD_T tolerance)
void reset (const point_type &min_pt, const point_type &max_pt, const point_type &bin_sizes)
void remove_all_points ()
void add_point (const point_type &pt, const value_type &value)
bool get_value (const point_type &pt, value_type &value)
bool change_point (const point_type &pt, const value_type &value)
bool change_point (const point_type &pt, const value_type &old_val, const value_type &new_val)
bool remove_point (const point_type &pt)
bool remove_point (const point_type &pt, const value_type &value)
void n_nearest (const point_type &query_pt, int n, vcl_vector< value_type > &values) const
void n_nearest (const point_type &query_pt, int n, vcl_vector< point_type > &points, vcl_vector< value_type > &values) const
bool is_any_point_within_radius (const point_type &query_pt, COORD_T radius) const
void points_within_radius (const point_type &query_pt, COORD_T radius, vcl_vector< value_type > &values) const
void points_within_radius (const point_type &query_pt, COORD_T radius, vcl_vector< point_type > &points, vcl_vector< value_type > &values) const
bool is_any_point_in_bounding_box (const point_type &min_query_pt, const point_type &max_query_pt) const
void points_in_bounding_box (const point_type &min_query_pt, const point_type &max_query_pt, vcl_vector< value_type > &values) const
void points_in_bounding_box (const point_type &min_query_pt, const point_type &max_query_pt, vcl_vector< point_type > &points, vcl_vector< value_type > &values) const
void change_value (const value_type &old_val, const value_type &new_val)
point_type max_pt ()
point_type min_pt ()
point_type bin_sizes ()
unsigned num_pts () const

Private Member Functions

void point_to_bin (COORD_T x, COORD_T y, int &bin_x, int &bin_y) const
COORD_T min_sq_distance_to_bin (COORD_T x, COORD_T y, int bin_x, int bin_y) const

Private Attributes

vbl_array_2d< bin_vector_type_bins_
point_type min_pt_
point_type max_pt_
point_type bin_sizes_
int num_bins_x_
int num_bins_y_
COORD_T dist_tolerance_sqr_


Member Typedef Documentation

template<class COORD_T, class VALUE_T>
typedef rsdl_bins_2d_entry< COORD_T, VALUE_T > rsdl_bins_2d< COORD_T, VALUE_T >::bin_entry_type_
 

Definition at line 104 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
typedef vcl_vector< bin_entry_type_ > rsdl_bins_2d< COORD_T, VALUE_T >::bin_vector_type_
 

Definition at line 105 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
typedef vnl_vector_fixed< COORD_T, 2 > rsdl_bins_2d< COORD_T, VALUE_T >::point_type
 

Definition at line 31 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
typedef VALUE_T rsdl_bins_2d< COORD_T, VALUE_T >::value_type
 

Definition at line 32 of file rsdl_bins_2d.h.


Constructor & Destructor Documentation

template<class COORD_T, class VALUE_T>
rsdl_bins_2d< COORD_T, VALUE_T >::rsdl_bins_2d  ) 
 

Definition at line 17 of file rsdl_bins_2d.txx.

template<class COORD_T, class VALUE_T>
rsdl_bins_2d< COORD_T, VALUE_T >::rsdl_bins_2d const point_type min_pt,
const point_type max_pt,
const point_type bin_sizes
 

template<class COORD_T, class VALUE_T>
rsdl_bins_2d< COORD_T, VALUE_T >::~rsdl_bins_2d  ) 
 

Definition at line 47 of file rsdl_bins_2d.txx.


Member Function Documentation

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::add_point const point_type pt,
const value_type value
 

template<class COORD_T, class VALUE_T>
point_type rsdl_bins_2d< COORD_T, VALUE_T >::bin_sizes  )  [inline]
 

Definition at line 95 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
bool rsdl_bins_2d< COORD_T, VALUE_T >::change_point const point_type pt,
const value_type old_val,
const value_type new_val
 

template<class COORD_T, class VALUE_T>
bool rsdl_bins_2d< COORD_T, VALUE_T >::change_point const point_type pt,
const value_type value
 

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::change_value const value_type old_val,
const value_type new_val
 

Definition at line 549 of file rsdl_bins_2d.txx.

template<class COORD_T, class VALUE_T>
bool rsdl_bins_2d< COORD_T, VALUE_T >::get_value const point_type pt,
value_type value
 

template<class COORD_T, class VALUE_T>
bool rsdl_bins_2d< COORD_T, VALUE_T >::is_any_point_in_bounding_box const point_type min_query_pt,
const point_type max_query_pt
const
 

template<class COORD_T, class VALUE_T>
bool rsdl_bins_2d< COORD_T, VALUE_T >::is_any_point_within_radius const point_type query_pt,
COORD_T  radius
const
 

template<class COORD_T, class VALUE_T>
point_type rsdl_bins_2d< COORD_T, VALUE_T >::max_pt  )  [inline]
 

Definition at line 91 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
point_type rsdl_bins_2d< COORD_T, VALUE_T >::min_pt  )  [inline]
 

Definition at line 93 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
COORD_T rsdl_bins_2d< COORD_T, VALUE_T >::min_sq_distance_to_bin COORD_T  x,
COORD_T  y,
int  bin_x,
int  bin_y
const [private]
 

Definition at line 523 of file rsdl_bins_2d.txx.

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::n_nearest const point_type query_pt,
int  n,
vcl_vector< point_type > &  points,
vcl_vector< value_type > &  values
const
 

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::n_nearest const point_type query_pt,
int  n,
vcl_vector< value_type > &  values
const
 

template<class COORD_T, class VALUE_T>
unsigned rsdl_bins_2d< COORD_T, VALUE_T >::num_pts  )  const
 

Definition at line 562 of file rsdl_bins_2d.txx.

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::point_to_bin COORD_T  x,
COORD_T  y,
int &  bin_x,
int &  bin_y
const [private]
 

Definition at line 502 of file rsdl_bins_2d.txx.

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::points_in_bounding_box const point_type min_query_pt,
const point_type max_query_pt,
vcl_vector< point_type > &  points,
vcl_vector< value_type > &  values
const
 

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::points_in_bounding_box const point_type min_query_pt,
const point_type max_query_pt,
vcl_vector< value_type > &  values
const
 

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::points_within_radius const point_type query_pt,
COORD_T  radius,
vcl_vector< point_type > &  points,
vcl_vector< value_type > &  values
const
 

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::points_within_radius const point_type query_pt,
COORD_T  radius,
vcl_vector< value_type > &  values
const
 

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::remove_all_points  ) 
 

Definition at line 76 of file rsdl_bins_2d.txx.

template<class COORD_T, class VALUE_T>
bool rsdl_bins_2d< COORD_T, VALUE_T >::remove_point const point_type pt,
const value_type value
 

template<class COORD_T, class VALUE_T>
bool rsdl_bins_2d< COORD_T, VALUE_T >::remove_point const point_type pt  ) 
 

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::reset const point_type min_pt,
const point_type max_pt,
const point_type bin_sizes
 

template<class COORD_T, class VALUE_T>
void rsdl_bins_2d< COORD_T, VALUE_T >::set_distance_tolerance COORD_T  tolerance  )  [inline]
 

Definition at line 41 of file rsdl_bins_2d.h.


Member Data Documentation

template<class COORD_T, class VALUE_T>
point_type rsdl_bins_2d< COORD_T, VALUE_T >::bin_sizes_ [private]
 

Definition at line 112 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
vbl_array_2d< bin_vector_type_ > rsdl_bins_2d< COORD_T, VALUE_T >::bins_ [private]
 

Definition at line 108 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
COORD_T rsdl_bins_2d< COORD_T, VALUE_T >::dist_tolerance_sqr_ [private]
 

Definition at line 116 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
point_type rsdl_bins_2d< COORD_T, VALUE_T >::max_pt_ [private]
 

Definition at line 111 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
point_type rsdl_bins_2d< COORD_T, VALUE_T >::min_pt_ [private]
 

Definition at line 110 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
int rsdl_bins_2d< COORD_T, VALUE_T >::num_bins_x_ [private]
 

Definition at line 114 of file rsdl_bins_2d.h.

template<class COORD_T, class VALUE_T>
int rsdl_bins_2d< COORD_T, VALUE_T >::num_bins_y_ [private]
 

Definition at line 114 of file rsdl_bins_2d.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:49:34 2008 for contrib/rpl/rsdl by  doxygen 1.4.4