SoTranSender(SoOutput*output)
The constructor takes a pointer to an SoOutput instance that determines what the transcription area is
(file or memory).
~SoTranSender()
Destructor.
SoOutput*getOutput()const
Returns pointer to current SoOutput instance.
voidinsert(SoNode*node)
Adds an INSERT command to the transcription area. The given node will be added as the last child of
the root node on the receiving end.
voidinsert(SoNode*node,SoNode*parent,intn)
Adds an INSERT command to the transcription area. The given node will be added as the nth child of the
given parent node on the receiving end. A NULL parent node causes the node to be added to the
receiving end's root node.
voidremove(SoNode*parent,intn)
Adds a REMOVE command to the transcription area. The nth child of the given (non-NULL) parent node on
the receiving end will be removed.
voidreplace(SoNode*parent,intn,SoNode*newNode)
Adds a REPLACE command to the transcription area. The nth child of the given (non-NULL) parent node on
the receiving end will be replaced with newNode.
voidmodify(SoNode*node)
Adds a MODIFY command to the transcription area. Updates the field data for the given node to the new
contents. Note that this changes only field data; children of groups are not affected, nor is any non-
field instance data.
voidprepareToSend()
Prepares a SoTranSender instance for transcription, making sure the transcription area is complete and
all packaged to go. This must be called before the transcription can be performed.