All Packages Class Hierarchy This Package Previous Next Index
Class picture.Antialias
java.lang.Object
|
+----picture.PicPipe
|
+----picture.Antialias
- public class Antialias
- extends PicPipe
Antialias returns the same picture as its source, but
gets multiple samples per pixel from the source and
averages them. It breaks the pixel up into several
pieces along each dimension, and randomly picks a sample
within each resulting hypercube.
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
-
jitter
-
-
numSamples
-
-
random
-
-
samplesT
-
-
samplesX
-
-
samplesY
-
-
samplesZ
-
-
Antialias()
-
-
BNF(int)
- Return BNF description of parameters for this object, when parsing language lang.
-
get(PicPipeList, Colors, double, double, double, double, double, double, double, double)
- Return the color for a particular pixel given its size and location.
-
parse(Parser, int)
- Parse the input file to get the parameters for this object.
-
unparse(Unparser, int)
- Output a description of this object that can be parsed with parse().
samplesX
protected IntExp samplesX
samplesY
protected IntExp samplesY
samplesZ
protected IntExp samplesZ
samplesT
protected IntExp samplesT
numSamples
protected int numSamples
jitter
protected boolean jitter
random
protected Random random
Antialias
public Antialias()
BNF
public String BNF(int lang)
- Return BNF description of parameters for this object, when parsing language lang.
- Overrides:
- BNF in class PicPipe
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
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
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