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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? structurediagramgeneratortest.java

?? 化學圖形處理軟件
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* $Revision: 8312 $ $Author: egonw $ $Date: 2007-05-08 11:48:15 +0000 (Di, 08 Mai 2007) $ * *  Copyright (C) 2003-2007  Christoph Steinbeck <steinbeck@users.sf.net> * *  Contact: cdk-devel@lists.sourceforge.net * *  This program is free software; you can redistribute it and/or *  modify it under the terms of the GNU Lesser General Public License *  as published by the Free Software Foundation; either version 2.1 *  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 Lesser General Public License for more details. * *  You should have received a copy of the GNU Lesser General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */package org.openscience.cdk.test.layout;import java.io.InputStream;import java.io.StringReader;import java.util.List;import javax.vecmath.Vector2d;import junit.framework.Test;import junit.framework.TestSuite;import org.openscience.cdk.Atom;import org.openscience.cdk.ChemFile;import org.openscience.cdk.ChemObject;import org.openscience.cdk.DefaultChemObjectBuilder;import org.openscience.cdk.Molecule;import org.openscience.cdk.applications.swing.MoleculeListViewer;import org.openscience.cdk.applications.swing.MoleculeViewer2D;import org.openscience.cdk.aromaticity.HueckelAromaticityDetector;import org.openscience.cdk.geometry.GeometryTools;import org.openscience.cdk.interfaces.IAtomContainer;import org.openscience.cdk.interfaces.IChemModel;import org.openscience.cdk.interfaces.IChemSequence;import org.openscience.cdk.interfaces.IMolecule;import org.openscience.cdk.io.CMLReader;import org.openscience.cdk.io.IChemObjectReader;import org.openscience.cdk.io.MDLReader;import org.openscience.cdk.io.MDLV2000Reader;import org.openscience.cdk.io.Mol2Reader;import org.openscience.cdk.layout.StructureDiagramGenerator;import org.openscience.cdk.nonotify.NoNotificationChemObjectBuilder;import org.openscience.cdk.smiles.SmilesParser;import org.openscience.cdk.templates.MoleculeFactory;import org.openscience.cdk.test.CDKTestCase;import org.openscience.cdk.tools.manipulator.ChemModelManipulator;/** *  A set of test cases for the StructureDiagramGenerator * * @cdk.module test-extra * *@author     steinbeck *@cdk.created    August 29, 2003 */public class StructureDiagramGeneratorTest extends CDKTestCase{	MoleculeListViewer moleculeListViewer = null;	boolean standAlone = false;	/**	 *  Constructor for the StructureDiagramGeneratorTest object	 */	public StructureDiagramGeneratorTest(String name)	{		super(name);	}	/**	 *  The JUnit setup method	 */	public void setUp() 	{ 				}	/**	 *  A unit test suite for JUnit	 *	 *@return    The test suite	 */	public static Test suite()	{		return new TestSuite(StructureDiagramGeneratorTest.class);	}	public void runVisualTests() throws Exception	{		moleculeListViewer = new MoleculeListViewer();		//MoleculeViewer2D.display(MoleculeFactory.loadMolecule("data/mdl/reserpine.mol"), true);		/*showIt(MoleculeFactory.loadMolecule("data/mdl/reserpine.mol"), "Reserpine");		showIt(MoleculeFactory.loadMolecule("data/mdl/four-ring-5x10.mol"), "5x10 condensed four membered rings");		showIt(MoleculeFactory.loadMolecule("data/mdl/six-ring-4x4.mol"), "4x4 condensed six membered rings");		showIt(MoleculeFactory.loadMolecule("data/mdl/polycarpol.mol")		, "Polycarpol");*/		showIt(MoleculeFactory.makeAlphaPinene(), "alpha-Pinene");		showIt(MoleculeFactory.makeBiphenyl(), "Biphenyl");		showIt(MoleculeFactory.make4x3CondensedRings(), "4x3CondensedRings");		showIt(MoleculeFactory.makePhenylEthylBenzene(), "PhenylEthylBenzene");		showIt(MoleculeFactory.makeSpiroRings(), "Spiro");		showIt(MoleculeFactory.makeMethylDecaline(), "Methyldecaline");		showIt(MoleculeFactory.makeBranchedAliphatic(), "Branched aliphatic");		showIt(MoleculeFactory.makeDiamantane(), "Diamantane - Was A Problem! - Solved :-)");		showIt(MoleculeFactory.makeEthylCyclohexane(), "Ethylcyclohexane");		showIt(MoleculeFactory.makeBicycloRings(), "Bicyclo-[2.2.2]-octane");				//showIt(makeBug736137(), "Bug 736137");		//showIt(makeBug891021(), "Bug 891021");		showIt(makeJhao1(), "Bug jhao1");		showIt(makeJhao2(), "Bug jhao2");		showIt(makeJhao3(), "Bug jhao3");		showIt(makeJhao4(), "Bug jhao4");	}	private boolean showIt(IMolecule molecule, String name) throws Exception	{		MoleculeViewer2D mv = new MoleculeViewer2D();		mv.setAtomContainer(generateCoordinates(molecule));		moleculeListViewer.addStructure(mv, name);		return true;	}	public IAtomContainer generateCoordinates(IMolecule m) throws Exception	{		StructureDiagramGenerator sdg = new StructureDiagramGenerator();		sdg.setMolecule(m);		sdg.generateCoordinates(new Vector2d(0, 1));		return sdg.getMolecule();	}	/**	 * @cdk.bug 736137	 */	public void testBug736137() throws Exception	{		String filename = "data/mdl/bug736137.mol";		InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);		MDLV2000Reader reader = new MDLV2000Reader(ins);		ChemFile chemFile = (ChemFile)reader.read((ChemObject)new ChemFile());		IChemSequence chemSequence = chemFile.getChemSequence(0);		IChemModel chemModel = chemSequence.getChemModel(0);		List atomContainers = ChemModelManipulator.getAllAtomContainers(chemModel);		assertEquals(1, atomContainers.size());	}	public void visualBugPMR() throws Exception	{                String filename = "data/SL0016a.cml";		InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);		CMLReader reader = new CMLReader(ins);		ChemFile chemFile = (ChemFile)reader.read((ChemObject)new ChemFile());		IChemSequence seq = chemFile.getChemSequence(0);		IChemModel model = seq.getChemModel(0);		IMolecule mol = model.getMoleculeSet().getMolecule(0);		MoleculeViewer2D.display(mol, true);		//logger.debug(new SmilesGenerator().createSMILES(mol));	}				/**	 *  A unit test for JUnit	 */	public void testAlphaPinene() throws Exception	{		Molecule m = MoleculeFactory.makeAlphaPinene();		IAtomContainer ac = generateCoordinates(m);        assertTrue(GeometryTools.has2DCoordinates(ac));	}	/**	 *  A unit test for JUnit	 */	public void testBiphenyl() throws Exception	{		Molecule m = MoleculeFactory.makeBiphenyl();		IAtomContainer ac = generateCoordinates(m);        assertTrue(GeometryTools.has2DCoordinates(ac));	}	/**	 *  A unit test for JUnit	 */	public void test4x3CondensedRings() throws Exception	{		Molecule m = MoleculeFactory.make4x3CondensedRings();		IAtomContainer ac = generateCoordinates(m);        assertTrue(GeometryTools.has2DCoordinates(ac));	}	/**	 *  A unit test for JUnit	 */	public void testPhenylEthylBenzene() throws Exception	{		Molecule m = MoleculeFactory.makePhenylEthylBenzene();		IAtomContainer ac = generateCoordinates(m);        assertTrue(GeometryTools.has2DCoordinates(ac));	}	/**	 *  A unit test for JUnit	 */	public void testSpiroRings() throws Exception	{		Molecule m = MoleculeFactory.makeSpiroRings();		IAtomContainer ac = generateCoordinates(m);        assertTrue(GeometryTools.has2DCoordinates(ac));		if (standAlone)MoleculeViewer2D.display(new Molecule(ac), false);	}	/**	 *  A unit test for JUnit	 */	public void testMethylDecaline() throws Exception	{		Molecule m = MoleculeFactory.makeMethylDecaline();		IAtomContainer ac = generateCoordinates(m);        assertTrue(GeometryTools.has2DCoordinates(ac));	}	/**	 *  A unit test for JUnit	 */	public void testBranchedAliphatic() throws Exception	{		Molecule m = MoleculeFactory.makeBranchedAliphatic();		IAtomContainer ac = generateCoordinates(m);        assertTrue(GeometryTools.has2DCoordinates(ac));	}	/**	 *  A unit test for JUnit	 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜臀精品久久久久久蜜臀| 一区二区久久久久久| 欧美一级日韩不卡播放免费| 欧洲精品中文字幕| 91福利资源站| 欧美日韩国产免费| 欧美精品123区| 欧美一区国产二区| 精品国产乱子伦一区| 久久久无码精品亚洲日韩按摩| 国产偷国产偷精品高清尤物| 日本一区二区在线不卡| 中文字幕中文字幕一区二区| 亚洲色图视频网站| 一区二区视频在线看| 亚洲成人精品影院| 欧美一区二区精品在线| 日本久久电影网| 99视频在线观看一区三区| 国产精品77777竹菊影视小说| 精品一区二区三区在线视频| 麻豆精品精品国产自在97香蕉| 日韩高清国产一区在线| 婷婷综合久久一区二区三区| 一区二区免费在线| 奇米在线7777在线精品| 久久99精品国产麻豆不卡| 国产精品69久久久久水密桃| 国产麻豆视频精品| 国产69精品久久777的优势| 成人av资源下载| 成人视屏免费看| 欧美一卡2卡三卡4卡5免费| 国产精品自在在线| 国产精品毛片久久久久久久| 日韩一区二区影院| 欧美一个色资源| 综合久久久久综合| 欧美在线看片a免费观看| 99re视频精品| 国产99精品国产| 欧美午夜一区二区三区免费大片| 日韩一二三区视频| 国产精品久久久久久久久晋中 | 粉嫩蜜臀av国产精品网站| 99久久精品免费精品国产| 51午夜精品国产| 欧美激情中文字幕| 午夜电影网一区| 粉嫩av一区二区三区粉嫩| 在线一区二区三区做爰视频网站| 欧美一区二区视频免费观看| 中文字幕的久久| 免费成人深夜小野草| 91亚洲男人天堂| 精品久久久久久久人人人人传媒 | 天堂一区二区在线| 国产福利一区二区三区在线视频| 欧洲一区二区三区在线| 国产精品网站在线观看| 中文字幕一区在线观看视频| 亚洲裸体xxx| 国内精品伊人久久久久av影院| 91社区在线播放| 久久久亚洲午夜电影| 日韩中文字幕一区二区三区| av午夜一区麻豆| 久久色在线视频| 日本大胆欧美人术艺术动态| 色视频一区二区| 欧美精彩视频一区二区三区| 另类小说欧美激情| 在线播放欧美女士性生活| 一区二区三区日韩精品| 国产91丝袜在线观看| 91精品国产91热久久久做人人| 亚洲手机成人高清视频| 成人免费av网站| 久久精品亚洲乱码伦伦中文| 日韩福利视频导航| 欧美精品免费视频| 亚洲国产欧美日韩另类综合| 99国产欧美另类久久久精品| 久久久久久久久久久黄色| 久久精品免费观看| 欧美一级二级三级蜜桃| 丝袜亚洲另类欧美| 欧美日韩国产高清一区二区| 亚洲免费观看高清完整版在线观看 | 91丨九色丨蝌蚪丨老版| 国产精品色噜噜| 国产成人一区在线| 久久久久9999亚洲精品| 精品亚洲国产成人av制服丝袜| 欧美理论在线播放| 亚洲电影欧美电影有声小说| 色88888久久久久久影院野外| 国产精品国产精品国产专区不片| 粉嫩绯色av一区二区在线观看| 国产日韩精品一区| 成人一区在线观看| 中文文精品字幕一区二区| 国产a久久麻豆| 国产精品乱码一区二三区小蝌蚪| 国产成人综合网| 中文字幕一区二区三区在线观看| 成人午夜短视频| 亚洲欧美日韩精品久久久久| 一本到三区不卡视频| 亚洲资源在线观看| 欧美人成免费网站| 日本成人在线电影网| 日韩美女视频一区二区在线观看| 久久精品国产第一区二区三区| 精品欧美一区二区在线观看| 国产很黄免费观看久久| 国产精品欧美久久久久无广告| 99久久综合精品| 亚洲永久精品大片| 欧美一区二区三区电影| 国内精品在线播放| 日韩一区日韩二区| 欧美伊人久久久久久午夜久久久久| 亚洲国产美国国产综合一区二区| 欧美一级国产精品| 国产成人免费视| 亚洲伦理在线精品| 91精品国产91久久久久久最新毛片| 免费人成在线不卡| 国产精品入口麻豆九色| 欧美日韩专区在线| 美女爽到高潮91| 中文字幕在线免费不卡| 欧美视频在线播放| 精品夜夜嗨av一区二区三区| 中文字幕av一区二区三区免费看| 91高清视频免费看| 精品夜夜嗨av一区二区三区| 亚洲色图视频网| 日韩精品一区二区三区在线观看| 成人激情动漫在线观看| 亚洲成人资源在线| 久久嫩草精品久久久精品一| 色综合久久天天| 狠狠色丁香婷婷综合| 1区2区3区欧美| 日韩免费在线观看| 91在线国内视频| 奇米一区二区三区| 亚洲色图第一区| 精品卡一卡二卡三卡四在线| 一本一道久久a久久精品| 另类小说欧美激情| 亚洲综合一区在线| 久久久91精品国产一区二区三区| 在线一区二区观看| 国产一区二区在线电影| 亚洲综合激情网| 欧美国产日韩精品免费观看| 在线播放国产精品二区一二区四区| 高清国产一区二区| 男女男精品视频| 又紧又大又爽精品一区二区| 久久新电视剧免费观看| 欧美日韩视频在线第一区| 成人三级在线视频| 久草热8精品视频在线观看| 一区二区三区四区不卡视频| 欧美国产成人在线| 日韩欧美第一区| 欧美日韩在线免费视频| 99视频一区二区| 国产在线精品不卡| 日本午夜一区二区| 一区二区三区日韩精品视频| 中文字幕在线观看一区| 久久精品日产第一区二区三区高清版| 欧美情侣在线播放| 色欧美片视频在线观看在线视频| 国产成人一区二区精品非洲| 激情欧美日韩一区二区| 日韩精品乱码免费| 亚洲伊人色欲综合网| 中文字幕日韩精品一区| 国产日产欧美一区| 精品黑人一区二区三区久久| 欧美精品视频www在线观看| 色婷婷av久久久久久久| 91玉足脚交白嫩脚丫在线播放| 福利电影一区二区| 国产精品69久久久久水密桃| 国产真实精品久久二三区| 美日韩一级片在线观看| 日本亚洲视频在线| 日韩不卡一区二区三区| 日产国产高清一区二区三区| 亚洲成人777| 午夜av一区二区| 日本视频免费一区| 日韩精品一卡二卡三卡四卡无卡|