mopolygon.cpp
资源名称:MoLecture.rar [点击查看]
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:4k
源码类别:
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 "mopolygon.h"
- // Dispatch interfaces referenced by this interface
- #include "MoRectangle.h"
- #include "MoParts.h"
- #include "MoPoint.h"
- #include "MoPoints.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMoPolygon properties
- CMoRectangle CMoPolygon::GetExtent()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x1, VT_DISPATCH, (void*)&pDispatch);
- return CMoRectangle(pDispatch);
- }
- void CMoPolygon::SetExtent(LPDISPATCH propVal)
- {
- SetProperty(0x1, VT_DISPATCH, propVal);
- }
- CMoParts CMoPolygon::GetParts()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x2, VT_DISPATCH, (void*)&pDispatch);
- return CMoParts(pDispatch);
- }
- void CMoPolygon::SetParts(LPDISPATCH propVal)
- {
- SetProperty(0x2, VT_DISPATCH, propVal);
- }
- CMoPoint CMoPolygon::GetCentroid()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x3, VT_DISPATCH, (void*)&pDispatch);
- return CMoPoint(pDispatch);
- }
- void CMoPolygon::SetCentroid(LPDISPATCH propVal)
- {
- SetProperty(0x3, VT_DISPATCH, propVal);
- }
- double CMoPolygon::GetArea()
- {
- double result;
- GetProperty(0x4, VT_R8, (void*)&result);
- return result;
- }
- void CMoPolygon::SetArea(double propVal)
- {
- SetProperty(0x4, VT_R8, propVal);
- }
- double CMoPolygon::GetPerimeter()
- {
- double result;
- GetProperty(0x5, VT_R8, (void*)&result);
- return result;
- }
- void CMoPolygon::SetPerimeter(double propVal)
- {
- SetProperty(0x5, VT_R8, propVal);
- }
- long CMoPolygon::GetShapeType()
- {
- long result;
- GetProperty(0x6, VT_I4, (void*)&result);
- return result;
- }
- void CMoPolygon::SetShapeType(long propVal)
- {
- SetProperty(0x6, VT_I4, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMoPolygon operations
- BOOL CMoPolygon::IsPointIn(LPDISPATCH Point)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- Point);
- return result;
- }
- void CMoPolygon::Offset(double deltaX, double deltaY)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- deltaX, deltaY);
- }
- double CMoPolygon::DistanceTo(LPDISPATCH shape)
- {
- double result;
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
- shape);
- return result;
- }
- CMoPoints CMoPolygon::GetCrossings(LPDISPATCH shape)
- {
- LPDISPATCH pDispatch;
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
- shape);
- return CMoPoints(pDispatch);
- }
- LPDISPATCH CMoPolygon::Union(LPDISPATCH anotherShape, const VARIANT& Extent)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- anotherShape, &Extent);
- return result;
- }
- LPDISPATCH CMoPolygon::Xor(LPDISPATCH anotherShape, const VARIANT& Extent)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0xc, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- anotherShape, &Extent);
- return result;
- }
- LPDISPATCH CMoPolygon::Difference(LPDISPATCH anotherShape, const VARIANT& Extent)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0xd, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- anotherShape, &Extent);
- return result;
- }
- LPDISPATCH CMoPolygon::Intersect(LPDISPATCH anotherShape, const VARIANT& Extent)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0xe, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- anotherShape, &Extent);
- return result;
- }
- LPDISPATCH CMoPolygon::Buffer(double distance, const VARIANT& Extent)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_R8 VTS_VARIANT;
- InvokeHelper(0xf, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- distance, &Extent);
- return result;
- }