📄 cmapxdatum.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 "cmapxdatum.h"
/////////////////////////////////////////////////////////////////////////////
// CCMapXDatum properties
short CCMapXDatum::GetEllipsoid()
{
short result;
GetProperty(0x1, VT_I2, (void*)&result);
return result;
}
double CCMapXDatum::GetShiftX()
{
double result;
GetProperty(0x2, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetShiftY()
{
double result;
GetProperty(0x3, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetShiftZ()
{
double result;
GetProperty(0x4, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetRotateX()
{
double result;
GetProperty(0x5, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetRotateY()
{
double result;
GetProperty(0x6, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetRotateZ()
{
double result;
GetProperty(0x7, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetScaleAdjust()
{
double result;
GetProperty(0x8, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetPrimeMeridian()
{
double result;
GetProperty(0x9, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetSemiMajorAxis()
{
double result;
GetProperty(0xa, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetSemiMinorAxis()
{
double result;
GetProperty(0xb, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetFlattening()
{
double result;
GetProperty(0xc, VT_R8, (void*)&result);
return result;
}
double CCMapXDatum::GetEccentricity()
{
double result;
GetProperty(0xd, VT_R8, (void*)&result);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// CCMapXDatum operations
void CCMapXDatum::Set(short Ellipsoid, double ShiftX, double ShiftY, double ShiftZ, double RotateX, double RotateY, double RotateZ, double ScaleAdjust, double PrimeMeridian)
{
static BYTE parms[] =
VTS_I2 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8;
InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Ellipsoid, ShiftX, ShiftY, ShiftZ, RotateX, RotateY, RotateZ, ScaleAdjust, PrimeMeridian);
}
void CCMapXDatum::SetFromList(short DatumNum)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
DatumNum);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -