📄 supermap.cpp
字号:
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);
}
LPDISPATCH CsoGeometry::GetStyle()
{
LPDISPATCH result;
GetProperty(0xb, VT_DISPATCH, (void*)&result);
return result;
}
void CsoGeometry::SetStyle(LPDISPATCH propVal)
{
SetProperty(0xb, VT_DISPATCH, propVal);
}
LPDISPATCH CsoGeometry::GetCentroidPoint()
{
LPDISPATCH result;
GetProperty(0x13, VT_DISPATCH, (void*)&result);
return result;
}
void CsoGeometry::SetCentroidPoint(LPDISPATCH propVal)
{
SetProperty(0x13, VT_DISPATCH, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoGeometry operations
void CsoGeometry::SetEmpty()
{
InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
LPDISPATCH CsoGeometry::Clone()
{
LPDISPATCH result;
InvokeHelper(0x10, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
return result;
}
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);
}
/////////////////////////////////////////////////////////////////////////////
// CsoRect properties
double CsoRect::GetLeft()
{
double result;
GetProperty(0x1, VT_R8, (void*)&result);
return result;
}
void CsoRect::SetLeft(double propVal)
{
SetProperty(0x1, VT_R8, propVal);
}
double CsoRect::GetTop()
{
double result;
GetProperty(0x2, VT_R8, (void*)&result);
return result;
}
void CsoRect::SetTop(double propVal)
{
SetProperty(0x2, VT_R8, propVal);
}
double CsoRect::GetRight()
{
double result;
GetProperty(0x3, VT_R8, (void*)&result);
return result;
}
void CsoRect::SetRight(double propVal)
{
SetProperty(0x3, VT_R8, propVal);
}
double CsoRect::GetBottom()
{
double result;
GetProperty(0x4, VT_R8, (void*)&result);
return result;
}
void CsoRect::SetBottom(double propVal)
{
SetProperty(0x4, VT_R8, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoRect operations
double CsoRect::Width()
{
double result;
InvokeHelper(0x5, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
return result;
}
double CsoRect::Height()
{
double result;
InvokeHelper(0x6, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
return result;
}
LPDISPATCH CsoRect::CenterPoint()
{
LPDISPATCH result;
InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
return result;
}
LPDISPATCH CsoRect::TopLeft()
{
LPDISPATCH result;
InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
return result;
}
LPDISPATCH CsoRect::BottomRight()
{
LPDISPATCH result;
InvokeHelper(0x9, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// CsoPoint properties
double CsoPoint::GetX()
{
double result;
GetProperty(0x1, VT_R8, (void*)&result);
return result;
}
void CsoPoint::SetX(double propVal)
{
SetProperty(0x1, VT_R8, propVal);
}
double CsoPoint::GetY()
{
double result;
GetProperty(0x2, VT_R8, (void*)&result);
return result;
}
void CsoPoint::SetY(double propVal)
{
SetProperty(0x2, VT_R8, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoPoint operations
void CsoPoint::Offset(double xOffset, double yOffset)
{
static BYTE parms[] =
VTS_R8 VTS_R8;
InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
xOffset, yOffset);
}
/////////////////////////////////////////////////////////////////////////////
// CsoStyle properties
unsigned long CsoStyle::GetBrushBackColor()
{
unsigned long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetBrushBackColor(unsigned long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
unsigned long CsoStyle::GetBrushColor()
{
unsigned long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetBrushColor(unsigned long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
long CsoStyle::GetBrushStyle()
{
long result;
GetProperty(0x3, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetBrushStyle(long propVal)
{
SetProperty(0x3, VT_I4, propVal);
}
unsigned long CsoStyle::GetPenColor()
{
unsigned long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetPenColor(unsigned long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
long CsoStyle::GetPenStyle()
{
long result;
GetProperty(0x5, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetPenStyle(long propVal)
{
SetProperty(0x5, VT_I4, propVal);
}
long CsoStyle::GetPenWidth()
{
long result;
GetProperty(0x6, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetPenWidth(long propVal)
{
SetProperty(0x6, VT_I4, propVal);
}
double CsoStyle::GetSymbolRotation()
{
double result;
GetProperty(0x7, VT_R8, (void*)&result);
return result;
}
void CsoStyle::SetSymbolRotation(double propVal)
{
SetProperty(0x7, VT_R8, propVal);
}
long CsoStyle::GetSymbolSize()
{
long result;
GetProperty(0x8, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetSymbolSize(long propVal)
{
SetProperty(0x8, VT_I4, propVal);
}
long CsoStyle::GetSymbolStyle()
{
long result;
GetProperty(0x9, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetSymbolStyle(long propVal)
{
SetProperty(0x9, VT_I4, propVal);
}
BOOL CsoStyle::GetBrushBackTransparent()
{
BOOL result;
GetProperty(0xa, VT_BOOL, (void*)&result);
return result;
}
void CsoStyle::SetBrushBackTransparent(BOOL propVal)
{
SetProperty(0xa, VT_BOOL, propVal);
}
short CsoStyle::GetBrushOpaqueRate()
{
short result;
GetProperty(0xc, VT_I2, (void*)&result);
return result;
}
void CsoStyle::SetBrushOpaqueRate(short propVal)
{
SetProperty(0xc, VT_I2, propVal);
}
long CsoStyle::GetBrushGradientMode()
{
long result;
GetProperty(0xd, VT_I4, (void*)&result);
return result;
}
void CsoStyle::SetBrushGradientMode(long propVal)
{
SetProperty(0xd, VT_I4, propVal);
}
double CsoStyle::GetBrushGradientAngle()
{
double result;
GetProperty(0xe, VT_R8, (void*)&result);
return result;
}
void CsoStyle::SetBrushGradientAngle(double propVal)
{
SetProperty(0xe, VT_R8, propVal);
}
short CsoStyle::GetBrushGradientCenterOffsetX()
{
short result;
GetProperty(0xf, VT_I2, (void*)&result);
return result;
}
void CsoStyle::SetBrushGradientCenterOffsetX(short propVal)
{
SetProperty(0xf, VT_I2, propVal);
}
short CsoStyle::GetBrushGradientCenterOffsetY()
{
short result;
GetProperty(0x10, VT_I2, (void*)&result);
return result;
}
void CsoStyle::SetBrushGradientCenterOffsetY(short propVal)
{
SetProperty(0x10, VT_I2, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoStyle operations
long CsoStyle::GetSmObject()
{
long result;
InvokeHelper(0xb, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// CsoSpatialOperator properties
/////////////////////////////////////////////////////////////////////////////
// CsoSpatialOperator operations
LPDISPATCH CsoSpatialOperator::Boundary()
{
LPDISPATCH result;
InvokeHelper(0x1, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
return result;
}
double CsoSpatialOperator::Distance(LPDISPATCH objOtherGeometry)
{
double result;
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x2, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
objOtherGeometry);
return result;
}
LPDISPATCH CsoSpatialOperator::Buffer(double dDistance, long nSmoothness)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_R8 VTS_I4;
InvokeHelper(0x3, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
dDistance, nSmoothness);
return result;
}
LPDISPATCH CsoSpatialOperator::Intersection(LPDISPATCH objOtherGeometry)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
objOtherGeometry);
return result;
}
LPDISPATCH CsoSpatialOperator::Union(LPDISPATCH objOtherGeometry)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
objOtherGeometry);
return result;
}
LPDISPATCH CsoSpatialOperator::Difference(LPDISPATCH objOtherGeometry)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
objOtherGeometry);
return result;
}
LPDISPATCH CsoSpatialOperator::SymmetricDifference(LPDISPATCH objOtherGeometry)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
objOtherGeometry);
return result;
}
LPDISPATCH CsoSpatialOperator::ConvexHull()
{
LPDISPATCH result;
InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
return result;
}
BOOL CsoSpatialOperator::SplitRegion(LPDISPATCH objSrcRegion, LPDISPATCH objDestRegion1, LPDISPATCH objDestRegion2)
{
BOOL result;
static BYTE parms[] =
VTS_DISPATCH VTS_DISPATCH VTS_DISPATCH;
InvokeHelper(0x9, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
objSrcRegion, objDestRegion1, objDestRegion2);
return result;
}
LPDISPATCH CsoSpatialOperator::Buffer2(double dLeftDistance, double dRightDistance, long nSmoothness)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_R8 VTS_R8 VTS_I4;
InvokeHelper(0xa, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
dLeftDistance, dRightDistance, nSmoothness);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// CsoGeoRegion properties
long CsoGeoRegion::GetDimension()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CsoGeoRegion::SetDimension(long propVal)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -