Classes | Functions
contrib/gel/vsol/vsol_box_2d.h File Reference

A bounding box. More...

#include <vsol/vsol_box.h>
#include <vsl/vsl_binary_io.h>
#include <vul/vul_timestamp.h>
#include <vbl/vbl_ref_count.h>
#include <vbl/vbl_bounding_box.h>
#include "vsol_box_2d_sptr.h"
#include <vcl_iostream.h>

Go to the source code of this file.

Classes

class  vsol_box_2d
 A bounding box for 2d spatial objects. More...

Functions

vcl_ostream & operator<< (vcl_ostream &s, vsol_box_2d const &p)
 Stream operator.
void vsl_b_write (vsl_b_ostream &os, vsol_box_2d_sptr const &p)
 Binary save vsol_box_2d* to stream.
void vsl_b_read (vsl_b_istream &is, vsol_box_2d_sptr &p)
 Binary load vsol_box_2d* from stream.
void vsl_print_summary (vcl_ostream &os, vsol_box_2d_sptr const &b)
 Print human readable summary of box to a stream.

Detailed Description

A bounding box.

This is a time stamped and refcounted interface to vbl_box<double,2>

    Modifications
     2003/01/09 Peter Vanroose deprecated set_min_x() etc. and replaced with
                               more safe add_point()
     2004/05/10 Joseph Mundy   added binary I/O methods
     2004/05/10 Joseph Mundy   changed bounds access methods to const
     2004/09/27 Peter Vanroose grow_minmax_bounds() now takes smart pointer arg
     2004/11/15 H.Can Aras     added inheritance from vsol_box
     2006/05/31 O.C. Ozcanli   added inside method
   

Definition in file vsol_box_2d.h.


Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  s,
vsol_box_2d const &  p 
)

Stream operator.

Definition at line 124 of file vsol_box_2d.cxx.

void vsl_b_read ( vsl_b_istream is,
vsol_cylinder_sptr cyl 
)

Binary load vsol_box_2d* from stream.

Definition at line 146 of file vsol_box_2d.cxx.

void vsl_b_write ( vsl_b_ostream os,
const vsol_cylinder_sptr p 
)

Binary save vsol_box_2d* to stream.

Definition at line 133 of file vsol_box_2d.cxx.

void vsl_print_summary ( vcl_ostream &  os,
vsol_box_2d_sptr const &  b 
) [inline]

Print human readable summary of box to a stream.

(This is needed for the instantiation of vsl_vector_io<vsol_box_2d_sptr>)

Definition at line 110 of file vsol_box_2d.h.