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

📄 ugklinestring.h

📁 linux下一款GIS程序源码
💻 H
字号:
// ugklinestring.h: interface for the UGKLineString class.///************************************************************************//*                            UGKLineString                             *//************************************************************************//** * Concrete representation of a multi-vertex line. *//*    继承UGKCurve类,描述一条多顶点的曲线*/#ifndef  UGKLineString_H#define  UGKLineString_H#include "ugkcurve.h"class UGKLineString : public UGKCurve  {protected:	int         nPointCount;	UGKRawPoint *paoPoints;   //UGKRawPoint类型数组,用于存放每个点的坐标	double      *padfZ; 	void        Make3D();	void        Make2D();public:	UGKLineString();	virtual ~UGKLineString();	virtual int WkbSize() const;	virtual int getDimension() const;	virtual int getCoordinateDimension() const;	virtual UGKGeometry *clone() const;	virtual void empty();	virtual void getEnvelope( UGKEnvelope * psEnvelope ) const;	virtual double get_Length() const;	virtual void StartPoint(UGKPoint *) const;	virtual void EndPoint(UGKPoint *) const;	virtual void Value( double, UGKPoint * ) const;	int         getNumPoints() const { return nPointCount; }	void        getPoint( int, UGKPoint * ) const;	double      getX( int i ) const { return paoPoints[i].x; }	double      getY( int i ) const { return paoPoints[i].y; }	double      getZ( int i ) const;	virtual UGKBool  Equals( UGKGeometry * ) const;	void        setNumPoints( int );	void        setPoint( int, UGKPoint * );	void        setPoint( int, double, double, double = 0.0 );	void        setPoints( int, UGKRawPoint *, double * = NULL );	void        setPoints( int, double * padfX, double * padfY,                           double *padfZ = NULL );	void        addPoint( UGKPoint * );	void        addPoint( double, double, double = 0.0 );	virtual UGKwkbGeometryType getGeometryType() const;	virtual const char *getGeometryName() const;	virtual void flattenTo2D();};int TABGenerateArc(UGKLineString *poLine, int numPoints,                    double dCenterX, double dCenterY,                   double dXRadius, double dYRadius,                   double dStartAngle, double dEndAngle);int TABCloseRing(UGKLineString *poRing);UGKBool UGKPointInRing(UGKPoint *poPoint, UGKLineString *poRing);#endif 

⌨️ 快捷键说明

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