NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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.htmlThere 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
visad
archives: