vtf-logo

geom::BBoxTreeNode< N, T > Class Template Reference

Abstract base class for nodes in a BBoxTree. More...

#include <BBoxTree.h>

Inheritance diagram for geom::BBoxTreeNode< N, T >:

geom::BBoxTreeBranch< N, T > geom::BBoxTreeLeaf< N, T > List of all members.

Public Types

typedef Types::Number Number
 The number type.
typedef Types::Point Point
 The Cartesian point type.
typedef Types::BBox BBox
 A bounding box.
typedef Types::SizeType SizeType
 The size type.

Public Member Functions

Destructor.
virtual ~BBoxTreeNode ()
 Virtual destructor does nothing.
Queries.
virtual void computePointQuery (std::vector< const Leaf * > &leaves, const Point &x) const =0
 Get the leaves containing bounding boxes that might contain the point.
virtual void computeWindowQuery (std::vector< const Leaf * > &leaves, const BBox &window) const =0
 Get the leaves containing bounding boxes that might overlap the window.
virtual void computeMinimumDistanceQuery (std::vector< const Leaf * > &leaves, const Point &x, Number *upperBound) const =0
 Get the indices of the bounding boxes that might contain objects of minimum distance.
Accessors.
virtual const BBoxgetDomain () const =0
 Return the domain of this node.
Manipulators.
virtual void computeDomain (const std::vector< BBox > &boxes)=0
 Compute the domain for this node.
File I/O.
virtual void printAscii (std::ostream &out) const =0
 Print the node information.
Memory usage.
virtual SizeType getMemoryUsage () const =0
 Return the memory usage of this node and its children.
Validity check.
virtual void checkValidity (const std::vector< BBox > &boxes) const =0
 Check the validity of this node.

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &out, const BBoxTreeNode< N, T > &node)
 Write to a file stream.

Detailed Description

template<int N, typename T>
class geom::BBoxTreeNode< N, T >

Abstract base class for nodes in a BBoxTree.


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 12:56:03 2007 for Computational Geometry Package by  doxygen 1.4.7