Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: animating shapes

Hi John,

> I have made some shapes using a similar structure to example Test47.  This is 
> shown below:
> 
>     dpys = new DisplayImplJ3D("display");
> 
>     dpys.addMap(new ScalarMap(ir_radiance, Display.XAxis));
>     dpys.addMap(new ScalarMap(ir_radiance, Display.ShapeScale));
> 
>     ScalarMap shape_map = new ScalarMap(count, Display.Shape);
>     dpys.addMap(shape_map);
> 
>     getSpecialComponent(dpys);
> 
> I used a RealType "count" to represent the shapes and call the method 
> getSpecialComponent(dpys) to define those shapes (VisADGeometryArray).  The 
> method then calls setShapeset() and setShape to set the shapes.
> 
> I am wondering what's the best way to animate this shape.  Since this shape 
> is defined by points, by animate I mean how I can change those data points 
> on-the-fly (say using an animation slide bar) so that it appears that the 
> shape is enlarging or changing its form.  Thanks in advance!

If your data are a Field like (index -> count) you can
animate by mapping index to Animation. Another way is to
continually update the 'count' value in your data object.

Good luck, Bill


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690