Tom,
You're right! I guess I didn't realize that you could have another
FunctionType as one of the arguments for the constructor of FunctionType.
Checking the javadoc's, I found that FunctionType takes MathTypes not
RealTypes. Thanks for the info! Does anyone know when Ugo's animation
tutorial will be online?
Vimal Gopal
----- Original Message -----
From: "tomw" <tomw@xxxxxxxxxxxxx>
To: "Vimal Gopal" <gopal@xxxxxxx>
Sent: Wednesday, August 09, 2000 2:07 PM
Subject: Re: Animations w/ VisAD
> Hi:
>
> > FunctionType fType = new FunctionType(time, baseType);
> >
> > The problem is, the last line of this snipet of code is illegal, yet
> > that's what the original notation seems to be hinting at. Obviously
>
> I didn't see anything wrong with that line of code...unless I've missed
> something else.
>
> I did copy your snippet into a 'program' and it ran just fine...except I
> did have to add a line:
> RealType radiance = new RealType("radiance");
>
> Here's the complete "program":
>
> import visad.*;
> public class test {
> public static void main(String [] a) {
> try {
>
> RealType line = new RealType("line");
> RealType element = new RealType("element");
> RealType radiance = new RealType("radiance");
> RealType time = new RealType("time");
>
> RealTupleType domain_tuple = new RealTupleType(line, element);
> FunctionType baseType = new FunctionType(domain_tuple, radiance);
> FunctionType fType = new FunctionType(time, baseType);
>
> System.out.println("fType="+fType);
>
> } catch (Exception e) {}
> }
> }
>
> When I run this, the output I get is:
> [presto]$java test
> fType=(time -> ((line, element) -> radiance))
>
> Not sure what I'm missing...I do know that when doing animations you
> will probably want to create an AnimationControl, since I believe the
> default state now for animations is "not animating" -- see
> visad.example.SimpleAnimate.java, for example.
>
> tom
>
> --
> Tom Whittaker (tomw@xxxxxxxxxxxxx)
> University of Wisconsin-Madison
> Space Science and Engineering Center
> Phone/VoiceMail: 608/262-2759
> Fax: 608/262-5974
>