Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

StelSphericalIndex Class Reference

Container allowing to store and query SphericalRegion. More...

#include <StelSphericalIndex.hpp>

Inherited by StelSphericalIndexMultiRes.

List of all members.

Public Member Functions

 StelSphericalIndex (int maxObjectsPerNode=100, int maxLevel=7)
void insert (StelRegionObjectP obj)
template<class FuncObject>
void processIntersectingRegions (const SphericalRegionP &region, FuncObject &func) const
template<class FuncObject>
void processContainedRegions (const SphericalRegionP &region, FuncObject &func) const
template<class FuncObject>
void processAll (FuncObject &func) const
void clear ()

Classes

class  Node
 The base node class.
struct  NodeElem
 The elements stored in the container.
class  RootNode
 The first Node of a tree.


Detailed Description

Container allowing to store and query SphericalRegion.


Member Function Documentation

void StelSphericalIndex::insert ( StelRegionObjectP  obj  ) 

Insert the given object in the StelSphericalIndex.

Reimplemented in StelSphericalIndexMultiRes.

template<class FuncObject>
void StelSphericalIndex::processIntersectingRegions ( const SphericalRegionP region,
FuncObject &  func 
) const [inline]

Process all the objects intersecting the given region using the passed function object.

Reimplemented in StelSphericalIndexMultiRes.

template<class FuncObject>
void StelSphericalIndex::processContainedRegions ( const SphericalRegionP region,
FuncObject &  func 
) const [inline]

Process all the objects contained in the given region using the passed function object.

template<class FuncObject>
void StelSphericalIndex::processAll ( FuncObject &  func  )  const [inline]

Process all the objects intersecting the given region using the passed function object.

Reimplemented in StelSphericalIndexMultiRes.


Generated on Mon Mar 22 09:55:39 2010 for Stellarium by  doxygen 1.5.5