Stellarium 0.13.0
List of all members | Classes | Public Member Functions
StelSphericalIndex Class Reference

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

#include <StelSphericalIndex.hpp>

Public Member Functions

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

Detailed Description

Container allowing to store and query SphericalRegion.

Member Function Documentation

void StelSphericalIndex::clear ( )
inline

Remove all the elements in the container.

unsigned int StelSphericalIndex::count ( )
inline

Return the total number of elements in the container.

void StelSphericalIndex::insert ( StelRegionObjectP  obj)

Insert the given object in the StelSphericalIndex.

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

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

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.

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

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

template<class FuncObject >
void StelSphericalIndex::processIntersectingPointInRegions ( const SphericalRegion region,
FuncObject &  func 
) const
inline

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

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

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