com.metsci.glimpse.charts.bathy
Class Conrec
java.lang.Object
com.metsci.glimpse.charts.bathy.Conrec
public class Conrec
- extends java.lang.Object
Conrec a straightforward method of contouring some surface represented a regular
triangular mesh.
Ported from the C++ code by Nicholas Yue (see above copyright notice).
http://local.wasp.uwa.edu.au/~pbourke/papers/conrec/
for full description
of code and original C++ source.
- Version:
- 1.0
- Author:
- Bradley White
Constructor Summary |
Conrec(Render render)
Creates new Conrec |
Method Summary |
void |
contour(double[][] d,
int ilb,
int iub,
int jlb,
int jub,
double[] x,
double[] y,
int nc,
double[] z)
contour is a contouring subroutine for rectangularly spaced data
It emits calls to a line drawing subroutine supplied by the user
which draws a contour map corresponding to real*4data on a randomly
spaced rectangular grid. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Conrec
public Conrec(Render render)
throws java.lang.Exception
- Creates new Conrec
- Throws:
java.lang.Exception
contour
public void contour(double[][] d,
int ilb,
int iub,
int jlb,
int jub,
double[] x,
double[] y,
int nc,
double[] z)
- contour is a contouring subroutine for rectangularly spaced data
It emits calls to a line drawing subroutine supplied by the user
which draws a contour map corresponding to real*4data on a randomly
spaced rectangular grid. The coordinates emitted are in the same
units given in the x() and y() arrays.
Any number of contour levels may be specified but they must be
in order of increasing value.
- Parameters:
d
- - matrix of data to contourilb,iub,jlb,jub
- - index bounds of data matrix
The following two, one dimensional arrays (x and y) contain the horizontal and
vertical coordinates of each sample points.x
- - data matrix column coordinatesy
- - data matrix row coordinatesnc
- - number of contour levelsz
- - contour levels in increasing order.
Copyright © 2012 Metron, Inc.. All Rights Reserved.