morectangle.h
Upload User: qinfarui
Upload Date: 2022-08-10
Package Size: 362k
Code Size: 2k
Category:

GIS program

Development Platform:

Visual C++

  1. #if !defined(AFX_MORECTANGLE_H__4AC72532_0BF5_4A21_8C8E_62E436B3B843__INCLUDED_)
  2. #define AFX_MORECTANGLE_H__4AC72532_0BF5_4A21_8C8E_62E436B3B843__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 CMoPoint;
  11. class CMoPoints;
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CMoRectangle wrapper class
  14. class CMoRectangle : public COleDispatchDriver
  15. {
  16. public:
  17. CMoRectangle() {} // Calls COleDispatchDriver default constructor
  18. CMoRectangle(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
  19. CMoRectangle(const CMoRectangle& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
  20. // Attributes
  21. public:
  22. double GetLeft();
  23. void SetLeft(double);
  24. double GetRight();
  25. void SetRight(double);
  26. double GetTop();
  27. void SetTop(double);
  28. double GetBottom();
  29. void SetBottom(double);
  30. double GetWidth();
  31. void SetWidth(double);
  32. double GetHeight();
  33. void SetHeight(double);
  34. CMoPoint GetCenter();
  35. void SetCenter(LPDISPATCH);
  36. double GetFloor();
  37. void SetFloor(double);
  38. double GetCeiling();
  39. void SetCeiling(double);
  40. double GetDepth();
  41. void SetDepth(double);
  42. long GetShapeType();
  43. void SetShapeType(long);
  44. // Operations
  45. public:
  46. void ScaleRectangle(double scaleFactor);
  47. void Offset(double deltaX, double deltaY);
  48. void Inset(double deltaX, double deltaY);
  49. BOOL IsPointIn(LPDISPATCH Point);
  50. BOOL Intersects(LPDISPATCH Rectangle);
  51. double DistanceTo(LPDISPATCH shape);
  52. CMoPoints GetCrossings(LPDISPATCH shape);
  53. LPDISPATCH Difference(LPDISPATCH anotherShape, const VARIANT& Extent);
  54. LPDISPATCH Intersect(LPDISPATCH anotherShape, const VARIANT& Extent);
  55. LPDISPATCH Xor(LPDISPATCH anotherShape, const VARIANT& Extent);
  56. LPDISPATCH Union(LPDISPATCH anotherShape, const VARIANT& Extent);
  57. LPDISPATCH Buffer(double distance, const VARIANT& Extent);
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_MORECTANGLE_H__4AC72532_0BF5_4A21_8C8E_62E436B3B843__INCLUDED_)