public abstract class SoInputReader extends Inventor implements SafeDisposable
Input readers should be loaded and managed as plugins. Open Inventor automtically attempts to load all files that may be plugin libraries (files with the extension .dll or .so depending on the platform). Plugin libraries may also be explicitly loaded using
SoDB.addPlugin(). See more details on that page. The file name convention (not required) for readers is "Iv*Reader.dll (or .so)".
A plugin library must implement the initPlugin() and exitPlugin() C-formatted entry-points. The initPlugin() function is responsible for registering the new class (or classes) in the Open Inventor database through the standard SoType type creation mechanism. The exitPlugin() function is used to disable the use of the custom class(s) by removing the corresponding type(s) from the Open Inventor database.
SoDB.readAll() (for example) is called to create a scene graph from a file or buffer, Open Inventor first attempts to handle the data as .iv or VRML format. If that fails, Open Inventor will call the
canConvert() method for each loaded plugin class, that is derived from
SoInputReader, in the order they were loaded. The first reader plugin that returns true from this method will be used to handle the data.
|Modifier and Type||Method and Description|
Returns true if the specified input source can be converted by this plugin.
Returns the specified input source in the form of an Open Inventor scene graph.
Explicitly call this method to force object to dispose its unmanaged resources.
Returns a boolean flag which indicates if it is safe to call
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public boolean isDisposable()
SafeDisposable.dispose()on the object.
public boolean dispose()
public SoSeparator convert(SoInput name_16431)
SoInputobject) 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.
public boolean canConvert(SoInput in)
SoInputobject) 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.
Generated on September 3, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com