Re: Controlling or sampling display parameters in VisAD/Python

Hi Mike,

You get an array 'maps' of ScalarMap objects from subs.makeMaps().
After you pass these to subs.makeDisplay(), you can call
maps[i].getControl() to get various subclasses of visad.Control.
Methods of these give you control over displays. For view point,
call display.getProjectionControl() and call its setMatrix()
and getMatrix() methods.

Tom may be able to give you some shorthand methods.

Good luck, Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


On Sun, 28 Apr 2002, Michael Redmond wrote:

> I want to control (or sample) the display settings so that I can produce
> animations in VisAD/Python. I see some potential methods to do it, but I
> don't have enough info to use them.
>
> If I want to control the display, for example Zoom, Viewing Angle,
> Setting for Isosurface Value, etc, I assume I should use something
> related to the subs.makeMaps method that allows changes to mappings in
> "real-time" rather than only at the display setup time. The control of
> those mappings is through "names" that do not seem to be fully documented
> in the version of the VisAD Python Function Quick Reference that I have
> (http://www.ssec.wisc.edu/~tomw/visadtutor/cheatsheet.txt). I am not sure
> is makeMaps will function as a real-time operation.
>
> I could also sample display parameters as above while the user
> manipulates the display and then create an animation from that. There is
> a method subs.getDisplay that appears to capture some information about
> the current status of the display, but the getDisplay attribute is not
> recognized by my version of VisAD/Python. I am also not sure how much
> information it sends back and whether it is what I want, since I have not
> been able to try it.
>
> Are there other methods to control or sample the display parameters so
> that I can generate an animation of a fully controlled display? So far, I
> can control and animate actions within the display, such as positioning
> of slices through a data set using a slider function.
>
> Thanks
> MJR
>