⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edgenodingvalidator.cpp

📁 一个很好的vc底层代码
💻 CPP
字号:
/********************************************************************** * $Id: EdgeNodingValidator.cpp,v 1.3 2004/07/02 13:28:26 strk Exp $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * by the Free Software Foundation.  * See the COPYING file for more information. * ********************************************************************** * $Log: EdgeNodingValidator.cpp,v $ * Revision 1.3  2004/07/02 13:28:26  strk * Fixed all #include lines to reflect headers layout change. * Added client application build tips in README. * * Revision 1.2  2004/03/31 07:50:37  ybychkov * "geom" partially upgraded to JTS 1.4 * * Revision 1.1  2004/03/19 09:48:45  ybychkov * "geomgraph" and "geomgraph/indexl" upgraded to JTS 1.4 * * **********************************************************************/#include <geos/geomgraph.h>#include <geos/geom.h>#include <geos/geosAlgorithm.h>#include <geos/noding.h>namespace geos {/** * Validates that a collection of SegmentStrings is correctly noded. * Throws an appropriate exception if an noding error is found. * * @version 1.4 */vector<SegmentString*>* EdgeNodingValidator::toSegmentStrings(vector<Edge*> *edges) {	// convert Edges to SegmentStrings    vector<SegmentString*> *segStrings=new vector<SegmentString*>();	for(int i=0;i<(int)edges->size();i++) {		Edge *e=(*edges)[i];		segStrings->push_back(new SegmentString(e->getCoordinates(),e));    }    return segStrings;}EdgeNodingValidator::EdgeNodingValidator(vector<Edge*> *edges) {	nv=new NodingValidator(toSegmentStrings(edges));}EdgeNodingValidator::~EdgeNodingValidator() {	delete nv;}void EdgeNodingValidator::checkValid() {	nv->checkValid();}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -