Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690