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

📄 subgraphdepthlocater.h

📁 在Linux下做的QuadTree的程序
💻 H
字号:
/********************************************************************** * $Id: SubgraphDepthLocater.h 1820 2006-09-06 16:54:23Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2006 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. * **********************************************************************/#ifndef GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H#define GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H#include <vector>#include <geos/geom/LineSegment.h> // for composition// Forward declarationsnamespace geos {	namespace geom {		class Coordinate;	}	namespace geomgraph {		class DirectedEdge;	}	namespace operation {		namespace buffer {			class BufferSubgraph;			class DepthSegment;		}	}}namespace geos {namespace operation { // geos.operationnamespace buffer { // geos.operation.buffer/** * \class SubgraphDepthLocater opBuffer.h geos/opBuffer.h * * \brief * Locates a subgraph inside a set of subgraphs, * in order to determine the outside depth of the subgraph. * * The input subgraphs are assumed to have had depths * already calculated for their edges. * * Last port: operation/buffer/SubgraphDepthLocater.java rev. 1.5 (JTS-1.7) */class SubgraphDepthLocater {public:	SubgraphDepthLocater(std::vector<BufferSubgraph*> *newSubgraphs)		:		subgraphs(newSubgraphs)	{}	~SubgraphDepthLocater() {}	int getDepth(const geom::Coordinate &p);private:	std::vector<BufferSubgraph*> *subgraphs;	geom::LineSegment seg;	/**	 * Finds all non-horizontal segments intersecting the stabbing line.	 * The stabbing line is the ray to the right of stabbingRayLeftPt.	 *	 * @param stabbingRayLeftPt the left-hand origin of the stabbing line	 * @param stabbedSegments a vector to which DepthSegments intersecting	 *        the stabbing line will be added.	 */	void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,			std::vector<DepthSegment*>& stabbedSegments);	/**	 * Finds all non-horizontal segments intersecting the stabbing line	 * in the list of dirEdges.	 * The stabbing line is the ray to the right of stabbingRayLeftPt.	 *	 * @param stabbingRayLeftPt the left-hand origin of the stabbing line	 * @param stabbedSegments the current vector of DepthSegments	 *        intersecting the stabbing line will be added.	 */	void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,			std::vector<geomgraph::DirectedEdge*> *dirEdges,			std::vector<DepthSegment*>& stabbedSegments);	/**	 * Finds all non-horizontal segments intersecting the stabbing line	 * in the input dirEdge.	 * The stabbing line is the ray to the right of stabbingRayLeftPt.	 *	 * @param stabbingRayLeftPt the left-hand origin of the stabbing line	 * @param stabbedSegments the current list of DepthSegments intersecting	 *        the stabbing line	 */	void findStabbedSegments(const geom::Coordinate &stabbingRayLeftPt,			geomgraph::DirectedEdge *dirEdge,			std::vector<DepthSegment*>& stabbedSegments);};} // namespace geos::operation::buffer} // namespace geos::operation} // namespace geos#endif // ndef GEOS_OP_BUFFER_SUBGRAPHDEPTHLOCATER_H/********************************************************************** * $Log$ * Revision 1.2  2006/03/15 15:50:11  strk * const correctness, cleanups * * Revision 1.1  2006/03/14 00:19:40  strk * opBuffer.h split, streamlined headers in some (not all) files in operation/buffer/ * **********************************************************************/

⌨️ 快捷键说明

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