Update of Windows Installer for VisAD

I have just updated the Windows Installer (using InstallAnywhere) for
VisAD-Jython.  You may download a copy from:

http://www.ssec.wisc.edu/~tomw/visadtutor/jyvis.exe

Just run this file and follow the "Windows-style" installation of VisAD,
Java2, Java3D, Jython, and a few helpful batch files.

This release contains JRE version 1.3.1_03 for Windows, the visad.jar
file from 5/2/2002, and the current jython.jar file.

A significant addition has been made to the Jython 'subs.py' module to
make it easier to work with VisAD Shapes.  The "small examples" page
from the Jython-VisAD tutorial contains a couple of examples, but here's
a preview....it makes 3 shapes and moves them around for a minute or
so...

from visad.python.JPythonMethods import *
from subs import *
import time

maps=makeMaps(getRealType("x"),"x", getRealType("y"),"y")
maps[0].setRange(-1., 1.)
maps[1].setRange(-1., 1.)

disp = makeDisplay(maps)

inx3 = addShape(textShape("hello", size=.2))
moveShape(inx3, (1,1))

inx = addShape("cross")
moveShape(inx, (.5,.5))

inx2=addShape("solid_square", color="green")
moveShape(inx2, (-1, -1))
showDisplay(disp)

for i in xrange(100):
  x2 = -1. + i/50.
  x = .5 - i/50.
  x3 = 1. - i/70.

  moveShape(inx2, (x2,x2))
  moveShape(inx, (x,.5))
  moveShape(inx3, (x3,x3))
  time.sleep(.4)



--
Tom Whittaker
University of Wisconsin-Madison
Space Science and Eng. Center
ph:  608.262.2759


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