00001 #ifndef vpgl_io_camera_h_ 00002 #define vpgl_io_camera_h_ 00003 //: 00004 // \file 00005 #include <vsl/vsl_binary_io.h> 00006 #include <vpgl/vpgl_camera.h> 00007 #include <vpgl/vpgl_camera_double_sptr.h> 00008 #include <vpgl/vpgl_camera_float_sptr.h> 00009 00010 //: Binary save camera to stream 00011 template<class T> 00012 void vsl_b_write(vsl_b_ostream & os, vpgl_camera<T>* const& camera); 00013 00014 //: Binary load camera from stream. 00015 template<class T> 00016 void vsl_b_read(vsl_b_istream & is, vpgl_camera<T>* &camera); 00017 00018 //: Binary save camera sptr to stream 00019 void vsl_b_write(vsl_b_ostream & os, vpgl_camera_double_sptr const& cam_sptr); 00020 void vsl_b_write(vsl_b_ostream & os, vpgl_camera_float_sptr const& cam_sptr); 00021 00022 //: Binary load camera from stream. 00023 void vsl_b_read(vsl_b_istream & is, vpgl_camera_double_sptr &camera); 00024 void vsl_b_read(vsl_b_istream & is, vpgl_camera_float_sptr &camera); 00025 00026 #endif 00027