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 exports an Open Inventor scenegraph into an STL format (.stl) file.

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

Limitations:

[C++] The STL module must be initialized (see SoSTLFileFormat) before using this class directly.

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.

Warning: Most actions call ref() on the path before traversing the scene graph, then call unref() after traversal. If the path's reference count was zero (the default), the call to apply() will cause it to be destroyed.

Reimplemented from SoAction.

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

Initiates an action on the graph defined by a node. Warning: Most actions call ref() on the node before traversing the scene graph, then call unref() after traversal. If the node's reference count was zero (the default), the call to apply() will cause it to be destroyed.

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 Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/