Writes a scene graph to a file. More...
#include <Inventor/actions/SoWriteAction.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoWriteAction () | |
SoWriteAction (SoOutput *out) | |
SoOutput * | getOutput () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Writes a scene graph to a file.
This class is used for writing scene graphs in Open Inventor (.iv) format. SoWriteAction traverses the scene graph and uses an instance of SoOutput to write each node. SoOutput methods can be called to specify what file or memory buffer to write to. SoOutput supports both ASCII (default) and binary formats and provides some convenience functions for opening and closing files. See SbFileHelper for more convenience functions. Since Open Inventor 8.1, SoOutput can write compressed data in the lossless Zlib (gzip) format. Both ASCII and binary format files may be compressed.
STL
Open Inventor can also export geometry to an STL (.stl) format file. See SoSTLWriteAction.
SoWriteAction::SoWriteAction | ( | ) |
Constructor.
SoWriteAction::SoWriteAction | ( | SoOutput * | out | ) |
Constructor that takes an SoOutput to use for output.
static SoType SoWriteAction::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoAction.
SoOutput* SoWriteAction::getOutput | ( | ) | const [inline] |
Returns reference to SoOutput instance in action.
virtual SoType SoWriteAction::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.