movaluemaprenderer.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 "movaluemaprenderer.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "MoSymbol.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMoValueMapRenderer properties
  10. CString CMoValueMapRenderer::GetField()
  11. {
  12. CString result;
  13. GetProperty(0x1, VT_BSTR, (void*)&result);
  14. return result;
  15. }
  16. void CMoValueMapRenderer::SetField(LPCTSTR propVal)
  17. {
  18. SetProperty(0x1, VT_BSTR, propVal);
  19. }
  20. CMoSymbol CMoValueMapRenderer::GetDefaultSymbol()
  21. {
  22. LPDISPATCH pDispatch;
  23. GetProperty(0x6, VT_DISPATCH, (void*)&pDispatch);
  24. return CMoSymbol(pDispatch);
  25. }
  26. void CMoValueMapRenderer::SetDefaultSymbol(LPDISPATCH propVal)
  27. {
  28. SetProperty(0x6, VT_DISPATCH, propVal);
  29. }
  30. BOOL CMoValueMapRenderer::GetUseDefault()
  31. {
  32. BOOL result;
  33. GetProperty(0x2, VT_BOOL, (void*)&result);
  34. return result;
  35. }
  36. void CMoValueMapRenderer::SetUseDefault(BOOL propVal)
  37. {
  38. SetProperty(0x2, VT_BOOL, propVal);
  39. }
  40. short CMoValueMapRenderer::GetValueCount()
  41. {
  42. short result;
  43. GetProperty(0x7, VT_I2, (void*)&result);
  44. return result;
  45. }
  46. void CMoValueMapRenderer::SetValueCount(short propVal)
  47. {
  48. SetProperty(0x7, VT_I2, propVal);
  49. }
  50. CString CMoValueMapRenderer::GetTag()
  51. {
  52. CString result;
  53. GetProperty(0x3, VT_BSTR, (void*)&result);
  54. return result;
  55. }
  56. void CMoValueMapRenderer::SetTag(LPCTSTR propVal)
  57. {
  58. SetProperty(0x3, VT_BSTR, propVal);
  59. }
  60. long CMoValueMapRenderer::GetSymbolType()
  61. {
  62. long result;
  63. GetProperty(0x8, VT_I4, (void*)&result);
  64. return result;
  65. }
  66. void CMoValueMapRenderer::SetSymbolType(long propVal)
  67. {
  68. SetProperty(0x8, VT_I4, propVal);
  69. }
  70. CString CMoValueMapRenderer::GetRotationField()
  71. {
  72. CString result;
  73. GetProperty(0x4, VT_BSTR, (void*)&result);
  74. return result;
  75. }
  76. void CMoValueMapRenderer::SetRotationField(LPCTSTR propVal)
  77. {
  78. SetProperty(0x4, VT_BSTR, propVal);
  79. }
  80. CString CMoValueMapRenderer::GetScalingField()
  81. {
  82. CString result;
  83. GetProperty(0x5, VT_BSTR, (void*)&result);
  84. return result;
  85. }
  86. void CMoValueMapRenderer::SetScalingField(LPCTSTR propVal)
  87. {
  88. SetProperty(0x5, VT_BSTR, propVal);
  89. }
  90. /////////////////////////////////////////////////////////////////////////////
  91. // CMoValueMapRenderer operations
  92. CString CMoValueMapRenderer::GetValue(short index)
  93. {
  94. CString result;
  95. static BYTE parms[] =
  96. VTS_I2;
  97. InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  98. index);
  99. return result;
  100. }
  101. void CMoValueMapRenderer::SetValue(short index, LPCTSTR lpszNewValue)
  102. {
  103. static BYTE parms[] =
  104. VTS_I2 VTS_BSTR;
  105. InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  106.  index, lpszNewValue);
  107. }
  108. CMoSymbol CMoValueMapRenderer::GetSymbol(short index)
  109. {
  110. LPDISPATCH pDispatch;
  111. static BYTE parms[] =
  112. VTS_I2;
  113. InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, parms,
  114. index);
  115. return CMoSymbol(pDispatch);
  116. }