xc
Public Types | Public Member Functions | Protected Attributes | List of all members
XC::EntitiesShadows< T > Class Template Reference

Shadows of the entities on the coordinate axis used for spatial indexing. More...

#include <DqPtrsEntities.h>

Public Types

typedef std::set< T * > shadow_makers
 
typedef boost::icl::interval_map< double, shadow_makers > shadow_interval_map
 
typedef shadow_interval_map::iterator interval_iterator
 
typedef shadow_interval_map::const_iterator interval_const_iterator
 
typedef boost::icl::interval< double > shadow_interval
 

Public Member Functions

 EntitiesShadows (const DqPtrsEntities< T > &)
 Constructor. More...
 
void add (T *)
 Add entity to the interval map.
 
void remove (T *)
 Remove entity from the interval map.
 
std::set< T * > getNeighbors (const Pos3d &pMin, const Pos3d &pMax) const
 Return the objects whose "shadow" overlaps whith the interval argument.
 

Protected Attributes

shadow_interval_map x_shadows
 
shadow_interval_map y_shadows
 
shadow_interval_map z_shadows
 

Detailed Description

template<class T>
class XC::EntitiesShadows< T >

Shadows of the entities on the coordinate axis used for spatial indexing.

Constructor & Destructor Documentation

◆ EntitiesShadows()

template<class T >
XC::EntitiesShadows< T >::EntitiesShadows ( const DqPtrsEntities< T > &  entities)

Constructor.

Compute the shadows of the entities on the axis. We call "shadows" the (xmin, xmax), (ymin_ymax), (zmin,zmax) intervals obtained from the object boudary box.


The documentation for this class was generated from the following file: