Class for importing a scene graph from a STL file. More...
#include <Inventor/io/STL/SoSTLInputReader.h>
Public Member Functions | |
SoSTLInputReader () | |
Constructor. | |
virtual | ~SoSTLInputReader () |
Destructor. | |
virtual bool | canConvert (SoInput *) |
Returns true if the specified input source can be converted by this plugin. | |
virtual SoSeparator * | convert (SoInput *) |
Returns the specified input source in the form of an Open Inventor scene graph. | |
Public Member Functions inherited from SoRefCounter | |
void | ref () const |
Adds a reference to an instance. | |
void | unref () const |
Removes a reference from an instance. | |
void | unrefNoDelete () const |
unrefNoDelete() should be called when it is desired to decrement the reference count, but not delete the instance if this brings the reference count to zero. | |
int | getRefCount () const |
Returns current reference count. | |
void | lock () const |
lock this instance. | |
void | unlock () const |
unlock this instance. | |
Public Member Functions inherited from SoTypedObject | |
virtual SoType | getTypeId () const =0 |
Returns the type identifier for a specific instance. | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Additional Inherited Members | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
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().
SoSTLFileFormat, SoSTLWriteAction
Definition at line 40 of file SoSTLInputReader.h.
SoSTLInputReader::SoSTLInputReader | ( | ) |
Constructor.
|
virtual |
Destructor.
|
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 |
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.