public class SoTranSender extends Inventor
The SoTranSender
class is used on the sending side of transcription. It packages up changes to an Open Inventor database into a file or memory area defined by an SoOutput
instance. It supports a limited set of changes to a database; each change is stored as a command in the transcription area. The SoTranReceiver
class can be used at the other end to interpret the transcribed commands.
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoTranSender(SoOutput output)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SoOutput |
getOutput() |
void |
insert(SoNode node)
Adds an INSERT command to the transcription area.
|
void |
insert(SoNode node,
SoNode parent,
int n)
Adds an INSERT command to the transcription area.
|
void |
modify(SoNode node)
Adds a MODIFY command to the transcription area.
|
void |
prepareToSend()
Prepares an
SoTranSender instance for transcription, making sure the transcription area is complete and all packaged to go. |
void |
remove(SoNode parent,
int n)
Adds a REMOVE command to the transcription area.
|
void |
replace(SoNode parent,
int n,
SoNode newNode)
Adds a REPLACE command to the transcription area.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoTranSender(SoOutput output)
output
- Determines what the transcription area is (file or memory).public void insert(SoNode node)
public void insert(SoNode node, SoNode parent, int n)
public void modify(SoNode node)
public void prepareToSend()
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.public void remove(SoNode parent, int n)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com