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

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

?? geomgraph.h

?? 一個很好的vc代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
/********************************************************************** * $Id: geomgraph.h,v 1.7.2.1 2005/06/26 09:40:19 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. * **********************************************************************/#ifndef GEOS_GEOMGRAPH_H#define GEOS_GEOMGRAPH_H#include <memory>#include <string>#include <vector>#include <map>#include <geos/geom.h>#include <geos/geomgraphindex.h>#include <geos/geosAlgorithm.h>#include <geos/platform.h>using namespace std;namespace geos {class EdgeSetIntersector;class SegmentIntersector;class MonotoneChainEdge;class Position {public:	enum {		/* An indicator that a Location is <i>on</i> a GraphComponent */		ON,		/* An indicator that a Location is to the <i>left</i> of a GraphComponent */  		LEFT,		/* An indicator that a Location is to the <i>right</i> of a GraphComponent */  		RIGHT	};	/**	* Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position	* otherwise.	*/	static int opposite(int position);};class TopologyLocation {public:	TopologyLocation();	virtual ~TopologyLocation();	TopologyLocation(const vector<int>* newLocation);	/**	* Constructs a TopologyLocation specifying how points on, to the left of, and to the	* right of some GraphComponent relate to some Geometry. Possible values for the	* parameters are Location.NULL, Location.EXTERIOR, Location.BOUNDARY, 	* and Location.INTERIOR.	* @see Location	*/	TopologyLocation(int on, int left, int right);	TopologyLocation(int on);	TopologyLocation(const TopologyLocation *gl);	int get(int posIndex) const;	bool isNull() const;	bool isAnyNull() const;	bool isEqualOnSide(const TopologyLocation &le, int locIndex) const;	bool isArea() const;	bool isLine() const;	void flip();	void setAllLocations(int locValue);	void setAllLocationsIfNull(int locValue);	void setLocation(int locIndex, int locValue);	void setLocation(int locValue);	const vector<int>* getLocations() const;	void setLocations(int on, int left, int right);	void setLocations(const TopologyLocation &gl);	bool allPositionsEqual(int loc) const;	void merge(const TopologyLocation* gl);	string toString() const;protected:	vector<int>* location;private:	void init(int size);};class Label {public:	static Label* toLineLabel(const Label* label);	Label(int onLoc);	Label(int geomIndex, int onLoc);	Label(int onLoc, int leftLoc, int rightLoc);	Label(const Label *l);	Label();	virtual ~Label();	Label(int geomIndex,int onLoc,int leftLoc,int rightLoc);	Label(int geomIndex,const TopologyLocation* gl);	void flip();	int getLocation(int geomIndex, int posIndex) const;	int getLocation(int geomIndex) const;	void setLocation(int geomIndex, int posIndex, int location);	void setLocation(int geomIndex, int location);	void setAllLocations(int geomIndex, int location);	void setAllLocationsIfNull(int geomIndex, int location);	void setAllLocationsIfNull(int location);	void merge(const Label* lbl);	int getGeometryCount() const;	bool isNull(int geomIndex) const;	bool isAnyNull(int geomIndex) const;	bool isArea() const;	bool isArea(int geomIndex) const;	bool isLine(int geomIndex) const;	bool isEqualOnSide(Label* lbl, int side) const;	bool allPositionsEqual(int geomIndex, int loc) const;	void toLine(int geomIndex);	string toString() const;protected:	TopologyLocation* elt[2];private:	void setGeometryLocation(int geomIndex, const TopologyLocation* tl);};class Depth {public:	static int depthAtLocation(int location);	Depth();	virtual ~Depth();	int getDepth(int geomIndex,int posIndex);	void setDepth(int geomIndex,int posIndex,int depthValue);	int getLocation(int geomIndex,int posIndex);	void add(int geomIndex,int posIndex,int location);	bool isNull();	bool isNull(int geomIndex);	bool isNull(int geomIndex,int posIndex);	int getDelta(int geomIndex);	void normalize();	void add(Label* lbl);	string toString();private:	enum {		DEPTHNULL=-1 //Replaces NULL	};//	static const int DEPTHNULL=-1; //Replaces NULL	int depth[2][3];};/* * Utility functions for working with quadrants, which are numbered as follows: * <pre> * 1 | 0 * --+-- * 2 | 3 * <pre> * */class Quadrant {public:	/**	* Returns the quadrant of a directed line segment (specified as x and y	* displacements, which cannot both be 0).	*/	static int quadrant(double dx, double dy);	/**	* Returns the quadrant of a directed line segment from p0 to p1.	*/	static int quadrant(const Coordinate& p0, const Coordinate& p1);	/**	* Returns true if the quadrants are 1 and 3, or 2 and 4	*/	static bool isOpposite(int quad1, int quad2);	/* 	* Returns the right-hand quadrant of the halfplane defined by the two quadrants,	* or -1 if the quadrants are opposite, or the quadrant if they are identical.	*/	static int commonHalfPlane(int quad1, int quad2);	/**	* Returns whether the given quadrant lies within the given halfplane (specified	* by its right-hand quadrant).	*/	static bool isInHalfPlane(int quad, int halfPlane);	/**	* Returns true if the given quadrant is 0 or 1.	*/	static bool isNorthern(int quad);};//class IntersectionMatrix;class GraphComponent {public:	GraphComponent();	GraphComponent(Label* newLabel); // newLabel is deleted by destructor	virtual ~GraphComponent();	Label* getLabel();	virtual void setLabel(Label* newLabel);	virtual void setInResult(bool isInResult);	virtual bool isInResult();	virtual void setCovered(bool isCovered);	virtual bool isCovered();	virtual bool isCoveredSet();	virtual bool isVisited();	virtual void setVisited(bool isVisited);	//virtual Coordinate& getCoordinate()=0; // strk removed	virtual bool isIsolated()=0;	virtual void updateIM(IntersectionMatrix *im);protected:	Label* label;	virtual void computeIM(IntersectionMatrix *im)=0;private:	bool isInResultVar;	bool isCoveredVar;	bool isCoveredSetVar;	bool isVisitedVar;};class Node;class EdgeIntersectionList;class Edge: public GraphComponent{public:	static void updateIM(Label *lbl,IntersectionMatrix *im);	CoordinateSequence* pts;	EdgeIntersectionList *eiList;	Edge();	Edge(CoordinateSequence* newPts, Label *newLabel);	Edge(CoordinateSequence* newPts);	virtual ~Edge();	virtual int getNumPoints();	virtual void setName(string newName);	virtual const CoordinateSequence* getCoordinates() const;	virtual const Coordinate& getCoordinate(int i);	virtual const Coordinate& getCoordinate(); 	virtual Depth *getDepth();	/**	* The depthDelta is the change in depth as an edge is crossed from R to L	* @return the change in depth as the edge is crossed from R to L	*/	virtual int getDepthDelta();	virtual void setDepthDelta(int newDepthDelta);	virtual int getMaximumSegmentIndex();	virtual EdgeIntersectionList* getEdgeIntersectionList();	virtual MonotoneChainEdge* getMonotoneChainEdge();	virtual bool isClosed();	virtual bool isCollapsed();	virtual Edge* getCollapsedEdge();	virtual void setIsolated(bool newIsIsolated);	virtual bool isIsolated();	virtual void addIntersections(LineIntersector *li,int segmentIndex,int geomIndex);	virtual void addIntersection(LineIntersector *li,int segmentIndex,int geomIndex,int intIndex);	virtual void computeIM(IntersectionMatrix *im);	virtual bool isPointwiseEqual(Edge *e);	virtual string print();	virtual string printReverse();	virtual bool equals(Edge* e);	virtual Envelope* getEnvelope();private:	string name;	MonotoneChainEdge *mce;	Envelope *env;	bool isIsolatedVar;	Depth *depth;	int depthDelta;   // the change in area depth from the R to L side of this edge};class EdgeEnd {friend class Unload;public:	EdgeEnd();	virtual ~EdgeEnd();	EdgeEnd(Edge* newEdge, Coordinate& newP0, Coordinate& newP1);	EdgeEnd(Edge* newEdge, Coordinate& newP0, Coordinate& newP1, Label* newLabel);	virtual Edge* getEdge();	virtual Label* getLabel();	virtual Coordinate& getCoordinate();	virtual Coordinate& getDirectedCoordinate();	virtual int getQuadrant();	virtual double getDx();	virtual double getDy();	virtual void setNode(Node* newNode);	virtual Node* getNode();	virtual int compareTo(EdgeEnd *e);	virtual int compareDirection(EdgeEnd *e);	virtual void computeLabel();	virtual string print();protected://	static CGAlgorithms *cga;	Edge* edge;// the parent edge of this edge end	Label* label;	EdgeEnd(Edge* newEdge);	virtual void init(const Coordinate& newP0, const Coordinate& newP1);private:	Node* node;          // the node this edge end originates at	Coordinate p0,p1;  // points of initial line segment	double dx, dy;      // the direction vector for this edge from its starting point	int quadrant;};struct EdgeEndLT {	bool operator()(EdgeEnd *s1, EdgeEnd *s2) const {		return s1->compareTo(s2)<0;	}};class GeometryGraph;class EdgeEndStar {public:	EdgeEndStar();	virtual ~EdgeEndStar();	virtual void insert(EdgeEnd *e);	virtual Coordinate& getCoordinate();	virtual int getDegree();	virtual vector<EdgeEnd*>::iterator getIterator();	virtual vector<EdgeEnd*>* getEdges();	virtual EdgeEnd* getNextCW(EdgeEnd *ee);	virtual void computeLabelling(vector<GeometryGraph*> *geom); // throw(TopologyException *);	virtual int getLocation(int geomIndex,Coordinate& p,vector<GeometryGraph*> *geom);	virtual bool isAreaLabelsConsistent();	virtual void propagateSideLabels(int geomIndex); // throw(TopologyException *);	virtual int findIndex(EdgeEnd *eSearch);	virtual string print();protected:	map<EdgeEnd*,void*,EdgeEndLT> *edgeMap;	vector<EdgeEnd*> *edgeList;	virtual void insertEdgeEnd(EdgeEnd *e,void* obj);private:	int ptInAreaLocation[2];	virtual void computeEdgeEndLabels();	virtual bool checkAreaLabelsConsistent(int geomIndex);};class DirectedEdge;class EdgeRing;class DirectedEdgeStar: public EdgeEndStar {public:	DirectedEdgeStar();	~DirectedEdgeStar();	void insert(EdgeEnd *ee);	Label *getLabel();	int getOutgoingDegree();	int getOutgoingDegree(EdgeRing *er);	DirectedEdge* getRightmostEdge();	void computeLabelling(vector<GeometryGraph*> *geom); // throw(TopologyException *);	void mergeSymLabels();	void updateLabelling(Label *nodeLabel);	void linkResultDirectedEdges(); // throw(TopologyException *);	void linkMinimalDirectedEdges(EdgeRing *er);	void linkAllDirectedEdges();	void findCoveredLineEdges();	void computeDepths(DirectedEdge *de);	string print();private:	/**	 * A list of all outgoing edges in the result, in CCW order	 */	vector<DirectedEdge*> *resultAreaEdgeList;	Label *label;	vector<DirectedEdge*>* getResultAreaEdges();	enum {		SCANNING_FOR_INCOMING=1,		LINKING_TO_OUTGOING	};//	static const int SCANNING_FOR_INCOMING=1;//	static const int LINKING_TO_OUTGOING=2;	int computeDepths(int startIndex, int endIndex, int startDepth);};class Node: public GraphComponent {public:	Node(Coordinate& newCoord, EdgeEndStar* newEdges);	virtual ~Node();	virtual const Coordinate& getCoordinate() const;	virtual EdgeEndStar* getEdges();	virtual bool isIsolated();	virtual void add(EdgeEnd *e);	virtual void mergeLabel(const Node* n);	virtual void mergeLabel(const Label* label2);	virtual void setLabel(int argIndex, int onLocation);	virtual void setLabelBoundary(int argIndex);	virtual int computeMergedLocation(const Label* label2, int eltIndex);	virtual string print();	virtual const vector<double> &getZ() const;	virtual void addZ(double);	bool isIncidentEdgeInResult() const;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲中国最大av网站| 精品久久免费看| 日韩码欧中文字| 97国产一区二区| 亚洲黄一区二区三区| 91久久精品一区二区三| 五月激情综合色| 日韩三级.com| 懂色av一区二区三区免费观看 | 中文字幕一区二区三区不卡在线| 国产成人av一区| 专区另类欧美日韩| 欧美日本一区二区在线观看| 久久99久久99| 国产精品精品国产色婷婷| 在线亚洲一区二区| 奇米一区二区三区| 国产精品丝袜黑色高跟| 日韩精品在线网站| 国产精品一级黄| 亚洲精品国产a| 日韩精品一区二区在线| 成人av动漫网站| 五月天精品一区二区三区| 久久综合999| 色婷婷综合久色| 韩国理伦片一区二区三区在线播放| 久久久久99精品国产片| 欧美午夜精品免费| 国产一区在线视频| 亚洲午夜国产一区99re久久| 精品国产乱码久久久久久老虎| 99riav久久精品riav| 免费一区二区视频| 一区二区三区四区中文字幕| 精品卡一卡二卡三卡四在线| 91福利精品视频| 国产一区二区三区四区五区入口 | 一区二区三区四区中文字幕| 欧美精品一区二区在线播放 | 精品一区二区三区免费毛片爱 | 韩国精品一区二区| 亚洲成年人影院| 国产精品不卡在线| 精品成人一区二区三区| 欧美日韩国产色站一区二区三区| 丁香五精品蜜臀久久久久99网站 | 91久久精品日日躁夜夜躁欧美| 久久精品国产在热久久| 亚洲精品国产成人久久av盗摄| 久久综合狠狠综合久久综合88| 欧美日韩黄色一区二区| 北岛玲一区二区三区四区| 久久99国产精品久久99| 天堂精品中文字幕在线| 亚洲三级视频在线观看| 日本一二三不卡| 亚洲啪啪综合av一区二区三区| 久久久亚洲高清| 欧美成人video| 在线不卡中文字幕播放| 91精彩视频在线| 97se亚洲国产综合自在线 | 国产成人精品亚洲777人妖| 免费的成人av| 热久久免费视频| 日本最新不卡在线| 天天综合网 天天综合色| 亚洲成av人片www| 亚洲一级二级三级在线免费观看| 亚洲免费伊人电影| 亚洲视频在线观看一区| 成人欧美一区二区三区在线播放| 精品福利视频一区二区三区| 欧美xxxxx牲另类人与| 日韩欧美视频在线| 欧美精品一区二区三区在线| 精品国产免费一区二区三区四区| 日韩欧美高清一区| www久久精品| 国产亚洲精品福利| 国产精品家庭影院| 亚洲男人天堂av| 亚洲韩国一区二区三区| 日日噜噜夜夜狠狠视频欧美人| 日韩中文字幕不卡| 精品一区二区三区在线播放| 国产最新精品免费| 成人性生交大片免费看视频在线| 成人av免费观看| 欧美色图免费看| 欧美一区中文字幕| 久久久蜜桃精品| 亚洲欧美一区二区在线观看| 亚洲综合久久久| 日本欧美一区二区三区| 欧美亚洲一区二区在线| 欧美日韩夫妻久久| 欧美不卡一区二区三区四区| 欧美精品一区二区高清在线观看| 欧美精品一区二区三区在线播放| 中文字幕欧美日韩一区| 一区二区三区欧美在线观看| 亚洲444eee在线观看| 精品一区二区三区免费毛片爱| 国产黄人亚洲片| 欧美中文字幕久久| 2020国产精品| 亚洲男人的天堂av| 久久99国产精品久久99| av亚洲产国偷v产偷v自拍| 欧美日韩免费一区二区三区| 日韩三级av在线播放| 国产精品欧美一区喷水| 午夜精品福利在线| 国产九色sp调教91| 欧美在线高清视频| 欧美国产成人精品| 污片在线观看一区二区 | 国产成人综合网| 欧美在线三级电影| 久久精品一区二区三区四区| 亚洲国产另类精品专区| 丁香一区二区三区| 日韩一区二区免费在线观看| 综合久久给合久久狠狠狠97色 | 在线视频观看一区| 精品国产麻豆免费人成网站| 一区二区三区在线免费播放| 国产在线精品视频| 制服丝袜在线91| 椎名由奈av一区二区三区| 韩日av一区二区| 国产精品久久久久影院老司 | 91精品福利在线一区二区三区| 亚洲欧美在线aaa| 国内精品视频一区二区三区八戒| 在线观看亚洲专区| 国产精品久久久久aaaa樱花| 精品一区二区三区蜜桃| 欧美性感一区二区三区| 国产精品欧美一级免费| 蜜桃在线一区二区三区| 欧美无砖砖区免费| 亚洲乱码中文字幕| 本田岬高潮一区二区三区| 久久免费看少妇高潮| 久久精品国产一区二区三区免费看| 欧美网站一区二区| 一区二区三区四区国产精品| 成人免费视频视频| 欧美国产97人人爽人人喊| 精品一区二区三区在线视频| 欧美精品久久久久久久久老牛影院| 亚洲三级免费电影| 91一区二区三区在线观看| 欧美极品少妇xxxxⅹ高跟鞋| 国产精品一区二区在线观看不卡| 欧美成人在线直播| 玖玖九九国产精品| 精品美女在线播放| 精品一区二区免费看| 日韩精品资源二区在线| 麻豆精品新av中文字幕| 日韩精品最新网址| 九九视频精品免费| 久久色在线观看| 成人综合激情网| 五月天亚洲精品| 欧美人妇做爰xxxⅹ性高电影| 一级精品视频在线观看宜春院| 91伊人久久大香线蕉| 一区二区三区在线观看国产| 色欧美片视频在线观看| 亚洲午夜电影在线| 欧美一区二区视频观看视频| 日本不卡一二三区黄网| 久久综合久色欧美综合狠狠| 国产一区二区伦理| 国产精品久久看| 日本精品一区二区三区四区的功能| 亚洲一区免费观看| 欧美久久婷婷综合色| 卡一卡二国产精品 | 日韩精品专区在线| 国产精品自产自拍| 国产精品美女久久福利网站| 91玉足脚交白嫩脚丫在线播放| 亚洲黄色小视频| 欧美久久久久中文字幕| 国产一区二区三区av电影| 亚洲国产精品成人综合| 色欧美乱欧美15图片| 五月天亚洲婷婷| 国产拍揄自揄精品视频麻豆| 91热门视频在线观看| 日韩av在线播放中文字幕| 久久久99久久| 欧美最新大片在线看| 精品一区二区三区久久|