All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class picture.Edges

java.lang.Object
   |
   +----picture.PicPipe
           |
           +----picture.Edges

public class Edges
extends PicPipe
This PicPipe returns the max difference between values of adjacent source pixels. It compares the current pixel to it's immediate neighbor to the right, and the neighbor below (and also into the z direction if dz!=0).

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, 20 April 96
Author:
Leemon Baird

Variable Index

 o down
 o into
 o middle
 o right
 o thickness

Constructor Index

 o Edges()

Method Index

 o BNF(int)
Return BNF description of parameters for this object, when parsing language lang.
 o get(PicPipeList, Colors, double, double, double, double, double, double, double, double)
Return the color for a particular pixel given its size and location.
 o parse(Parser, int)
Parse the input file to get the parameters for this object.
 o unparse(Unparser, int)
Output a description of this object that can be parsed with parse().

Variables

 o thickness
 protected IntExp thickness
 o middle
 protected Colors middle
 o right
 protected Colors right
 o down
 protected Colors down
 o into
 protected Colors into

Constructors

 o Edges
 public Edges()

Methods

 o BNF
 public String BNF(int lang)
Return BNF description of parameters for this object, when parsing language lang.

Overrides:
BNF in class PicPipe
 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 PicPipe
See Also:
Parsable
 o parse
 public Object parse(Parser p,
                     int lang) throws ParserException
Parse the input file to get the parameters for this object.

Throws: ParserException
parser didn't find the required token
Overrides:
parse in class PicPipe
 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 for a particular pixel given its size and location.

Overrides:
get in class PicPipe

All Packages  Class Hierarchy  This Package  Previous  Next  Index