mopolygon.h
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:2k
源码类别:

GIS编程

开发平台:

Visual C++

  1. #if !defined(AFX_MOPOLYGON_H__F01477A1_8885_4368_970F_3C5FEEB63D9B__INCLUDED_)
  2. #define AFX_MOPOLYGON_H__F01477A1_8885_4368_970F_3C5FEEB63D9B__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  7. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  8. //  Microsoft Visual C++, your modifications will be overwritten.
  9. // Dispatch interfaces referenced by this interface
  10. class CMoRectangle;
  11. class CMoParts;
  12. class CMoPoint;
  13. class CMoPoints;
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CMoPolygon wrapper class
  16. class CMoPolygon : public COleDispatchDriver
  17. {
  18. public:
  19. CMoPolygon() {} // Calls COleDispatchDriver default constructor
  20. CMoPolygon(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
  21. CMoPolygon(const CMoPolygon& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
  22. // Attributes
  23. public:
  24. CMoRectangle GetExtent();
  25. void SetExtent(LPDISPATCH);
  26. CMoParts GetParts();
  27. void SetParts(LPDISPATCH);
  28. CMoPoint GetCentroid();
  29. void SetCentroid(LPDISPATCH);
  30. double GetArea();
  31. void SetArea(double);
  32. double GetPerimeter();
  33. void SetPerimeter(double);
  34. long GetShapeType();
  35. void SetShapeType(long);
  36. // Operations
  37. public:
  38. BOOL IsPointIn(LPDISPATCH Point);
  39. void Offset(double deltaX, double deltaY);
  40. double DistanceTo(LPDISPATCH shape);
  41. CMoPoints GetCrossings(LPDISPATCH shape);
  42. LPDISPATCH Union(LPDISPATCH anotherShape, const VARIANT& Extent);
  43. LPDISPATCH Xor(LPDISPATCH anotherShape, const VARIANT& Extent);
  44. LPDISPATCH Difference(LPDISPATCH anotherShape, const VARIANT& Extent);
  45. LPDISPATCH Intersect(LPDISPATCH anotherShape, const VARIANT& Extent);
  46. LPDISPATCH Buffer(double distance, const VARIANT& Extent);
  47. };
  48. //{{AFX_INSERT_LOCATION}}
  49. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  50. #endif // !defined(AFX_MOPOLYGON_H__F01477A1_8885_4368_970F_3C5FEEB63D9B__INCLUDED_)