Public Member Functions | Protected Attributes
lslgeneric::Cell< PointT > Class Template Reference

Base class for a rectangular 3D cell. More...

#include <cell.h>

Inheritance diagram for lslgeneric::Cell< PointT >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void addPoint (PointT &pt)
 Cell ()
 Cell (PointT &center, 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_

Detailed Description

template<typename PointT>
class lslgeneric::Cell< PointT >

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.

Definition at line 52 of file cell.h.


Constructor & Destructor Documentation

template<typename PointT>
lslgeneric::Cell< PointT >::Cell ( ) [inline]

Definition at line 60 of file cell.h.

template<typename PointT>
lslgeneric::Cell< PointT >::Cell ( PointT &  center,
double &  xsize,
double &  ysize,
double &  zsize 
) [inline]

Definition at line 61 of file cell.h.

template<typename PointT>
lslgeneric::Cell< PointT >::Cell ( const Cell< PointT > &  other) [inline]

Definition at line 68 of file cell.h.

template<typename PointT>
virtual lslgeneric::Cell< PointT >::~Cell ( ) [inline, virtual]

Definition at line 75 of file cell.h.


Member Function Documentation

template<typename PointT>
virtual void lslgeneric::Cell< PointT >::addPoint ( PointT &  pt) [inline, virtual]

Reimplemented in lslgeneric::NDTCell< PointT >.

Definition at line 130 of file cell.h.

template<typename PointT>
virtual Cell<PointT>* lslgeneric::Cell< PointT >::clone ( ) const [inline, virtual]

clone - create an empty object with same type

Reimplemented in lslgeneric::NDTCell< PointT >.

Definition at line 116 of file cell.h.

template<typename 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 >.

Definition at line 122 of file cell.h.

template<typename PointT>
PointT lslgeneric::Cell< PointT >::getCenter ( ) const [inline]

Definition at line 88 of file cell.h.

template<typename PointT>
virtual double lslgeneric::Cell< PointT >::getDiagonal ( ) const [inline, virtual]

Definition at line 131 of file cell.h.

template<typename PointT>
void lslgeneric::Cell< PointT >::getDimensions ( double &  xs,
double &  ys,
double &  zs 
) const [inline]

Definition at line 92 of file cell.h.

template<typename PointT>
bool lslgeneric::Cell< PointT >::isInside ( const PointT  pt) const [inline]

Definition at line 98 of file cell.h.

template<typename PointT>
void lslgeneric::Cell< PointT >::setCenter ( const PointT &  cn) [inline]

Definition at line 77 of file cell.h.

template<typename PointT>
void lslgeneric::Cell< PointT >::setDimensions ( const double &  xs,
const double &  ys,
const double &  zs 
) [inline]

Definition at line 81 of file cell.h.


Member Data Documentation

template<typename PointT>
PointT lslgeneric::Cell< PointT >::center_ [protected]

Definition at line 56 of file cell.h.

template<typename PointT>
double lslgeneric::Cell< PointT >::xsize_ [protected]

Definition at line 57 of file cell.h.

template<typename PointT>
double lslgeneric::Cell< PointT >::ysize_ [protected]

Definition at line 57 of file cell.h.

template<typename PointT>
double lslgeneric::Cell< PointT >::zsize_ [protected]

Definition at line 57 of file cell.h.


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


ndt_map
Author(s): Todor Stoyanov, Jari Saarinen, Henrik Andreasson
autogenerated on Mon Jan 6 2014 11:31:57