Base class for a rectangular 3D cell. More...
#include <cell.h>
Public Member Functions | |
virtual void | addPoint (PointT &pt) |
Cell () | |
Cell (PointT ¢er, double &xsize, double &ysize, double &zsize) | |
Cell (const Cell &other) | |
virtual Cell< PointT > * | clone () const |
clone - create an empty object with same type | |
virtual Cell< PointT > * | copy () const |
copy - create the same object as a new instance | |
PointT | getCenter () const |
virtual double | getDiagonal () const |
void | getDimensions (double &xs, double &ys, double &zs) const |
bool | isInside (const PointT pt) const |
void | setCenter (const PointT &cn) |
void | setDimensions (const double &xs, const double &ys, const double &zs) |
virtual | ~Cell () |
Protected Attributes | |
PointT | center_ |
double | xsize_ |
double | ysize_ |
double | zsize_ |
Base class for a rectangular 3D cell.
The Cell class provides a base for all types of derived cells. The logic behind this is to abstract some of the functionalities that are expected from a spatial cell and eventually be able to interchange cell classes in SpatialIndex implementations.
lslgeneric::Cell< PointT >::Cell | ( | ) | [inline] |
lslgeneric::Cell< PointT >::Cell | ( | PointT & | center, |
double & | xsize, | ||
double & | ysize, | ||
double & | zsize | ||
) | [inline] |
lslgeneric::Cell< PointT >::Cell | ( | const Cell< PointT > & | other | ) | [inline] |
virtual lslgeneric::Cell< PointT >::~Cell | ( | ) | [inline, virtual] |
virtual void lslgeneric::Cell< PointT >::addPoint | ( | PointT & | pt | ) | [inline, virtual] |
Reimplemented in lslgeneric::NDTCell< PointT >.
virtual Cell<PointT>* lslgeneric::Cell< PointT >::clone | ( | ) | const [inline, virtual] |
clone - create an empty object with same type
Reimplemented in lslgeneric::NDTCell< PointT >.
virtual Cell<PointT>* lslgeneric::Cell< PointT >::copy | ( | ) | const [inline, virtual] |
copy - create the same object as a new instance
Reimplemented in lslgeneric::NDTCell< PointT >.
PointT lslgeneric::Cell< PointT >::getCenter | ( | ) | const [inline] |
virtual double lslgeneric::Cell< PointT >::getDiagonal | ( | ) | const [inline, virtual] |
void lslgeneric::Cell< PointT >::getDimensions | ( | double & | xs, |
double & | ys, | ||
double & | zs | ||
) | const [inline] |
bool lslgeneric::Cell< PointT >::isInside | ( | const PointT | pt | ) | const [inline] |
void lslgeneric::Cell< PointT >::setCenter | ( | const PointT & | cn | ) | [inline] |
void lslgeneric::Cell< PointT >::setDimensions | ( | const double & | xs, |
const double & | ys, | ||
const double & | zs | ||
) | [inline] |
PointT lslgeneric::Cell< PointT >::center_ [protected] |
double lslgeneric::Cell< PointT >::xsize_ [protected] |
double lslgeneric::Cell< PointT >::ysize_ [protected] |
double lslgeneric::Cell< PointT >::zsize_ [protected] |