?? graph.isocurve.html
字號:
<!--NewPage--><html><head><!-- Generated by javadoc on Wed Oct 23 13:30:49 EST 1996 --><a name="_top_"></a><title> Class graph.IsoCurve</title></head><body><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-graph.html">This Package</a> <a href="graph.Graph2D.html#_top_">Previous</a> <a href="graph.LoadData.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Class graph.IsoCurve</h1><pre><a href="java.lang.Object.html#_top_">java.lang.Object</a> | +----graph.IsoCurve</pre><hr><dl> <dt> public class <b>IsoCurve</b> <dt> extends <a href="java.lang.Object.html#_top_">Object</a></dl>This class will calculate the constant curve of a given value passingthrough a grid of values.<dl> <dt> <b>Version:</b> <dd> 1.6, 1996/07/30 04:52:40. <dt> <b>Author:</b> <dd> Leigh Brookshaw</dl><hr><a name="index"></a><h2> <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index"></h2><dl> <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#cells"><b>cells</b></a> <dd> Vector of cells that the contour passes through. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#curve"><b>curve</b></a> <dd> Array that holds the points of the contour <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#grid"><b>grid</b></a> <dd> Array holding the data grid. <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#nx"><b>nx</b></a> <dd> X Dimension of data grid <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ny"><b>ny</b></a> <dd> Y Dimension of data grid <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#size"><b>size</b></a> <dd> Number of points in the contour <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o "> <a href="#value"><b>value</b></a> <dd> Contour value to be found</dl><h2> <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"></h2><dl> <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#IsoCurve()"><b>IsoCurve</b></a>() <dd> Instantiate the class and initialize all the variables <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#IsoCurve(double[], int, int)"><b>IsoCurve</b></a>(double[], int, int) <dd> Instantiate the class and initialize all the variables.</dl><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#addDataPoint(double, double)"><b>addDataPoint</b></a>(double, double) <dd> Add a data point to the contour curve. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#addDataPoint(int, int, int)"><b>addDataPoint</b></a>(int, int, int) <dd> Add a data point to the contour curve. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#createCells()"><b>createCells</b></a>() <dd> Create the vector of all cells that contain the contour. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getcurve()"><b>getcurve</b></a>() <dd> Traverse the cells and find One connect countour. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getCurve()"><b>getCurve</b></a>() <dd> Return a contour curve. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getPoint(int, int, int)"><b>getPoint</b></a>(int, int, int) <dd> Return the (x,y) position where the contour cross the cell wall. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#search(int, int)"><b>search</b></a>(int, int) <dd> Search for a cell in the contour cell list <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setGrid(double[], int, int)"><b>setGrid</b></a>(double[], int, int) <dd> Set the grid to be contoured <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setValue(double)"><b>setValue</b></a>(double) <dd> Set the value to contour</dl><a name="variables"></a><h2> <img src="images/variables.gif" width=153 height=38 alt="Variables"></h2><a name="cells"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>cells</b><pre> protected <a href="java.util.Vector.html#_top_">Vector</a> cells</pre><dl> <dd> Vector of cells that the contour passes through.</dl><a name="grid"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>grid</b><pre> protected double grid[]</pre><dl> <dd> Array holding the data grid.</dl><a name="nx"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>nx</b><pre> protected int nx</pre><dl> <dd> X Dimension of data grid</dl><a name="ny"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>ny</b><pre> protected int ny</pre><dl> <dd> Y Dimension of data grid</dl><a name="curve"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>curve</b><pre> protected double curve[]</pre><dl> <dd> Array that holds the points of the contour</dl><a name="size"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>size</b><pre> protected int size</pre><dl> <dd> Number of points in the contour</dl><a name="value"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a><b>value</b><pre> protected double value</pre><dl> <dd> Contour value to be found</dl><a name="constructors"></a><h2> <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="IsoCurve"></a><a name="IsoCurve()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>IsoCurve</b><pre> public IsoCurve()</pre><dl> <dd> Instantiate the class and initialize all the variables</dl><a name="IsoCurve(double[], int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>IsoCurve</b><pre> public IsoCurve(double grid[], int nx, int ny)</pre><dl> <dd> Instantiate the class and initialize all the variables. <dl> <dt> <b>Parameters:</b> <dd> grid - An nx by ny Array containing the grid to contour <dd> nx - X dimension of the grid. <dd> ny - Y dimension of the grid. </dl></dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="setGrid(double[], int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setGrid"><b>setGrid</b></a><pre> public void setGrid(double grid[], int nx, int ny)</pre><dl> <dd> Set the grid to be contoured <dl> <dt> <b>Parameters:</b> <dd> nx - X dimension of the grid. <dd> ny - Y dimension of the grid. </dl></dl><a name="setValue(double)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setValue"><b>setValue</b></a><pre> public void setValue(double value)</pre><dl> <dd> Set the value to contour <dl> <dt> <b>Parameters:</b> <dd> value - the contour level </dl></dl><a name="getCurve()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getCurve"><b>getCurve</b></a><pre> public double[] getCurve()</pre><dl> <dd> Return a contour curve. If nullis returned it means that all the contour curves have been found. <dl> <dt> <b>Returns:</b> <dd> The array containing the (x,y) pairs of the contour curve. </dl></dl><a name="createCells()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="createCells"><b>createCells</b></a><pre> protected void createCells()</pre><dl> <dd> Create the vector of all cells that contain the contour.</dl><a name="getcurve()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getcurve"><b>getcurve</b></a><pre> protected void getcurve()</pre><dl> <dd> Traverse the cells and find One connect countour.</dl><a name="getPoint(int, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getPoint"><b>getPoint</b></a><pre> protected double[] getPoint(int wall, int icell, int jcell)</pre><dl> <dd> Return the (x,y) position where the contour cross the cell wall. <dl> <dt> <b>Parameters:</b> <dd> wall - The cell wall the contour crosses. <dd> icell - The x index of the cell position. <dd> jcell - The y index of the cell position. </dl></dl><a name="addDataPoint(int, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="addDataPoint"><b>addDataPoint</b></a><pre> protected void addDataPoint(int wall, int icell, int jcell)</pre><dl> <dd> Add a data point to the contour curve. <dl> <dt> <b>Parameters:</b> <dd> wall - The cell wall the contour crosses. <dd> icell - The x index of the cell position. <dd> jcell - The y index of the cell position. </dl></dl><a name="addDataPoint(double, double)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="addDataPoint"><b>addDataPoint</b></a><pre> protected void addDataPoint(double x, double y)</pre><dl> <dd> Add a data point to the contour curve. <dl> <dt> <b>Parameters:</b> <dd> x - The x position of the point. <dd> y - The y position of the point. </dl></dl><a name="search(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="search"><b>search</b></a><pre> protected <a href="graph.Cell.html#_top_">Cell</a> search(int icell, int jcell)</pre><dl> <dd> Search for a cell in the contour cell list <dl> <dt> <b>Parameters:</b> <dd> icell - the x index of the cell <dd> jcell - the y index of the cell </dl></dl><hr><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-graph.html">This Package</a> <a href="graph.Graph2D.html#_top_">Previous</a> <a href="graph.LoadData.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -