iv.IvBehavior

This class is the missing link between the behavior server and the 'NetIv' viewer. The behavior server itself is not responsible for communicating with NetIv because its only purpose is to handle uploaded classes and its instances. The server is not interested in what the classes respectively instances do.

The class iv.IvBehavior is a behavior class which can be uploaded to the behavior server. It maintains a static UDP socket, implements the protocol for the NetIv viewer and provides a high level API for manipulating inventor scene graphs.

All classes which deals with inventor should be derived from iv.IvBehavior.

The class maintains a single static socket. This means all instances are using the same UDP socket and therefore the same socket address (where NetIv is listening). Before the class can be used and instances can be created, this socket address must be initialized. The initialization must be done via the setClassParam command (format: host port).

For a more detailed description take a look at the API of the 'iv' package.


Related Topics