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.

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


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