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

📄 relatenode.cpp

📁 在Linux下做的QuadTree的程序
💻 CPP
字号:
/********************************************************************** * $Id: RelateNode.cpp 1820 2006-09-06 16:54:23Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * Copyright (C) 2005 Refractions Research 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. * **********************************************************************/#include <geos/operation/relate/RelateNode.h>#include <geos/operation/relate/EdgeEndBundleStar.h>#include <geos/geom/IntersectionMatrix.h>#include <geos/geomgraph/Label.h>#include <geos/geomgraph/Node.h>#include <cassert>using namespace geos::geomgraph;using namespace geos::geom;namespace geos {namespace operation { // geos.operationnamespace relate { // geos.operation.relateRelateNode::RelateNode(const Coordinate& coord, EdgeEndStar *edges):	Node(coord,edges){}RelateNode::~RelateNode(){}/** * Update the IM with the contribution for this component. * A component only contributes if it has a labelling for both parent geometries */voidRelateNode::computeIM(IntersectionMatrix *im){	im->setAtLeastIfValid(label->getLocation(0),label->getLocation(1),0);}/** * Update the IM with the contribution for the EdgeEnds incident on this node. */voidRelateNode::updateIMFromEdges(IntersectionMatrix *im){	assert(dynamic_cast<EdgeEndBundleStar*>(edges));	EdgeEndBundleStar* eebs=static_cast<EdgeEndBundleStar*>(edges);	eebs->updateIM(im);}} // namespace geos.operation.relate} // namespace geos.operation} // namespace geos/********************************************************************** * $Log$ * Revision 1.12  2006/03/21 13:11:29  strk * opRelate.h header split * * Revision 1.11  2006/03/20 16:57:44  strk * spatialindex.h and opValid.h headers split * * Revision 1.10  2006/02/19 19:46:50  strk * Packages <-> namespaces mapping for most GEOS internal code (uncomplete, but working). Dir-level libs for index/ subdirs. * **********************************************************************/

⌨️ 快捷键说明

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