Converts scene graph objects to character byte streams.
More...
#include <Inventor/misc/SoByteStream.h>
This class creates a byte stream representation of a scene graph, using an SoWriteAction to write path lists to an in-memory buffer. Byte streams are commonly used to transfer data in copy and paste operations.
Definition at line 78 of file SoByteStream.h.
◆ SoByteStream()
SoByteStream::SoByteStream |
( |
| ) |
|
◆ ~SoByteStream()
SoByteStream::~SoByteStream |
( |
| ) |
|
◆ convert() [1/3]
void SoByteStream::convert |
( |
SoNode * |
node, |
|
|
bool |
binaryFormat = TRUE |
|
) |
| |
◆ convert() [2/3]
void SoByteStream::convert |
( |
SoPath * |
path, |
|
|
bool |
binaryFormat = TRUE |
|
) |
| |
◆ convert() [3/3]
void SoByteStream::convert |
( |
SoPathList * |
pathList, |
|
|
bool |
binaryFormat = TRUE |
|
) |
| |
The caller may specify whether the byte stream is written in binary (TRUE) or ASCII (FALSE) format, and can pass the object(s) by node, path, or pathList.
◆ copy()
void SoByteStream::copy |
( |
void * |
d, |
|
|
size_t |
len |
|
) |
| |
This sets isRaw to TRUE, and that data cannot be unconverted.
◆ getData()
void* SoByteStream::getData |
( |
| ) |
|
|
inline |
This byte stream format is well suited to data transfers, like copy and paste.
Definition at line 105 of file SoByteStream.h.
◆ getNumBytes()
◆ isRawData()
bool SoByteStream::isRawData |
( |
| ) |
const |
|
inline |
◆ unconvert() [1/2]
This static routine performs an SoDB::read on the data, and returns a path list of the paths read in. These take byte stream data and unconvert it back to scene graph objects. The objects are returned in a path list.
◆ unconvert() [2/2]
The objects are returned in a path list.
The documentation for this class was generated from the following file:
- /home/jenkins/workspaces/mevislab/4.1_0/build/MeVis/ThirdParty/Sources/Inventor/include/Inventor/misc/SoByteStream.h