Class for exporting a scene graph to an STL file. More...
#include <Inventor/io/STL/SoSTLWriteAction.h>
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 () |
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.
SbFileHelper, SoSTLFileFormat, SoSTLInputReader
SoSTLWriteAction::SoSTLWriteAction | ( | ) |
Constructor.
SoSTLWriteAction::~SoSTLWriteAction | ( | ) |
Destructor.
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:
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.
filename | the output filename to write to. |