Functions
contrib/brl/bbas/bgui3d/bgui3d_file_io.cxx File Reference
#include "bgui3d_file_io.h"
#include <vcl_iostream.h>
#include <Inventor/nodes/SoNode.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/SoOutput.h>
#include <Inventor/SoInput.h>
#include <Inventor/actions/SoWriteAction.h>
#include <Inventor/actions/SoToVRMLAction.h>
#include <Inventor/actions/SoToVRML2Action.h>
#include <Inventor/VRMLnodes/SoVRMLGroup.h>

Go to the source code of this file.

Functions

void bgui3d_export_iv (SoNode *scene_root, const vcl_string &filename)
 Export the scene as IV.
void bgui3d_export_vrml (SoNode *scene_root, const vcl_string &filename)
 Export the scene as VRML.
void bgui3d_export_vrml2 (SoNode *scene_root, const vcl_string &filename)
 Export the scene as VRML 2.0.
SoNode * bgui3d_import_file (const vcl_string &filename, vcl_ostream &os)
 Read a file and parse into a scenegraph.

Detailed Description

Definition in file bgui3d_file_io.cxx.


Function Documentation

void bgui3d_export_iv ( SoNode *  scene_root,
const vcl_string &  filename 
)

Export the scene as IV.

Definition at line 20 of file bgui3d_file_io.cxx.

void bgui3d_export_vrml ( SoNode *  scene_root,
const vcl_string &  filename 
)

Export the scene as VRML.

Definition at line 34 of file bgui3d_file_io.cxx.

void bgui3d_export_vrml2 ( SoNode *  scene_root,
const vcl_string &  filename 
)

Export the scene as VRML 2.0.

Definition at line 55 of file bgui3d_file_io.cxx.

SoNode* bgui3d_import_file ( const vcl_string &  filename,
vcl_ostream &  os = vcl_cout 
)

Read a file and parse into a scenegraph.

Returns:
the root node of the scenegraph or NULL on failure
Note:
currently handles IV, VRML, and VRML2 files

Definition at line 74 of file bgui3d_file_io.cxx.