contrib/brl/bbas/bgui3d/bgui3d_file_io.h
Go to the documentation of this file.
00001 // This is brl/bbas/bgui3d/bgui3d_file_io.h
00002 #ifndef bgui3d_file_io_h_
00003 #define bgui3d_file_io_h_
00004 //:
00005 // \file
00006 // \brief Read and write scene graphs as IV or VRML files
00007 // \author Matt Leotta, (mleotta@lems.brown.edu)
00008 // \date May 27, 2004
00009 //
00010 // \verbatim
00011 //  Modifications
00012 //   <none yet>
00013 // \endverbatim
00014 
00015 #include <vcl_string.h>
00016 #include <vcl_iostream.h>
00017 
00018 // forward declarations
00019 class SoNode;
00020 
00021 //: Export the scene as IV
00022 void bgui3d_export_iv( SoNode* scene_root, const vcl_string& filename );
00023 
00024 //: Export the scene as VRML
00025 void bgui3d_export_vrml( SoNode* scene_root, const vcl_string& filename);
00026 
00027 //: Export the scene as VRML 2.0
00028 void bgui3d_export_vrml2( SoNode* scene_root, const vcl_string& filename);
00029 
00030 
00031 //: Read a file and parse into a scenegraph
00032 // \returns the root node of the scenegraph or NULL on failure
00033 // \note currently handles IV, VRML, and VRML2 files
00034 SoNode* bgui3d_import_file(const vcl_string& filename, vcl_ostream& os = vcl_cout);
00035 
00036 
00037 #endif // bgui3d_file_io_h_