Rosetta 3.3
Public Member Functions
numeric::kdtree::KDNode Class Reference

#include <KDNode.hh>

Inheritance diagram for numeric::kdtree::KDNode:
Inheritance graph
[legend]
Collaboration diagram for numeric::kdtree::KDNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 KDNode (KDTree const &tree)
 Constructor for a KDNode. Takes a const-refence a KDTree that should contain this KDNode.
KDNodeOP parent () const
 Returns the parent of this KDNode in the tree, or NULL if there is no parent.
KDNodeOP left_child () const
 Returns the left child of this KDNode in the tree, or NULL if there is no left child.
KDNodeOP right_child () const
 Returns the right child of this KDNode in the tree, or NULL if there is no right child.
KDTree const & tree () const
 Returns a const reference to the Tree that contains this KDNode.
utility::vector1< numeric::Reallocation () const
 Returns the location of this node in k-space.
utility::pointer::ReferenceCountOP data () const
numeric::Size split_axis () const
 Returns the dimension along which this node splits points.
bool is_leaf () const
 Returns true if this node has no children, false otherwise.
bool is_root () const
 Returns true if this node has no parent, false otherwise.
KDPointOP point () const
numeric::Real distance () const
void parent (KDNodeOP new_parent)
 Sets the parent for this node.
void left_child (KDNodeOP new_left_child)
 Sets the left child for this node.
void right_child (KDNodeOP new_right_child)
 Sets the right child for this node.
void location (utility::vector1< numeric::Real > new_location)
 Sets the location of this node in k-space.
void point (KDPointOP new_point)
void distance (numeric::Real new_dist)
void split_axis (numeric::Size axis)
 Sets the dimension along which this node splits points.

Constructor & Destructor Documentation

numeric::kdtree::KDNode::KDNode ( KDTree const &  tree)

Constructor for a KDNode. Takes a const-refence a KDTree that should contain this KDNode.


Member Function Documentation

utility::pointer::ReferenceCountOP numeric::kdtree::KDNode::data ( ) const
numeric::Real numeric::kdtree::KDNode::distance ( ) const
void numeric::kdtree::KDNode::distance ( numeric::Real  new_dist)
bool numeric::kdtree::KDNode::is_leaf ( ) const

Returns true if this node has no children, false otherwise.

References left_child(), and right_child().

bool numeric::kdtree::KDNode::is_root ( ) const

Returns true if this node has no parent, false otherwise.

References parent().

KDNodeOP numeric::kdtree::KDNode::left_child ( ) const

Returns the left child of this KDNode in the tree, or NULL if there is no left child.

Referenced by is_leaf().

void numeric::kdtree::KDNode::left_child ( KDNodeOP  new_left_child)

Sets the left child for this node.

utility::vector1< numeric::Real > numeric::kdtree::KDNode::location ( ) const

Returns the location of this node in k-space.

void numeric::kdtree::KDNode::location ( utility::vector1< numeric::Real new_location)

Sets the location of this node in k-space.

KDNodeOP numeric::kdtree::KDNode::parent ( ) const

Returns the parent of this KDNode in the tree, or NULL if there is no parent.

Referenced by is_root().

void numeric::kdtree::KDNode::parent ( KDNodeOP  new_parent)

Sets the parent for this node.

void numeric::kdtree::KDNode::point ( KDPointOP  new_point)
KDPointOP numeric::kdtree::KDNode::point ( ) const
KDNodeOP numeric::kdtree::KDNode::right_child ( ) const

Returns the right child of this KDNode in the tree, or NULL if there is no right child.

Referenced by is_leaf().

void numeric::kdtree::KDNode::right_child ( KDNodeOP  new_right_child)

Sets the right child for this node.

numeric::Size numeric::kdtree::KDNode::split_axis ( ) const

Returns the dimension along which this node splits points.

void numeric::kdtree::KDNode::split_axis ( numeric::Size  axis)

Sets the dimension along which this node splits points.

KDTree const & numeric::kdtree::KDNode::tree ( ) const

Returns a const reference to the Tree that contains this KDNode.


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