Debian Codegraph @

doc/man/man3/ivm/general/SoByteStream.ivm

raw
1 NAME SoByteStream "" "" {
2 converts scene graph objects to character byte streams
3 }
4
5 INCLUDE misc/SoByteStream.h
6
7 DESC {
8 This class creates a byte stream representation of a scene graph,
9 using an \cSoWriteAction\. to write path lists to an in-memory
10 buffer. Byte streams are commonly used to transfer data in copy and
11 paste operations. (The \cSoXtClipboard\. class passes
12 \cSoByteStream\. data during copy and paste.)
13 }
14
15 METHOD "" SoByteStream() {}
16 METHOD "" ~SoByteStream() { Constructor and destructor. }
17
18 METHOD convertNode void convert(SoNode *node, SbBool binaryFormat = TRUE) {}
19 METHOD convertPath void convert(SoPath *path, SbBool binaryFormat = TRUE) {}
20 METHOD ConvertPathList void convert(SoPathList *pathList,
21 SbBool binaryFormat = TRUE) {
22 These convert the passed scene graph object(s) into a byte stream.
23 The caller may specify whether the byte stream is written in binary
24 (TRUE) or ASCII (FALSE) format, and can pass the object(s) by node,
25 path, or pathList.
26 }
27
28 METHOD "" void * getData() {}
29 METHOD "" uint32_t getNumBytes() {
30 These return the data and number of bytes from the last \mconvert()\.
31 operation. This byte stream format is well suited to data transfers,
32 like copy and paste.
33 }
34
35 METHOD uncomvertStream static SoPathList * unconvert(
36 SoByteStream *byteStream) {}
37 METHOD unconvertData static SoPathList * unconvert(void *data,
38 uint32_t numBytes) {
39 These take byte stream data and unconvert it back to scene graph objects.
40 The objects are returned in a path list.
41 }
42
43 ALSO { SoXtClipboard }
44