All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class picture.Animation

java.lang.Object
   |
   +----picture.PicPipe
           |
           +----picture.Gallery
                   |
                   +----picture.Animation

public class Animation
extends Gallery
An animation is a gallery of pictures that differ only in the the time parameter. These pictures can be combined into a movie.

This code is (c) 1996 Leemon Baird <leemon@cs.cmu.edu>, http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely. If the code is modified, please state so in the comments.

Version:
1.0, 28 March 96
Author:
Leemon Baird

Variable Index

 o dTime
 o first
 o frames
 o last
 o skipLast
 o source
 o time

Constructor Index

 o Animation()

Method Index

 o BNF(int)
Return a BNF describing how this object parses its parameters.
 o get(PicPipeList, Colors, double, double, double, double, double, double, double, double)
Return the color of a point (x,y) in the gallery where pixels are size (dx,dy).
 o parse(Parser, int)
parse a series of pictures and combine into a tiled gallery.
 o unparse(Unparser, int)
Output a description of this object that can be parsed with parse().

Variables

 o time
 protected double time[]
 o dTime
 protected double dTime
 o first
 protected NumExp first
 o last
 protected NumExp last
 o frames
 protected IntExp frames
 o skipLast
 protected boolean skipLast
 o source
 protected PicPipePipeline source

Constructors

 o Animation
 public Animation()

Methods

 o get
 public void get(PicPipeList source,
                 Colors color,
                 double x,
                 double y,
                 double z,
                 double t,
                 double dx,
                 double dy,
                 double dz,
                 double dt)
Return the color of a point (x,y) in the gallery where pixels are size (dx,dy). This is identical to Gallery, except it uses time[] and dTime to set the time parameters for this picture.

Overrides:
get in class Gallery
 o BNF
 public String BNF(int lang)
Return a BNF describing how this object parses its parameters.

Overrides:
BNF in class Gallery
 o unparse
 public void unparse(Unparser u,
                     int lang)
Output a description of this object that can be parsed with parse().

Overrides:
unparse in class Gallery
See Also:
Parsable
 o parse
 public Object parse(Parser p,
                     int lang) throws ParserException
parse a series of pictures and combine into a tiled gallery.

Throws: ParserException
parser didn't find the required token
Overrides:
parse in class Gallery

All Packages  Class Hierarchy  This Package  Previous  Next  Index