mogeocoordsys.cpp
资源名称:MoLecture.rar [点击查看]
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:3k
源码类别:
GIS编程
开发平台:
Visual C++
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
- #include "stdafx.h"
- #include "mogeocoordsys.h"
- // Dispatch interfaces referenced by this interface
- #include "MoDatum.h"
- #include "MoUnit.h"
- #include "MoPrimeMeridian.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMoGeoCoordSys properties
- long CMoGeoCoordSys::GetType()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- void CMoGeoCoordSys::SetType(long propVal)
- {
- SetProperty(0x1, VT_I4, propVal);
- }
- CString CMoGeoCoordSys::GetName()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- void CMoGeoCoordSys::SetName(LPCTSTR propVal)
- {
- SetProperty(0x2, VT_BSTR, propVal);
- }
- CMoDatum CMoGeoCoordSys::GetDatum()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x3, VT_DISPATCH, (void*)&pDispatch);
- return CMoDatum(pDispatch);
- }
- void CMoGeoCoordSys::SetDatum(LPDISPATCH propVal)
- {
- SetProperty(0x3, VT_DISPATCH, propVal);
- }
- CMoUnit CMoGeoCoordSys::GetUnit()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x4, VT_DISPATCH, (void*)&pDispatch);
- return CMoUnit(pDispatch);
- }
- void CMoGeoCoordSys::SetUnit(LPDISPATCH propVal)
- {
- SetProperty(0x4, VT_DISPATCH, propVal);
- }
- CMoPrimeMeridian CMoGeoCoordSys::GetPrimeMeridian()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x5, VT_DISPATCH, (void*)&pDispatch);
- return CMoPrimeMeridian(pDispatch);
- }
- void CMoGeoCoordSys::SetPrimeMeridian(LPDISPATCH propVal)
- {
- SetProperty(0x5, VT_DISPATCH, propVal);
- }
- BOOL CMoGeoCoordSys::GetIsProjected()
- {
- BOOL result;
- GetProperty(0x6, VT_BOOL, (void*)&result);
- return result;
- }
- void CMoGeoCoordSys::SetIsProjected(BOOL propVal)
- {
- SetProperty(0x6, VT_BOOL, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMoGeoCoordSys operations
- LPDISPATCH CMoGeoCoordSys::Transform(LPDISPATCH FromCoordSys, LPDISPATCH FromShape, const VARIANT& DensificationTolerance, const VARIANT& GeoTransformation)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_DISPATCH VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- FromCoordSys, FromShape, &DensificationTolerance, &GeoTransformation);
- return result;
- }
- void CMoGeoCoordSys::Export(LPCTSTR OutName)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- OutName);
- }
- CString CMoGeoCoordSys::ReturnDescription()
- {
- CString result;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
- return result;
- }