亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? isocurve.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package graph;import java.awt.*;import java.util.*;import java.lang.*;/*******************************************************************************    Class  IsoCurve            ******************************************************************************    Copyright (C) 1996 Leigh Brookshaw****    This program is free software; you can redistribute it and/or modify**    it under the terms of the GNU General Public License as published by**    the Free Software Foundation; either version 2 of the License, or**    (at your option) any later version.****    This program is distributed in the hope that it will be useful,**    but WITHOUT ANY WARRANTY; without even the implied warranty of**    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the**    GNU General Public License for more details.****    You should have received a copy of the GNU General Public License**    along with this program; if not, write to the Free Software**    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.******************************************************************************    This class will calculate the curve of a given value passing**    through a grid of values***************************************************************************//** * This class will calculate the constant curve of a given value passing * through a grid of values. * * @version $Revision: 1.6 $, $Date: 1996/07/30 04:52:40 $. * @author Leigh Brookshaw */public class IsoCurve extends Object {/********************** Constants******************/  /**   *  Flag a cell face as a terminal face ie the curve terminates here.   */     static final int TERMINAL  = 0;  /**   *  Flag a cell as having the curve coming through its Left face   */     static final int LEFT      = 1;  /**   *  Flag a cell as having the curve coming through its Right face   */     static final int RIGHT     = 2;  /**   *  Flag a cell as having the curve coming through its Top face   */     static final int TOP       = 3;  /**   *  Flag a cell as having the curve coming through its Bottom face   */     static final int BOTTOM    = 4;  /**   *   Initial size of the array that will hold a contour.   */     static final int ARRAYSIZE    = 100;  /**   *   Maximum size of the array that will hold a contour.   */     static final int MAXARRAYSIZE = 2000;     /******************** Variables****************/  /**   *   Vector of cells that the contour passes through.   */     protected Vector cells;  /**   *   Array holding the data grid.   */     protected double grid[];  /**   *   X Dimension of data grid   */     protected int nx;  /**   *   Y Dimension of data grid   */     protected int ny;  /**   *   Array that holds the points of the contour   */     protected double curve[];  /**   *   Number of points in the contour   */     protected int  size;  /**   *   Contour value to be found   */     protected double value;     /********************** Constructors******************/  /**   * Instantiate the class and initialize all the variables   */     public IsoCurve() {            cells = null;            grid = null;            nx = 0;            ny = 0;            curve = null;            size = 0;            value = 0.0;     }       /**   * Instantiate the class and initialize all the variables.   * @param grid An nx by ny Array containing the grid to contour   * @param nx   X dimension of the grid.   * @param ny   Y dimension of the grid.   */     public IsoCurve(double grid[], int nx, int ny) {        this();     	setGrid(grid,nx,ny);     }     /*********************** Public Methods*******************/  /**   * Set the grid to be contoured   * @param nx   X dimension of the grid.   * @param ny   Y dimension of the grid.   */     public void setGrid(double grid[], int nx, int ny) {           this.grid = grid;           this.nx   = nx;           this.ny   = ny;     }  /**   * Set the value to contour   * @param value the contour level   */      public void setValue(double value) {            this.value = value;                        if( grid == null) return;            //System.out.println("setValue called:" + value);                        createCells();     }  /**   * Return a contour curve. If null   * is returned it means that all the contour curves have been found.   * @return The array containing the (x,y) pairs of the contour curve.   */     public double[] getCurve() {           size = 0;           getcurve();                      if( size == 0 || curve == null ) {                    //System.out.println("getCurve: Nothing found");                    return null;		  }                      double tmp[] = new double[size];                      System.arraycopy(curve,0,tmp,0,size);           return tmp;     }     /*************************** Protected Methods***********************/  /**   * Create the vector of all cells that contain the contour.   */         protected void createCells() {            double bl, br, tl, tr;            boolean bottom, top, right, left;            Cell cell;            int jcell, icell;                        int i, j, count;                 if(cells == null)    cells = new Vector();            else                 cells.removeAllElements();                                    for(j=0; j<ny-1; j++) {                                jcell = j*nx;                                  for(i=0; i<nx-1; i++) {                                icell = i + jcell;                                      bl = grid[icell];                   br = grid[icell+1];                   tl = grid[icell+nx];                   tr = grid[icell+nx+1];                                      bottom = false;                   top    = false;                   left   = false;                   right  = false;                                      if( (bl-value)*(br-value) <= 0.0 )  bottom = true;                   if( (br-value)*(tr-value) <= 0.0 )  right  = true;                   if( (tr-value)*(tl-value) <= 0.0 )  top    = true;                   if( (tl-value)*(bl-value) <= 0.0 )  left   = true;                                      if( top && bottom && left && right ) {                                         if( tr >= tl && bl >= br ) {                                                  cell = new Cell();                            cell.i = i;                            cell.j = j;                            cell.face[0] = TOP;                            cell.face[1] = LEFT;                            cells.addElement(cell);                                                   cell = new Cell();                            cell.i = i;                            cell.j = j;                            cell.face[0] = BOTTOM;                            cell.face[1] = RIGHT;                            cells.addElement(cell);                                                } else                      if ( tl >= tr && br >= bl ) {                                               cell = new Cell();                            cell.i = i;                            cell.j = j;                            cell.face[0] = TOP;                            cell.face[1] = LEFT;                            cells.addElement(cell);                                                   cell = new Cell();                            cell.i = i;                            cell.j = j;                            cell.face[0] = BOTTOM;                            cell.face[1] = RIGHT;                                                  }                   } else                    if( top || bottom || left || right ) {                            cell = new Cell();                            cells.addElement(cell);                            cell.i = i;                            cell.j = j;                            if( bl == value && br == value) bottom = false;                            if( bl == value && tl == value) left   = false;                            if( tr == value && tl == value) top    = false;                            if( tr == value && br == value) right  = false;/***                          Check for pathological cell and to avoid out of bounds

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品欧美一区二区在线观看| 亚洲图片另类小说| 97精品超碰一区二区三区| 日韩高清一区在线| 国产精品国产三级国产三级人妇| 日韩欧美一级在线播放| 在线观看亚洲精品| 成人一区二区三区视频在线观看| 日韩高清在线一区| 一区二区三国产精华液| 日本一区二区动态图| 欧美videossexotv100| 欧美日韩综合在线| 91麻豆产精品久久久久久 | 午夜不卡在线视频| 国产精品国产精品国产专区不蜜| 精品乱人伦一区二区三区| 欧美日韩在线观看一区二区| 99久久精品国产一区| 风间由美一区二区av101| 国产在线一区二区综合免费视频| 日日欢夜夜爽一区| 亚洲国产欧美另类丝袜| 一区二区三区自拍| 最好看的中文字幕久久| 国产精品久久久久久妇女6080| 欧美精品一区二区精品网| 欧美丰满高潮xxxx喷水动漫| 欧美日本一道本| 欧美亚洲一区三区| 欧美色综合天天久久综合精品| 91亚洲精品久久久蜜桃网站| 91香蕉国产在线观看软件| 成人毛片视频在线观看| 成a人片国产精品| 成人免费观看视频| 99久久精品国产网站| 91色|porny| 日本精品视频一区二区三区| 色吊一区二区三区| 在线观看不卡视频| 欧美精品tushy高清| 91麻豆精品国产91久久久使用方法| 欧美日韩大陆在线| 51精品国自产在线| 精品剧情v国产在线观看在线| 2023国产精品自拍| 国产精品沙发午睡系列990531| 国产精品美女久久久久久久久久久| 中文字幕亚洲欧美在线不卡| 亚洲色图在线播放| 亚洲成人自拍一区| 青青草91视频| 高清国产午夜精品久久久久久| av中文字幕不卡| 在线观看av一区| 日韩视频免费观看高清完整版在线观看| 8x8x8国产精品| 久久久久久久久久久黄色| 国产精品久久久久影院亚瑟| 亚洲综合精品自拍| 免费成人在线播放| 国产91丝袜在线观看| 日本久久精品电影| 日韩亚洲欧美成人一区| 国产亚洲精品免费| 一区二区在线免费观看| 日本亚洲一区二区| 国产v日产∨综合v精品视频| 在线亚洲免费视频| xnxx国产精品| 伊人性伊人情综合网| 久久福利视频一区二区| 99视频精品免费视频| 91精品国产一区二区三区| 久久久www成人免费无遮挡大片| 国产精品高潮呻吟| 蜜臀99久久精品久久久久久软件| 国产成人在线电影| 欧美精品三级日韩久久| 中文一区二区在线观看| 亚欧色一区w666天堂| 国产69精品久久99不卡| 欧美日韩免费电影| 国产精品水嫩水嫩| 日韩高清不卡在线| 95精品视频在线| 精品91自产拍在线观看一区| 一区二区三区精品| 国产精品一二三在| 欧美日韩国产bt| 中文字幕一区二区不卡| 奇米影视在线99精品| 97精品超碰一区二区三区| 欧美va日韩va| 亚洲国产精品一区二区尤物区| 国产精品资源在线观看| 日韩一区二区三区精品视频| 亚洲人成7777| 国产成人免费xxxxxxxx| 日韩一区二区在线看片| 亚洲综合激情网| 99久精品国产| 国产精品午夜在线观看| 国产乱码精品一品二品| 欧美一区二区在线播放| 亚洲一区二区三区四区在线观看 | 9久草视频在线视频精品| 日韩欧美一区电影| 亚洲国产精品久久不卡毛片| 99久久婷婷国产综合精品| 国产喷白浆一区二区三区| 久久国产精品一区二区| 在线不卡中文字幕| 亚洲一卡二卡三卡四卡 | 26uuu色噜噜精品一区二区| 亚洲第一成人在线| 日本乱码高清不卡字幕| 亚洲欧洲美洲综合色网| 粉嫩绯色av一区二区在线观看| 2019国产精品| 精品一区二区在线视频| 欧美高清dvd| 日韩在线一二三区| 欧美日韩国产美| 五月天一区二区| 欧美日韩大陆一区二区| 午夜精品在线视频一区| 欧美日韩国产首页在线观看| 亚洲成人综合视频| 欧美日韩1区2区| 日韩高清一区在线| 欧美一区二区三区免费| 日本一区中文字幕| 欧美大片拔萝卜| 美女脱光内衣内裤视频久久影院| 日韩一区二区免费在线观看| 免费观看在线色综合| 欧美zozozo| 国产伦精品一区二区三区视频青涩 | 国产v综合v亚洲欧| 国产精品午夜免费| 9i在线看片成人免费| 亚洲人吸女人奶水| 欧美中文字幕亚洲一区二区va在线| 亚洲男人天堂av| 欧美色综合影院| 免费成人在线播放| 国产亚洲一区字幕| 99精品视频在线播放观看| 亚洲美女视频一区| 欧美日韩国产另类不卡| 男人的天堂久久精品| 精品欧美久久久| 成人一区二区视频| 一区二区三区四区在线| 欧美日韩国产影片| 老司机精品视频在线| 久久久久久久久99精品| 92国产精品观看| 日本中文在线一区| 国产日韩欧美一区二区三区乱码| 91天堂素人约啪| 日产国产高清一区二区三区| 国产亚洲精品bt天堂精选| 色噜噜久久综合| 麻豆国产精品一区二区三区| 国产精品国产精品国产专区不蜜| 欧美日韩精品欧美日韩精品一| 黑人巨大精品欧美黑白配亚洲| 中文字幕亚洲一区二区av在线| 欧美日韩国产影片| 国产精品一区二区三区网站| 亚洲精品欧美激情| 日韩三级在线观看| va亚洲va日韩不卡在线观看| 亚洲成av人片在线| 国产欧美日韩麻豆91| 欧美日韩成人一区二区| 国产精品一区二区黑丝| 亚洲一区电影777| 日本一区二区在线不卡| 欧美精品久久一区二区三区| 成人免费毛片嘿嘿连载视频| 日本不卡免费在线视频| 中文字幕亚洲不卡| 日韩欧美一区二区不卡| 色婷婷精品久久二区二区蜜臀av| 久久99精品久久久久| 亚洲国产裸拍裸体视频在线观看乱了 | 欧美日韩和欧美的一区二区| 国产成人精品网址| 青青国产91久久久久久| 亚洲摸摸操操av| 国产日韩欧美精品一区| 日韩亚洲电影在线| 欧美日韩综合在线免费观看| 99久久免费精品| 国产精品99久久不卡二区| 日本v片在线高清不卡在线观看|