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

StelSphericalIndex Class Reference

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

#include <StelSphericalIndex.hpp>

List of all members.

Classes

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

Public Member Functions

 StelSphericalIndex (int maxObjectsPerNode=100, int maxLevel=7)
void insert (StelRegionObjectP obj)
 Insert the given object in the StelSphericalIndex.
template<class FuncObject >
void processIntersectingRegions (const SphericalRegionP &region, FuncObject &func) const
 Process all the objects intersecting the given region using the passed function object.
template<class FuncObject >
void processBoundingCapIntersectingRegions (const SphericalCap &cap, FuncObject &func) const
 Process all the objects intersecting the given region using the passed function object.
template<class FuncObject >
void processContainedRegions (const SphericalRegionP &region, FuncObject &func) const
 Process all the objects contained in the given region using the passed function object.
template<class FuncObject >
void processAll (FuncObject &func) const
 Process all the objects intersecting the given region using the passed function object.
void clear ()
 Remove all the elements in the container.
unsigned int count ()
 Return the total number of elements in the container.

Detailed Description

Container allowing to store and query SphericalRegion.

Definition at line 27 of file StelSphericalIndex.hpp.


Member Function Documentation

void StelSphericalIndex::clear (  )  [inline]

Remove all the elements in the container.

Definition at line 61 of file StelSphericalIndex.hpp.

unsigned int StelSphericalIndex::count (  )  [inline]

Return the total number of elements in the container.

Definition at line 67 of file StelSphericalIndex.hpp.

void StelSphericalIndex::insert ( StelRegionObjectP  obj  ) 

Insert the given object in the StelSphericalIndex.

Reimplemented in StelSphericalIndexMultiRes.

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.

Definition at line 55 of file StelSphericalIndex.hpp.

template<class FuncObject >
void StelSphericalIndex::processBoundingCapIntersectingRegions ( const SphericalCap cap,
FuncObject &  func 
) const [inline]

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

Definition at line 43 of file StelSphericalIndex.hpp.

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.

Definition at line 49 of file StelSphericalIndex.hpp.

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.

Definition at line 37 of file StelSphericalIndex.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:47 2013 for Stellarium by  doxygen 1.6.3