public class SoByteStream extends Inventor
SoWriteAction
to write path lists to an in-memory buffer. Byte streams are commonly used to transfer data in copy and paste operations. (The SoWinClipboard class passes SoByteStream
data during copy and paste.)
See also:
SoWinClipboard
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoByteStream()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(SoNode node)
Calls convert(node, true).
|
void |
convert(SoNode node,
boolean binaryFormat)
Converts the passed scene graph object(s) into a byte stream.
|
void |
convert(SoPath path)
Calls convert(path, true).
|
void |
convert(SoPath path,
boolean binaryFormat)
Converts the passed scene graph object(s) into a byte stream.
|
java.nio.ByteBuffer |
getData()
Returns the data from the last
convert() operation. |
long |
getNumBytes()
Returns the number of bytes from the last
convert() operation. |
static java.util.Vector<SoPath> |
unconvert(SoByteStream byteStream)
Takes byte stream data and unconverts it back to scene graph objects.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public void convert(SoNode node)
public void convert(SoPath path)
public void convert(SoPath path, boolean binaryFormat)
getData()
and getNumBytes()
.public long getNumBytes()
convert()
operation.
This byte stream format is well suited to data transfers, like copy and paste.public static java.util.Vector<SoPath> unconvert(SoByteStream byteStream)
public java.nio.ByteBuffer getData()
convert()
operation.
This byte stream format is well suited to data transfers, like copy and paste.public void convert(SoNode node, boolean binaryFormat)
getData()
and getNumBytes()
.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com