Classes | Functions
contrib/gel/vsol/vsol_box_3d.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_3d_sptr.h"
#include <vcl_iostream.h>

Go to the source code of this file.

Classes

class  vsol_box_3d
 A bounding box for 3d spatial objects. More...

Functions

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

Detailed Description

A bounding box.

Note that the definition of width, depth and height are such that the X-Y plane is considered as a Rectangle with a "width" and "height" according to the usual definition. The figure shows a right-handed coordinate system, but there is no commitment to that in the definitions

                         |<--width-->|
                   Z     O-----------O  ---
                      | /           /|   ^
                      |/           / |   |
                      O-----------O  | depth
                      |           |  |   |
                      |  centroid |  |   v
                      |  Y  o     |  O  ---
                      | /         | /   /_____height
                      |/          |/   /
                      O-----------O  --- X
   
    Modifications
     2003/01/09 Peter Vanroose deprecated set_min_x() etc. and replaced with
                               more safe add_point()
     2004/09/25 Peter Vanroose added binary I/O
     2004/09/27 Peter Vanroose grow_minmax_bounds() now takes smart pointer arg
     2004/11/15 H.Can Aras     added inheritance from vsol_box
   

Definition in file vsol_box_3d.h.


Function Documentation

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

Stream operator.

Definition at line 139 of file vsol_box_3d.cxx.

void vsl_b_read ( vsl_b_istream is,
vsol_cylinder_sptr cyl 
)

Binary load vsol_box_3d* from stream.

Binary load vsol_box_3d* from stream.

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_3d* to stream.

Binary save vsol_box_3d* to stream.

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_3d_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_3d_sptr>)

Definition at line 127 of file vsol_box_3d.h.