⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sogeometry.cpp

📁 SuperMap的网络分析示范源码
💻 CPP
字号:
// 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 "sogeometry.h"

// Dispatch interfaces referenced by this interface
#include "sorect.h"
#include "sostyle.h"
#include "sospatialoperator.h"
#include "sospatialrelation.h"
#include "sospatialrelation2.h"
#include "sopoint.h"


/////////////////////////////////////////////////////////////////////////////
// CsoGeometry properties

long CsoGeometry::GetDimension()
{
	long result;
	GetProperty(0x1, VT_I4, (void*)&result);
	return result;
}

void CsoGeometry::SetDimension(long propVal)
{
	SetProperty(0x1, VT_I4, propVal);
}

BOOL CsoGeometry::GetIsEmpty()
{
	BOOL result;
	GetProperty(0x2, VT_BOOL, (void*)&result);
	return result;
}

void CsoGeometry::SetIsEmpty(BOOL propVal)
{
	SetProperty(0x2, VT_BOOL, propVal);
}

BOOL CsoGeometry::GetIsSimple()
{
	BOOL result;
	GetProperty(0x3, VT_BOOL, (void*)&result);
	return result;
}

void CsoGeometry::SetIsSimple(BOOL propVal)
{
	SetProperty(0x3, VT_BOOL, propVal);
}

CsoRect CsoGeometry::GetBounds()
{
	LPDISPATCH pDispatch;
	GetProperty(0x4, VT_DISPATCH, (void*)&pDispatch);
	return CsoRect(pDispatch);
}

void CsoGeometry::SetBounds(LPDISPATCH propVal)
{
	SetProperty(0x4, VT_DISPATCH, propVal);
}

BOOL CsoGeometry::GetHasBounds()
{
	BOOL result;
	GetProperty(0x5, VT_BOOL, (void*)&result);
	return result;
}

void CsoGeometry::SetHasBounds(BOOL propVal)
{
	SetProperty(0x5, VT_BOOL, propVal);
}

BOOL CsoGeometry::GetHasStyle()
{
	BOOL result;
	GetProperty(0x6, VT_BOOL, (void*)&result);
	return result;
}

void CsoGeometry::SetHasStyle(BOOL propVal)
{
	SetProperty(0x6, VT_BOOL, propVal);
}

long CsoGeometry::GetId()
{
	long result;
	GetProperty(0x7, VT_I4, (void*)&result);
	return result;
}

void CsoGeometry::SetId(long propVal)
{
	SetProperty(0x7, VT_I4, propVal);
}

long CsoGeometry::GetByteSize()
{
	long result;
	GetProperty(0x8, VT_I4, (void*)&result);
	return result;
}

void CsoGeometry::SetByteSize(long propVal)
{
	SetProperty(0x8, VT_I4, propVal);
}

long CsoGeometry::GetPartCount()
{
	long result;
	GetProperty(0x9, VT_I4, (void*)&result);
	return result;
}

void CsoGeometry::SetPartCount(long propVal)
{
	SetProperty(0x9, VT_I4, propVal);
}

long CsoGeometry::GetType()
{
	long result;
	GetProperty(0xa, VT_I4, (void*)&result);
	return result;
}

void CsoGeometry::SetType(long propVal)
{
	SetProperty(0xa, VT_I4, propVal);
}

CsoStyle CsoGeometry::GetStyle()
{
	LPDISPATCH pDispatch;
	GetProperty(0xb, VT_DISPATCH, (void*)&pDispatch);
	return CsoStyle(pDispatch);
}

void CsoGeometry::SetStyle(LPDISPATCH propVal)
{
	SetProperty(0xb, VT_DISPATCH, propVal);
}

CsoPoint CsoGeometry::GetCentroidPoint()
{
	LPDISPATCH pDispatch;
	GetProperty(0x13, VT_DISPATCH, (void*)&pDispatch);
	return CsoPoint(pDispatch);
}

void CsoGeometry::SetCentroidPoint(LPDISPATCH propVal)
{
	SetProperty(0x13, VT_DISPATCH, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CsoGeometry operations

void CsoGeometry::SetEmpty()
{
	InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

CsoGeometry CsoGeometry::Clone()
{
	LPDISPATCH pDispatch;
	InvokeHelper(0x10, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
	return CsoGeometry(pDispatch);
}

BOOL CsoGeometry::HitTest(LPDISPATCH pntHitTest, double dTolerance)
{
	BOOL result;
	static BYTE parms[] =
		VTS_DISPATCH VTS_R8;
	InvokeHelper(0x11, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		pntHitTest, dTolerance);
	return result;
}

BOOL CsoGeometry::Offset(double xOffset, double yOffset)
{
	BOOL result;
	static BYTE parms[] =
		VTS_R8 VTS_R8;
	InvokeHelper(0x12, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		xOffset, yOffset);
	return result;
}

CString CsoGeometry::ToXML()
{
	CString result;
	InvokeHelper(0x14, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
	return result;
}

BOOL CsoGeometry::FromXML(LPCTSTR strXML)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x15, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strXML);
	return result;
}

void CsoGeometry::Rotate(LPDISPATCH pntBase, double dAngle)
{
	static BYTE parms[] =
		VTS_DISPATCH VTS_R8;
	InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 pntBase, dAngle);
}

void CsoGeometry::Zoom(double dRatioX, double dRatioY)
{
	static BYTE parms[] =
		VTS_R8 VTS_R8;
	InvokeHelper(0x17, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 dRatioX, dRatioY);
}

void CsoGeometry::Resize(LPDISPATCH Bounds)
{
	static BYTE parms[] =
		VTS_DISPATCH;
	InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 Bounds);
}

void CsoGeometry::Mirror(LPDISPATCH Points)
{
	static BYTE parms[] =
		VTS_DISPATCH;
	InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 Points);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -