Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vbl_bounding_box_base< T, DIM_ > Class Template Reference

#include <vbl_bounding_box.h>

Inheritance diagram for vbl_bounding_box_base< T, DIM_ >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T, class DIM_>
class vbl_bounding_box_base< T, DIM_ >

Definition at line 36 of file vbl_bounding_box.h.

Public Member Functions

 vbl_bounding_box_base ()
 Construct an empty bounding box.
void update (T const &x)
 Incorporate 1d point x.
void update (T const &x, T const &y)
 Incorporate 2d point x, y.
void update (T const &x, T const &y, T const &z)
 Incorporate 3d point x, y, z.
int dimension () const
 return dimension.
void update (T const *point)
 Incorporate DIM-d point.
void reset ()
 Reset to empty.
bool empty () const
 Return initialisation status.
bool inside (const T &x, const T &y) const
 is a 2D point inside the bounding box.
bool inside (const T &x, const T &y, const T &z) const
 is a 3D point inside the bounding box.
bool inside (T const *point)
 inside test for arbitrary dimension.
volume () const
 return "volume".
vcl_ostream & print (vcl_ostream &s) const
T const * min () const
T const * max () const
T * min ()
T * max ()
T const & xmin () const
T const & xmax () const
T const & ymin () const
T const & ymax () const
T const & zmin () const
T const & zmax () const

Private Attributes

bool initialized_
min_ [DIM_::value]
max_ [DIM_::value]


Constructor & Destructor Documentation

template<class T, class DIM_>
vbl_bounding_box_base< T, DIM_ >::vbl_bounding_box_base  )  [inline]
 

Construct an empty bounding box.

Definition at line 40 of file vbl_bounding_box.h.


Member Function Documentation

template<class T, class DIM_>
int vbl_bounding_box_base< T, DIM_ >::dimension  )  const [inline]
 

return dimension.

Definition at line 63 of file vbl_bounding_box.h.

template<class T, class DIM_>
bool vbl_bounding_box_base< T, DIM_ >::empty  )  const [inline]
 

Return initialisation status.

Definition at line 83 of file vbl_bounding_box.h.

template<class T, class DIM_>
bool vbl_bounding_box_base< T, DIM_ >::inside T const *  point  )  [inline]
 

inside test for arbitrary dimension.

Definition at line 105 of file vbl_bounding_box.h.

template<class T, class DIM_>
bool vbl_bounding_box_base< T, DIM_ >::inside const T &  x,
const T &  y,
const T &  z
const [inline]
 

is a 3D point inside the bounding box.

Definition at line 95 of file vbl_bounding_box.h.

template<class T, class DIM_>
bool vbl_bounding_box_base< T, DIM_ >::inside const T &  x,
const T &  y
const [inline]
 

is a 2D point inside the bounding box.

Definition at line 86 of file vbl_bounding_box.h.

template<class T, class DIM_>
T* vbl_bounding_box_base< T, DIM_ >::max  )  [inline]
 

Definition at line 128 of file vbl_bounding_box.h.

template<class T, class DIM_>
T const* vbl_bounding_box_base< T, DIM_ >::max  )  const [inline]
 

Definition at line 125 of file vbl_bounding_box.h.

template<class T, class DIM_>
T* vbl_bounding_box_base< T, DIM_ >::min  )  [inline]
 

Definition at line 127 of file vbl_bounding_box.h.

template<class T, class DIM_>
T const* vbl_bounding_box_base< T, DIM_ >::min  )  const [inline]
 

Definition at line 124 of file vbl_bounding_box.h.

template<class T, class DIM_>
vcl_ostream & vbl_bounding_box_base< T, DIM_ >::print vcl_ostream &  s  )  const
 

Definition at line 18 of file vbl_bounding_box.txx.

template<class T, class DIM_>
void vbl_bounding_box_base< T, DIM_ >::reset  )  [inline]
 

Reset to empty.

Definition at line 80 of file vbl_bounding_box.h.

template<class T, class DIM_>
void vbl_bounding_box_base< T, DIM_ >::update T const *  point  )  [inline]
 

Incorporate DIM-d point.

Definition at line 66 of file vbl_bounding_box.h.

template<class T, class DIM_>
void vbl_bounding_box_base< T, DIM_ >::update T const &  x,
T const &  y,
T const &  z
[inline]
 

Incorporate 3d point x, y, z.

Definition at line 56 of file vbl_bounding_box.h.

template<class T, class DIM_>
void vbl_bounding_box_base< T, DIM_ >::update T const &  x,
T const &  y
[inline]
 

Incorporate 2d point x, y.

Definition at line 49 of file vbl_bounding_box.h.

template<class T, class DIM_>
void vbl_bounding_box_base< T, DIM_ >::update T const &  x  )  [inline]
 

Incorporate 1d point x.

Definition at line 43 of file vbl_bounding_box.h.

template<class T, class DIM_>
T vbl_bounding_box_base< T, DIM_ >::volume  )  const [inline]
 

return "volume".

Definition at line 114 of file vbl_bounding_box.h.

template<class T, class DIM_>
T const& vbl_bounding_box_base< T, DIM_ >::xmax  )  const [inline]
 

Definition at line 131 of file vbl_bounding_box.h.

template<class T, class DIM_>
T const& vbl_bounding_box_base< T, DIM_ >::xmin  )  const [inline]
 

Definition at line 130 of file vbl_bounding_box.h.

template<class T, class DIM_>
T const& vbl_bounding_box_base< T, DIM_ >::ymax  )  const [inline]
 

Definition at line 133 of file vbl_bounding_box.h.

template<class T, class DIM_>
T const& vbl_bounding_box_base< T, DIM_ >::ymin  )  const [inline]
 

Definition at line 132 of file vbl_bounding_box.h.

template<class T, class DIM_>
T const& vbl_bounding_box_base< T, DIM_ >::zmax  )  const [inline]
 

Definition at line 135 of file vbl_bounding_box.h.

template<class T, class DIM_>
T const& vbl_bounding_box_base< T, DIM_ >::zmin  )  const [inline]
 

Definition at line 134 of file vbl_bounding_box.h.


Member Data Documentation

template<class T, class DIM_>
bool vbl_bounding_box_base< T, DIM_ >::initialized_ [private]
 

Definition at line 161 of file vbl_bounding_box.h.

template<class T, class DIM_>
T vbl_bounding_box_base< T, DIM_ >::max_[DIM_::value] [private]
 

Definition at line 163 of file vbl_bounding_box.h.

template<class T, class DIM_>
T vbl_bounding_box_base< T, DIM_ >::min_[DIM_::value] [private]
 

Definition at line 162 of file vbl_bounding_box.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:39:09 2008 for core/vbl by  doxygen 1.4.4