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

GIS编程

开发平台:

Visual C++

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  3. //  Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "mogeotransformation.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "mogeocoordsys.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMoGeoTransformation properties
  10. long CMoGeoTransformation::GetType()
  11. {
  12. long result;
  13. GetProperty(0x1, VT_I4, (void*)&result);
  14. return result;
  15. }
  16. void CMoGeoTransformation::SetType(long propVal)
  17. {
  18. SetProperty(0x1, VT_I4, propVal);
  19. }
  20. CString CMoGeoTransformation::GetName()
  21. {
  22. CString result;
  23. GetProperty(0x2, VT_BSTR, (void*)&result);
  24. return result;
  25. }
  26. void CMoGeoTransformation::SetName(LPCTSTR propVal)
  27. {
  28. SetProperty(0x2, VT_BSTR, propVal);
  29. }
  30. CMoGeoCoordSys CMoGeoTransformation::GetFromGeoCoordSys()
  31. {
  32. LPDISPATCH pDispatch;
  33. GetProperty(0x3, VT_DISPATCH, (void*)&pDispatch);
  34. return CMoGeoCoordSys(pDispatch);
  35. }
  36. void CMoGeoTransformation::SetFromGeoCoordSys(LPDISPATCH propVal)
  37. {
  38. SetProperty(0x3, VT_DISPATCH, propVal);
  39. }
  40. CMoGeoCoordSys CMoGeoTransformation::GetToGeoCoordSys()
  41. {
  42. LPDISPATCH pDispatch;
  43. GetProperty(0x4, VT_DISPATCH, (void*)&pDispatch);
  44. return CMoGeoCoordSys(pDispatch);
  45. }
  46. void CMoGeoTransformation::SetToGeoCoordSys(LPDISPATCH propVal)
  47. {
  48. SetProperty(0x4, VT_DISPATCH, propVal);
  49. }
  50. long CMoGeoTransformation::GetMethod()
  51. {
  52. long result;
  53. GetProperty(0x5, VT_I4, (void*)&result);
  54. return result;
  55. }
  56. void CMoGeoTransformation::SetMethod(long propVal)
  57. {
  58. SetProperty(0x5, VT_I4, propVal);
  59. }
  60. long CMoGeoTransformation::GetDirection()
  61. {
  62. long result;
  63. GetProperty(0x6, VT_I4, (void*)&result);
  64. return result;
  65. }
  66. void CMoGeoTransformation::SetDirection(long propVal)
  67. {
  68. SetProperty(0x6, VT_I4, propVal);
  69. }
  70. long CMoGeoTransformation::GetSecondType()
  71. {
  72. long result;
  73. GetProperty(0x7, VT_I4, (void*)&result);
  74. return result;
  75. }
  76. void CMoGeoTransformation::SetSecondType(long propVal)
  77. {
  78. SetProperty(0x7, VT_I4, propVal);
  79. }
  80. CString CMoGeoTransformation::GetSecondName()
  81. {
  82. CString result;
  83. GetProperty(0x8, VT_BSTR, (void*)&result);
  84. return result;
  85. }
  86. void CMoGeoTransformation::SetSecondName(LPCTSTR propVal)
  87. {
  88. SetProperty(0x8, VT_BSTR, propVal);
  89. }
  90. long CMoGeoTransformation::GetSecondDirection()
  91. {
  92. long result;
  93. GetProperty(0x9, VT_I4, (void*)&result);
  94. return result;
  95. }
  96. void CMoGeoTransformation::SetSecondDirection(long propVal)
  97. {
  98. SetProperty(0x9, VT_I4, propVal);
  99. }
  100. /////////////////////////////////////////////////////////////////////////////
  101. // CMoGeoTransformation operations
  102. void CMoGeoTransformation::SetParameter(long ParameterType, double ParameterValue)
  103. {
  104. static BYTE parms[] =
  105. VTS_I4 VTS_R8;
  106. InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  107.  ParameterType, ParameterValue);
  108. }
  109. double CMoGeoTransformation::GetParameter(long ParameterType)
  110. {
  111. double result;
  112. static BYTE parms[] =
  113. VTS_I4;
  114. InvokeHelper(0xb, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
  115. ParameterType);
  116. return result;
  117. }