SoSTLInputReader Class Reference
[Inventor STL file format support]

VSG extension Class for importing a scene graph from a STL file. More...

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

Inheritance diagram for SoSTLInputReader:
SoInputReader SoRefCounter SoTypedObject

List of all members.

Public Member Functions

 SoSTLInputReader ()
virtual ~SoSTLInputReader ()
virtual bool canConvert (SoInput *)
virtual SoSeparatorconvert (SoInput *)

Detailed Description

VSG extension Class for importing a scene graph from a STL file.

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().

SEE ALSO

SoSTLFileFormat, SoSTLWriteAction


Constructor & Destructor Documentation

SoSTLInputReader::SoSTLInputReader (  ) 

Constructor.

virtual SoSTLInputReader::~SoSTLInputReader (  )  [virtual]

Destructor.


Member Function Documentation

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.


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/