Class for importing a scene graph from a STL file. More...
#include <Inventor/io/STL/SoSTLInputReader.h>
Public Member Functions | |
SoSTLInputReader () | |
virtual | ~SoSTLInputReader () |
virtual bool | canConvert (SoInput *) |
virtual SoSeparator * | convert (SoInput *) |
This class imports data from an STL format (.stl) file into an Open Inventor scene graph.
Both ASCII and binary file formats are supported.
It may be efficient to use this class directly to import STL format data when the file format is already known. For convenience, note that the SoDB::readAll() method will automatically use this class if it detects that the specified file is STL format.
Limitations:
[C++] The STL module must be initialized (see SoSTLFileFormat) before using this class directly. It is not necessary to explicitly initialize the module when using SoDB::readAll().
SoSTLFileFormat, SoSTLWriteAction
SoSTLInputReader::SoSTLInputReader | ( | ) |
Constructor.
virtual SoSTLInputReader::~SoSTLInputReader | ( | ) | [virtual] |
Destructor.
virtual bool SoSTLInputReader::canConvert | ( | SoInput * | ) | [virtual] |
Returns true if the specified input source can be converted by this plugin. Note that the input source (SoInput object) may be a file or a buffer (memory). This method should return false if the input source is a buffer and the reader does not support reading from a buffer. SoInput::getCurFile() returns NULL if the input source is a buffer.
Implements SoInputReader.
virtual SoSeparator* SoSTLInputReader::convert | ( | SoInput * | ) | [virtual] |
Returns the specified input source in the form of an Open Inventor scene graph. Note that the input source (SoInput object) may be a file or a buffer (memory). This method should return NULL if the input source is a buffer and the reader does not support reading from a buffer. SoInput::getCurFile() returns NULL if the input source is a buffer.
Implements SoInputReader.