SoWriteAction Class Reference
[Actions]

Writes a scene graph to a file. More...

#include <Inventor/actions/SoWriteAction.h>

Inheritance diagram for SoWriteAction:
SoAction SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoWriteAction ()
 SoWriteAction (SoOutput *out)
SoOutputgetOutput () const

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

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.

EXAMPLE

SEE ALSO

SoOutput, SoSTLWriteAction

See related examples:

AlternateRep, Simplification


Constructor & Destructor Documentation

SoWriteAction::SoWriteAction (  ) 

Constructor.

SoWriteAction::SoWriteAction ( SoOutput out  ) 

Constructor that takes an SoOutput to use for output.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 30 May 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/