Debian Codegraph @

doc/man/man3/ivm/general/SoTranSender.ivm

raw
1 NAME SoTranSender "" "" { sends database changes for transcription }
2
3 INCLUDE misc/SoTranscribe.h
4
5 DESC {
6 This class is used for transcribing Inventor data. Transcription is
7 the process of packaging changes to a database and sending them over a
8 "wire" to another database.
9 \p
10 The \cSoTranSender\. class is used on the sending side of
11 transcription. It packages up changes to a Inventor database into a
12 file or memory area defined by an \cSoOutput\. instance. It supports a
13 limited set of changes to a database; each change is stored as a
14 command in the transcription area. The \cSoTranReceiver\. class can
15 be used at the other end to interpret the transcribed commands.
16 }
17
18 METHOD "" SoTranSender(SoOutput *output) {
19 The constructor takes a pointer to an \cSoOutput\. instance that
20 determines what the transcription area is (file or memory).
21 }
22
23 METHOD "" ~SoTranSender() { Destructor. }
24
25 METHOD "" SoOutput * getOutput() const {
26 Returns pointer to current \cSoOutput\. instance.
27 }
28
29 METHOD "" void insert(SoNode *node) {
30 Adds an INSERT command to the transcription area. The given node will
31 be added as the last child of the root node on the receiving end.
32 }
33
34 METHOD InsertUnder void insert(SoNode *node, SoNode *parent, int n) {
35 Adds an INSERT command to the transcription area. The given node will
36 be added as the \an\.th child of the given parent node on the
37 receiving end. A NULL parent node causes the node to be added to the
38 receiving end's root node.
39 }
40
41 METHOD "" void remove(SoNode *parent, int n) {
42 Adds a REMOVE command to the transcription area. The \an\.th child of
43 the given (non-NULL) parent node on the receiving end will be removed.
44 }
45
46 METHOD "" void replace(SoNode *parent, int n, SoNode *newNode) {
47 Adds a REPLACE command to the transcription area. The \an\.th child of
48 the given (non-NULL) parent node on the receiving end will be replaced
49 with \anewNode\..
50 }
51
52 METHOD "" void modify(SoNode *node) {
53 Adds a MODIFY command to the transcription area. Updates the field
54 data for the given node to the new contents. Note that this changes
55 only field data; children of groups are not affected, nor is any
56 non-field instance data.
57 }
58
59 METHOD "" void prepareToSend() {
60 Prepares a \cSoTranSender\. instance for transcription, making sure
61 the transcription area is complete and all packaged to go. This must
62 be called before the transcription can be performed.
63 }
64
65 ALSO { SoOutput, SoTranReceiver }
66