C_QGISAlgorithmLib.h
资源名称:QGIS.rar [点击查看]
上传用户:oybseng
上传日期:2015-04-27
资源大小:7831k
文件大小:1k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- // QGISAlgorithmLib.h: interface for the CQGISAlgorithmLib class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_QGISALGORITHMLIB_H__F7E0915B_63B3_49A4_8022_E92A2AC2EBDA__INCLUDED_)
- #define AFX_QGISALGORITHMLIB_H__F7E0915B_63B3_49A4_8022_E92A2AC2EBDA__INCLUDED_
- #include "....QObjectsincludeQBaseObj.h"
- #include "....QObjectsincludeQPointObj.h"
- #include "....QObjectsincludeQPointArray.h"
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //GIS常用算法库
- //////////////////////////////////////////
- ///***************CQGIS****************///
- ///类 名:CQGISAlgorithmLib
- ///基 型:无
- ///说 明:GIS常用算法库
- ///***************CQGIS****************///
- //////////////////////////////////////////
- class AFX_EXT_CLASS CQGISAlgorithmLib
- {
- public:
- CQGISAlgorithmLib();
- virtual ~CQGISAlgorithmLib();
- public:
- // 判断两条直线是否相交
- static BOOL IsLineCross(CQPoint p1,CQPoint p2,CQPoint q1,CQPoint q2);
- //计算两条线段的交点
- static void CalLineCrossPoint(CQPoint pp1,CQPoint pp2,CQPoint qq1,CQPoint qq2,CQPointArray * pResult);
- static double RadianToDegree(double fRadian);
- static double DegreeToRadian(double fDegree);
- protected:
- //限制内部使用
- static void CalSameLineCrossPoint(CQPoint pp1,CQPoint pp2,CQPoint qq1,CQPoint qq2,CQPointArray * pResult);
- };
- #endif // !defined(AFX_QGISALGORITHMLIB_H__F7E0915B_63B3_49A4_8022_E92A2AC2EBDA__INCLUDED_)