SoSTLWriteAction Class Reference
[Inventor STL file format support]

VSG extension Class for exporting a scene graph to an STL file. More...

#include <Inventor/io/STL/SoSTLWriteAction.h>

Inheritance diagram for SoSTLWriteAction:
SoCallbackAction SoAction SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoSTLWriteAction ()
 ~SoSTLWriteAction ()
void setOutputFileName (const SbString &filename)
void setBinaryOutput (bool flag)
bool isBinaryOutput () const
virtual void apply (SoNode *node)
virtual void apply (SoPath *path)
virtual void apply (const SoPathList &pathList, SbBool obeysRules=FALSE)

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

VSG extension Class for exporting a scene graph to an STL file.

This class can export an Open Inventor scenegraph into an STL format (.stl) file.

ASCII and binary file formats are supported (see setBinaryOutput()).

SEE ALSO

SbFileHelper, SoSTLFileFormat, SoSTLInputReader


Constructor & Destructor Documentation

SoSTLWriteAction::SoSTLWriteAction (  ) 

Constructor.

SoSTLWriteAction::~SoSTLWriteAction (  ) 

Destructor.


Member Function Documentation

virtual void SoSTLWriteAction::apply ( const SoPathList pathList,
SbBool  obeysRules = FALSE 
) [virtual]

Initiates an action on the graph defined by a list of paths.

TRUE can be passed for the obeysRules flag if the given path list has the following 4 properties:

  1. All paths have the same head node.
  2. Paths are sorted in traversal order.
  3. If one path ends at node A, no other path continues through A.
  4. No two paths are the same.

These rules will be obeyed by path lists returned by picking and by searches for non-group nodes.

Reimplemented from SoAction.

virtual void SoSTLWriteAction::apply ( SoPath path  )  [virtual]

Initiates an action on the graph defined by a path.

Reimplemented from SoAction.

virtual void SoSTLWriteAction::apply ( SoNode node  )  [virtual]

Initiates an action on the graph defined by a node.

Reimplemented from SoAction.

static SoType SoSTLWriteAction::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoCallbackAction.

virtual SoType SoSTLWriteAction::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoCallbackAction.

bool SoSTLWriteAction::isBinaryOutput (  )  const

Returns current state of binary flag.

void SoSTLWriteAction::setBinaryOutput ( bool  flag  ) 

Sets whether output should be ASCII (default) or binary.

void SoSTLWriteAction::setOutputFileName ( const SbString filename  ) 

Set the output filename to write to.

Parameters:
filename the output filename to write to.

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

Open Inventor by FEI reference manual, generated on 21 Sep 2015
Copyright © FEI S.A.S. All rights reserved.
http://www.vsg3d.com