All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sim.display.Contour

java.lang.Object
   |
   +----sim.display.Plot
           |
           +----sim.display.Contour

public class Contour
extends Plot
Draw a contour plot with any number of contours.

This code is (c) 1996,1997 Ansgar Laubsch and 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:
2.0 15 May 97
Author:
Ansgar Laubsch, Leemon Baird

Variable Index

 o color
 o colorM
 o data
 o function
 o inputM
 o inputs
 o max
 o min
 o numContours
 o origFunction
 o outputM
 o spectrum
 o weightM
 o xElement
 o xSamples
 o yElement
 o ySamples
 o zElement
 o zeros
 o zMax
 o zMin

Constructor Index

 o Contour()

Method Index

 o destroy()
ensure the function approximator has its destroy() called too
 o drawAll(Graphics, double, double, double, double, int, int, int, int, int, int)
Draw the contour lines.
 o getParameters(int)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
 o initialize(int)
Initialize, either partially or completely.
 o update(String, Pointer, Watchable)
One of the watched variables has changed, so look at it and others.

Variables

 o numContours
 protected IntExp numContours
 o function
 protected FunApp function
 o origFunction
 protected FunApp origFunction[]
 o inputs
 protected MatrixD inputs
 o xSamples
 protected IntExp xSamples
 o xElement
 protected IntExp xElement
 o ySamples
 protected IntExp ySamples
 o yElement
 protected IntExp yElement
 o zElement
 protected IntExp zElement
 o zMin
 protected NumExp zMin
 o zMax
 protected NumExp zMax
 o data
 protected double data[][]
 o min
 protected double min
 o max
 protected double max
 o inputM
 protected MatrixD inputM
 o outputM
 protected MatrixD outputM
 o weightM
 protected MatrixD weightM
 o zeros
 protected final double zeros[]
 o color
 protected Color color
 o colorM
 protected PMatrixD colorM
 o spectrum
 protected PBoolean spectrum

Constructors

 o Contour
 public Contour()

Methods

 o getParameters
 public Object[][] getParameters(int lang)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.

Overrides:
getParameters in class Plot
See Also:
getParameters
 o drawAll
 public void drawAll(Graphics g,
                     double xMin,
                     double xMax,
                     double yMin,
                     double yMax,
                     int startX,
                     int startY,
                     int xAxisX,
                     int xAxisY,
                     int yAxisX,
                     int yAxisY)
Draw the contour lines. The region of mathematical space to draw is (xMin,yMin)-(xMax,yMax), where (xMin,yMin) is plotted at screen coordinates (startX,startY), and (xMax,yMin) is plotted at screen coordinates (xAxisX,xAxisY), and (xMin,yMax) is plotted at screen coordinates (yAxisX,yAxisY).

Overrides:
drawAll in class Plot
 o destroy
 public void destroy()
ensure the function approximator has its destroy() called too

Overrides:
destroy in class Plot
 o update
 public void update(String changedName,
                    Pointer changedVar,
                    Watchable obj)
One of the watched variables has changed, so look at it and others. It should call checkMoved() to make sure the window is a legal size.

Overrides:
update in class Plot
 o initialize
 public void initialize(int level)
Initialize, either partially or completely.

Overrides:
initialize in class Plot
See Also:
initialize

All Packages  Class Hierarchy  This Package  Previous  Next  Index