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

📄 taggedlinesegment.h

📁 在Linux下做的QuadTree的程序
💻 H
字号:
/********************************************************************** * $Id: TaggedLineSegment.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 Licence as published * by the Free Software Foundation.  * See the COPYING file for more information. * ********************************************************************** * * Last port: simplify/TaggedLineSegment.java rev. 1.1 (JTS-1.7) * ********************************************************************** * * NOTES: Use of this class by DP simplification algorithms * makes it useless for a TaggedLineSegment to store copies * of coordinates. Using pointers would be good enough here. * We don't do it to avoid having to break inheritance from  * LineSegment, which has copies intead. Wheter LineSegment * itself should be refactored can be discussed.  *  --strk 2006-04-12 * **********************************************************************/#ifndef _GEOS_SIMPLIFY_TAGGEDLINESEGMENT_H_#define _GEOS_SIMPLIFY_TAGGEDLINESEGMENT_H_ #include <geos/geom/LineSegment.h> // for inheritance// Forward declarationsnamespace geos {	namespace geom {		class Coordinate;		class Geometry;	}}namespace geos {namespace simplify { // geos::simplify/** \brief * A geom::LineSegment which is tagged with its location in a geom::Geometry. * * Used to index the segments in a geometry and recover the segment locations * from the index. */class TaggedLineSegment: public geom::LineSegment{public:	TaggedLineSegment(const geom::Coordinate& p0,			const geom::Coordinate& p1,			const geom::Geometry* parent,			unsigned int index);	TaggedLineSegment(const geom::Coordinate& p0,			const geom::Coordinate& p1);	TaggedLineSegment(const TaggedLineSegment& ls);	const geom::Geometry* getParent() const;	unsigned int getIndex() const;private:	const geom::Geometry* parent;	unsigned int index;};} // namespace geos::simplify} // namespace geos#endif // _GEOS_SIMPLIFY_TAGGEDLINESEGMENT_H_ /********************************************************************** * $Log$ * Revision 1.2  2006/04/12 17:19:57  strk * Ported TaggedLineStringSimplifier class, made LineSegment class * polymorphic to fix derivation of TaggedLineSegment * * Revision 1.1  2006/04/12 14:22:12  strk * Initial implementation of TaggedLineSegment and TaggedLineString classes * **********************************************************************/

⌨️ 快捷键说明

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