Re: serialize a 3 d dispaly

Bill Hibbard wrote:


I think the RemoteSlaveDisplayImpl, or the JPEG file, is
the right approach for your problem.


I'd like to add that from python this is really, really easy to do, as documented at:

http://www.ssec.wisc.edu/~tomw/visadtutor/collab.html

There you will find a modification to the so-called "T7" example that consists of adding these lines:

from visad.util import ClientServer
# add everything to the server
server = ClientServer.startServer("Jython")
server.addDisplay(d1)
server.addDisplay(d2)
server.addDataReference(refimg)
server.addDataReference(userline)

to define all the elements that should be "remoted" (the server). Further on this page is "The smallest useful VisAD application ever written(?)". Here it is (the client) in its entirty:

from visad.python.JPythonMethods import *
import subs
from visad.util import ClientServer
# fetch everything from the server
client = ClientServer.connectToServer("localhost", "Jython")
d2 = ClientServer.getClientDisplay(client, 1)
#show it
showAxesScales(d2,1)
subs.showDisplay(d2,500,500,"T8 listener")

----

tom

--
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Phone/VoiceMail: 608/262-2759
Fax: 608/262-5974


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: