Classes | Macros | Functions
vgl_box_3d.h File Reference

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

#include <iosfwd>
#include <vector>
#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...
 

Macros

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

Functions

template<class Type >
std::ostream & operator<< (std::ostream &s, vgl_box_3d< Type > const &p)
 Write box to stream. More...
 
template<class Type >
std::istream & operator>> (std::istream &is, vgl_box_3d< Type > &p)
 Read box from stream. More...
 
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. More...
 

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.

Macro Definition Documentation

◆ VGL_BOX_3D_INSTANTIATE

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

Definition at line 275 of file vgl_box_3d.h.

Function Documentation

◆ operator<<()

template<class Type >
std::ostream & operator<< ( std::ostream &  s,
vgl_box_3d< Type > const &  p 
)

Write box to stream.

Definition at line 430 of file vgl_box_3d.hxx.

◆ operator>>()

template<class Type >
std::istream & operator>> ( std::istream &  is,
vgl_box_3d< Type > &  p 
)

Read box from stream.

Definition at line 437 of file vgl_box_3d.hxx.

◆ vgl_box_3d_bounds()

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.