![]() |
Rosetta Utilities
2014.16.56682
|
#include <KDTree.hh>
Public Member Functions | |
| virtual | ~KDTree () |
| Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
| KDTree () | |
| Empty constructor. More... | |
| KDTree (utility::vector1< utility::vector1< numeric::Real > > &pts) | |
| Constructs a balanced kd-tree from the set of k-dimensional input points. More... | |
| KDTree (utility::vector1< utility::vector1< numeric::Real > > &pts, utility::vector1< utility::pointer::ReferenceCountOP > &data) | |
| numeric::Size | size () const |
| Number of points in the kd-tree. More... | |
| numeric::Size | ndim () const |
| Number of dimensions in the kd-tree. This is the "k" in kd. More... | |
| KDNodeOP | root () const |
| Returns the KDNodeOP that is the root of the balanced kd-tree. More... | |
| HyperRectangleOP | bounds () const |
| Returns the HyperRectangle that bounds all of the points in the kd-tree. More... | |
| void | size (numeric::Size new_size) |
| Sets the number of points in this kd-tree. More... | |
| void | root (KDNodeOP new_root) |
| Sets the root of the kd-tree. More... | |
| void | extend_bounds (utility::vector1< numeric::Real > const &pt) |
| Pushes out the bounds of the HyperRectangle bounding this kd-tree if necessary. More... | |
Public Member Functions inherited from utility::pointer::ReferenceCount | |
| void | ctor () |
| virtual | ~ReferenceCount () |
| Destructor. More... | |
| Size | ref_count () const |
| Reference count. More... | |
Private Attributes | |
| numeric::Size | size_ |
| KDNodeOP | root_ |
| HyperRectangleOP | bounds_ |
Additional Inherited Members | |
Public Types inherited from utility::pointer::ReferenceCount | |
| typedef platform::Size | Size |
| typedef platform::Size | size_type |
Protected Member Functions inherited from utility::pointer::ReferenceCount | |
| ReferenceCount () | |
| Default constructor. More... | |
| ReferenceCount (ReferenceCount const &) | |
| Copy constructor. More... | |
| ReferenceCount & | operator= (ReferenceCount const &) |
| Copy assignment. More... | |
|
virtual |
Automatically generated virtual destructor for class deriving directly from ReferenceCount.
Auto-generated virtual destructor
| numeric::kdtree::KDTree::KDTree | ( | ) |
Empty constructor.
| numeric::kdtree::KDTree::KDTree | ( | utility::vector1< utility::vector1< numeric::Real > > & | pts | ) |
Constructs a balanced kd-tree from the set of k-dimensional input points.
References bounds_, numeric::kdtree::construct_kd_tree(), numeric::kdtree::make_points(), root_, and size().
| numeric::kdtree::KDTree::KDTree | ( | utility::vector1< utility::vector1< numeric::Real > > & | pts, |
| utility::vector1< utility::pointer::ReferenceCountOP > & | data | ||
| ) |
References bounds_, numeric::kdtree::construct_kd_tree(), numeric::kdtree::make_points(), root_, and size().
| HyperRectangleOP numeric::kdtree::KDTree::bounds | ( | ) | const |
Returns the HyperRectangle that bounds all of the points in the kd-tree.
References bounds_.
Referenced by numeric::kdtree::nearest_neighbor(), and numeric::kdtree::nearest_neighbors().
| void numeric::kdtree::KDTree::extend_bounds | ( | utility::vector1< numeric::Real > const & | pt | ) |
Pushes out the bounds of the HyperRectangle bounding this kd-tree if necessary.
References bounds_.
| numeric::Size numeric::kdtree::KDTree::ndim | ( | ) | const |
Number of dimensions in the kd-tree. This is the "k" in kd.
References bounds_.
| KDNodeOP numeric::kdtree::KDTree::root | ( | ) | const |
Returns the KDNodeOP that is the root of the balanced kd-tree.
References root_.
Referenced by numeric::kdtree::nearest_neighbor(), and numeric::kdtree::nearest_neighbors().
| void numeric::kdtree::KDTree::root | ( | KDNodeOP | new_root | ) |
Sets the root of the kd-tree.
References root_.
| numeric::Size numeric::kdtree::KDTree::size | ( | ) | const |
| void numeric::kdtree::KDTree::size | ( | numeric::Size | new_size | ) |
Sets the number of points in this kd-tree.
References size_.
|
private |
Referenced by bounds(), extend_bounds(), KDTree(), and ndim().
|
private |
Referenced by size().
1.8.7