Classes | Defines | Functions
core/vgl/vgl_box_3d.h File Reference

Contains class to represent a cartesian 3D bounding box. More...

#include <vcl_iosfwd.h>
#include <vcl_vector.h>
#include <vgl/vgl_fwd.h>

Go to the source code of this file.

Classes

class  vgl_box_3d< Type >
 Represents a cartesian 3D box. More...

Defines

#define VGL_BOX_3D_INSTANTIATE(T)   extern "please include vgl/vgl_box_3d.txx first"

Functions

template<class Type >
vcl_ostream & operator<< (vcl_ostream &s, vgl_box_3d< Type > const &p)
 Write box to stream.
template<class Type >
vcl_istream & operator>> (vcl_istream &is, vgl_box_3d< Type > &p)
 Read box from stream.
template<class T , class ITER >
void vgl_box_3d_bounds (ITER begin, ITER end, vgl_box_3d< T > &bounding_box)
 Calculate the bounding box of a sequence of points or boxes.

Detailed Description

Contains class to represent a cartesian 3D bounding box.

Author:
Don Hamilton, Peter Tu
Date:
15 Feb 2000
    Modifications
     Peter Vanroose, 28 Feb 2000: lots of minor corrections
     NPC (Manchester)14 Mar 2001: Tidied up the documentation + added binary_io
     Peter Vanroose, 10 Jul 2001: Deprecated get_*() in favour of *(), and explicit casts
     Peter Vanroose,  5 Oct 2001: Added operator==() and methods is_empty() and contains()
     Peter Vanroose,  6 Oct 2001: Added method add(vgl_point_3d<T>) to enlarge a box
     Peter Vanroose,  7 Oct 2001: Removed deprecated get_*() functions
     Peter Vanroose,    Feb 2002: brief doxygen comment placed on single line
     Peter Vanroose, 12 Sep 2002: Added method add(vgl_box_3d<T>) to enlarge a box
     Peter Vanroose, 13 May 2003: Constructor interface change (compat with vgl_box_2d)
     Peter Vanroose  15 Oct 2003: Removed deprecated constructors without 5th arg
     Peter Vanroose  16 Oct 2003: Corner pts given to constructor may now be in any order
     Peter Vanroose  16 Oct 2003: Added intersect(box1,box2)
     Gamze Tunali    25 Jan 2007: Moved intersect(box1,box2) to vgl_intersection
     Peter Vanroose  30 Mar 2007: Commented out deprecated intersect() function
     Peter Vanroose  22 Jul 2009: Moved vgl_intersection() to vgl_intersection.h
   

Definition in file vgl_box_3d.h.


Define Documentation

#define VGL_BOX_3D_INSTANTIATE (   T)    extern "please include vgl/vgl_box_3d.txx first"

Definition at line 275 of file vgl_box_3d.h.


Function Documentation

template<class Type >
vcl_ostream & operator<< ( vcl_ostream &  s,
vgl_box_3d< Type > const &  p 
)

Write box to stream.

Definition at line 427 of file vgl_box_3d.txx.

template<class Type >
vcl_istream & operator>> ( vcl_istream &  is,
vgl_box_3d< Type > &  p 
)

Read box from stream.

Definition at line 434 of file vgl_box_3d.txx.

template<class T , class ITER >
void vgl_box_3d_bounds ( ITER  begin,
ITER  end,
vgl_box_3d< T > &  bounding_box 
)

Calculate the bounding box of a sequence of points or boxes.

Definition at line 269 of file vgl_box_3d.h.