2 #ifndef vgl_xio_box_3d_hxx_ 3 #define vgl_xio_box_3d_hxx_ 9 #include <vsl/vsl_basic_xml_element.h> 16 vsl_basic_xml_element xml_element(element_name);
17 xml_element.add_attribute(
"min_x", p.
min_x());
18 xml_element.add_attribute(
"min_y", p.
min_y());
19 xml_element.add_attribute(
"min_z", p.
min_z());
20 xml_element.add_attribute(
"max_x", p.
max_x());
21 xml_element.add_attribute(
"max_y", p.
max_y());
22 xml_element.add_attribute(
"max_z", p.
max_z());
23 xml_element.x_write(os);
26 #define VGL_XIO_BOX_3D_INSTANTIATE(T) \ 27 template void x_write(std::ostream &, const vgl_box_3d<T > &, std::string) 29 #endif // vgl_xio_box_3d_hxx_ void x_write(std::ostream &os, const vgl_box_3d< T > &p, std::string element_name)
Binary save self to stream.
Type min_z() const
Get min z.
Contains class to represent a cartesian 3D bounding box.
Type max_z() const
Get max z.
Type max_y() const
Get max y.
Type min_x() const
Get min x.
Type min_y() const
Get min y.
Represents a cartesian 3D box.
Type max_x() const
Get max x.