2 #ifndef vgl_io_box_3d_hxx_ 3 #define vgl_io_box_3d_hxx_ 10 #include <vsl/vsl_binary_io.h> 17 constexpr
short io_version_no = 1;
52 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_box_3d<T>&)\n" 53 <<
" Unknown version number "<<
v <<
'\n';
54 is.is().clear(std::ios::badbit);
67 os<<
"3d box with opposite corners at (" 72 #define VGL_IO_BOX_3D_INSTANTIATE(T) \ 73 template void vsl_print_summary(std::ostream &, const vgl_box_3d<T > &); \ 74 template void vsl_b_read(vsl_b_istream &, vgl_box_3d<T > &); \ 75 template void vsl_b_write(vsl_b_ostream &, const vgl_box_3d<T > &) 77 #endif // vgl_io_box_3d_hxx_ void set_min_position(Type const m[3])
Modify min corner point. Max corner point only changed if necessary to avoid empty box.
bool is_empty() const
Return true if this box is empty.
void vsl_print_summary(std::ostream &os, const vgl_box_3d< T > &p)
Output a human readable summary to the stream.
Type min_z() const
Get min z.
Contains class to represent a cartesian 3D bounding box.
Type max_z() const
Get max z.
void set_max_position(Type const m[3])
Modify max corner point. Min corner point only changed if necessary to avoid empty box.
Type max_y() const
Get max y.
Type min_x() const
Get min x.
void vsl_b_read(vsl_b_istream &is, vgl_box_3d< T > &p)
Binary load self from stream.
void vsl_b_write(vsl_b_ostream &os, const vgl_box_3d< T > &p)
Binary save self to stream.
Type min_y() const
Get min y.
Represents a cartesian 3D box.
Type max_x() const
Get max x.