📄 super3d.cpp
字号:
/////////////////////////////////////////////////////////////////////////////
// CsoLight operations
/////////////////////////////////////////////////////////////////////////////
// CsoLights properties
long CsoLights::GetCount()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CsoLights::SetCount(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoLights operations
LPDISPATCH CsoLights::GetItem(const VARIANT& Index)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
&Index);
return result;
}
void CsoLights::SetRefItem(const VARIANT& Index, LPDISPATCH newValue)
{
static BYTE parms[] =
VTS_VARIANT VTS_DISPATCH;
InvokeHelper(0x0, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
&Index, newValue);
}
long CsoLights::Add(LPDISPATCH objLight)
{
long result;
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x2, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
objLight);
return result;
}
BOOL CsoLights::Remove(long nIndex)
{
BOOL result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x3, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
nIndex);
return result;
}
void CsoLights::RemoveAll()
{
InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CsoCamera properties
CsoPoint3D CsoCamera::GetPosition()
{
LPDISPATCH pDispatch;
GetProperty(0x1, VT_DISPATCH, (void*)&pDispatch);
return CsoPoint3D(pDispatch);
}
void CsoCamera::SetPosition(LPDISPATCH propVal)
{
SetProperty(0x1, VT_DISPATCH, propVal);
}
float CsoCamera::GetVisualAngle()
{
float result;
GetProperty(0x3, VT_R4, (void*)&result);
return result;
}
void CsoCamera::SetVisualAngle(float propVal)
{
SetProperty(0x3, VT_R4, propVal);
}
float CsoCamera::GetFarDistance()
{
float result;
GetProperty(0x4, VT_R4, (void*)&result);
return result;
}
void CsoCamera::SetFarDistance(float propVal)
{
SetProperty(0x4, VT_R4, propVal);
}
float CsoCamera::GetNearDistance()
{
float result;
GetProperty(0x5, VT_R4, (void*)&result);
return result;
}
void CsoCamera::SetNearDistance(float propVal)
{
SetProperty(0x5, VT_R4, propVal);
}
float CsoCamera::GetAspect()
{
float result;
GetProperty(0x6, VT_R4, (void*)&result);
return result;
}
void CsoCamera::SetAspect(float propVal)
{
SetProperty(0x6, VT_R4, propVal);
}
CsoPoint3D CsoCamera::GetTargetPoint()
{
LPDISPATCH pDispatch;
GetProperty(0xd, VT_DISPATCH, (void*)&pDispatch);
return CsoPoint3D(pDispatch);
}
void CsoCamera::SetTargetPoint(LPDISPATCH propVal)
{
SetProperty(0xd, VT_DISPATCH, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoCamera operations
void CsoCamera::Pitch(float fDegree)
{
static BYTE parms[] =
VTS_R4;
InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
fDegree);
}
void CsoCamera::Yaw(float fDegree)
{
static BYTE parms[] =
VTS_R4;
InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
fDegree);
}
void CsoCamera::Roll(float fDegree)
{
static BYTE parms[] =
VTS_R4;
InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
fDegree);
}
void CsoCamera::Move(float X, float Y, float Z)
{
static BYTE parms[] =
VTS_R4 VTS_R4 VTS_R4;
InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
X, Y, Z);
}
void CsoCamera::MoveRelative(float X, float Y, float Z)
{
static BYTE parms[] =
VTS_R4 VTS_R4 VTS_R4;
InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
X, Y, Z);
}
void CsoCamera::RotateAroundPoint(LPDISPATCH objCenter, float fAngle, float X, float Y, float Z)
{
static BYTE parms[] =
VTS_DISPATCH VTS_R4 VTS_R4 VTS_R4 VTS_R4;
InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
objCenter, fAngle, X, Y, Z);
}
/////////////////////////////////////////////////////////////////////////////
// CsoGeometry3D properties
long CsoGeometry3D::GetType()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CsoGeometry3D::SetType(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
double CsoGeometry3D::GetXAngle()
{
double result;
GetProperty(0x1a, VT_R8, (void*)&result);
return result;
}
void CsoGeometry3D::SetXAngle(double propVal)
{
SetProperty(0x1a, VT_R8, propVal);
}
double CsoGeometry3D::GetYAngle()
{
double result;
GetProperty(0x1b, VT_R8, (void*)&result);
return result;
}
void CsoGeometry3D::SetYAngle(double propVal)
{
SetProperty(0x1b, VT_R8, propVal);
}
double CsoGeometry3D::GetZAngle()
{
double result;
GetProperty(0x1c, VT_R8, (void*)&result);
return result;
}
void CsoGeometry3D::SetZAngle(double propVal)
{
SetProperty(0x1c, VT_R8, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoGeometry3D operations
/////////////////////////////////////////////////////////////////////////////
// CsoGeoBox properties
long CsoGeoBox::GetType()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CsoGeoBox::SetType(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
double CsoGeoBox::GetXAngle()
{
double result;
GetProperty(0x1a, VT_R8, (void*)&result);
return result;
}
void CsoGeoBox::SetXAngle(double propVal)
{
SetProperty(0x1a, VT_R8, propVal);
}
double CsoGeoBox::GetYAngle()
{
double result;
GetProperty(0x1b, VT_R8, (void*)&result);
return result;
}
void CsoGeoBox::SetYAngle(double propVal)
{
SetProperty(0x1b, VT_R8, propVal);
}
double CsoGeoBox::GetZAngle()
{
double result;
GetProperty(0x1c, VT_R8, (void*)&result);
return result;
}
void CsoGeoBox::SetZAngle(double propVal)
{
SetProperty(0x1c, VT_R8, propVal);
}
double CsoGeoBox::GetSizeX()
{
double result;
GetProperty(0x1d, VT_R8, (void*)&result);
return result;
}
void CsoGeoBox::SetSizeX(double propVal)
{
SetProperty(0x1d, VT_R8, propVal);
}
double CsoGeoBox::GetSizeY()
{
double result;
GetProperty(0x1e, VT_R8, (void*)&result);
return result;
}
void CsoGeoBox::SetSizeY(double propVal)
{
SetProperty(0x1e, VT_R8, propVal);
}
double CsoGeoBox::GetSizeZ()
{
double result;
GetProperty(0x1f, VT_R8, (void*)&result);
return result;
}
void CsoGeoBox::SetSizeZ(double propVal)
{
SetProperty(0x1f, VT_R8, propVal);
}
LPDISPATCH CsoGeoBox::GetCenter()
{
LPDISPATCH result;
GetProperty(0x20, VT_DISPATCH, (void*)&result);
return result;
}
void CsoGeoBox::SetCenter(LPDISPATCH propVal)
{
SetProperty(0x20, VT_DISPATCH, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoGeoBox operations
/////////////////////////////////////////////////////////////////////////////
// CsoGeoSphere properties
long CsoGeoSphere::GetType()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CsoGeoSphere::SetType(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
double CsoGeoSphere::GetXAngle()
{
double result;
GetProperty(0x1a, VT_R8, (void*)&result);
return result;
}
void CsoGeoSphere::SetXAngle(double propVal)
{
SetProperty(0x1a, VT_R8, propVal);
}
double CsoGeoSphere::GetYAngle()
{
double result;
GetProperty(0x1b, VT_R8, (void*)&result);
return result;
}
void CsoGeoSphere::SetYAngle(double propVal)
{
SetProperty(0x1b, VT_R8, propVal);
}
double CsoGeoSphere::GetZAngle()
{
double result;
GetProperty(0x1c, VT_R8, (void*)&result);
return result;
}
void CsoGeoSphere::SetZAngle(double propVal)
{
SetProperty(0x1c, VT_R8, propVal);
}
double CsoGeoSphere::GetRadius()
{
double result;
GetProperty(0x1d, VT_R8, (void*)&result);
return result;
}
void CsoGeoSphere::SetRadius(double propVal)
{
SetProperty(0x1d, VT_R8, propVal);
}
long CsoGeoSphere::GetSlices()
{
long result;
GetProperty(0x1e, VT_I4, (void*)&result);
return result;
}
void CsoGeoSphere::SetSlices(long propVal)
{
SetProperty(0x1e, VT_I4, propVal);
}
long CsoGeoSphere::GetStacks()
{
long result;
GetProperty(0x1f, VT_I4, (void*)&result);
return result;
}
void CsoGeoSphere::SetStacks(long propVal)
{
SetProperty(0x1f, VT_I4, propVal);
}
LPDISPATCH CsoGeoSphere::GetCenter()
{
LPDISPATCH result;
GetProperty(0x20, VT_DISPATCH, (void*)&result);
return result;
}
void CsoGeoSphere::SetCenter(LPDISPATCH propVal)
{
SetProperty(0x20, VT_DISPATCH, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoGeoSphere operations
/////////////////////////////////////////////////////////////////////////////
// CsoGeoHemiSphere properties
long CsoGeoHemiSphere::GetType()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CsoGeoHemiSphere::SetType(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
double CsoGeoHemiSphere::GetXAngle()
{
double result;
GetProperty(0x1a, VT_R8, (void*)&result);
return result;
}
void CsoGeoHemiSphere::SetXAngle(double propVal)
{
SetProperty(0x1a, VT_R8, propVal);
}
double CsoGeoHemiSphere::GetYAngle()
{
double result;
GetProperty(0x1b, VT_R8, (void*)&result);
return result;
}
void CsoGeoHemiSphere::SetYAngle(double propVal)
{
SetProperty(0x1b, VT_R8, propVal);
}
double CsoGeoHemiSphere::GetZAngle()
{
double result;
GetProperty(0x1c, VT_R8, (void*)&result);
return result;
}
void CsoGeoHemiSphere::SetZAngle(double propVal)
{
SetProperty(0x1c, VT_R8, propVal);
}
double CsoGeoHemiSphere::GetRadius()
{
double result;
GetProperty(0x1d, VT_R8, (void*)&result);
return result;
}
void CsoGeoHemiSphere::SetRadius(double propVal)
{
SetProperty(0x1d, VT_R8, propVal);
}
long CsoGeoHemiSphere::GetSlices()
{
long result;
GetProperty(0x1e, VT_I4, (void*)&result);
return result;
}
void CsoGeoHemiSphere::SetSlices(long propVal)
{
SetProperty(0x1e, VT_I4, propVal);
}
long CsoGeoHemiSphere::GetStacks()
{
long result;
GetProperty(0x1f, VT_I4, (void*)&result);
return result;
}
void CsoGeoHemiSphere::SetStacks(long propVal)
{
SetProperty(0x1f, VT_I4, propVal);
}
LPDISPATCH CsoGeoHemiSphere::GetCenter()
{
LPDISPATCH result;
GetProperty(0x20, VT_DISPATCH, (void*)&result);
return result;
}
void CsoGeoHemiSphere::SetCenter(LPDISPATCH propVal)
{
SetProperty(0x20, VT_DISPATCH, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoGeoHemiSphere operations
/////////////////////////////////////////////////////////////////////////////
// CsoGeoCone properties
long CsoGeoCone::GetType()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CsoGeoCone::SetType(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
double CsoGeoCone::GetXAngle()
{
double result;
GetProperty(0x1a, VT_R8, (void*)&result);
return result;
}
void CsoGeoCone::SetXAngle(double propVal)
{
SetProperty(0x1a, VT_R8, propVal);
}
double CsoGeoCone::GetYAngle()
{
double result;
GetProperty(0x1b, VT_R8, (void*)&result);
return result;
}
void CsoGeoCone::SetYAngle(double propVal)
{
SetProperty(0x1b, VT_R8, propVal);
}
double CsoGeoCone::GetZAngle()
{
double result;
GetProperty(0x1c, VT_R8, (void*)&result);
return result;
}
void CsoGeoCone::SetZAngle(double propVal)
{
SetProperty(0x1c, VT_R8, propVal);
}
double CsoGeoCone::GetRadius()
{
double result;
GetProperty(0x1d, VT_R8, (void*)&result);
return result;
}
void CsoGeoCone::SetRadius(double propVal)
{
SetProperty(0x1d, VT_R8, propVal);
}
double CsoGeoCone::GetHeight()
{
double result;
GetProperty(0x1e, VT_R8, (void*)&result);
return result;
}
void CsoGeoCone::SetHeight(double propVal)
{
SetProperty(0x1e, VT_R8, propVal);
}
long CsoGeoCone::GetSlices()
{
long result;
GetProperty(0x1f, VT_I4, (void*)&result);
return result;
}
void CsoGeoCone::SetSlices(long propVal)
{
SetProperty(0x1f, VT_I4, propVal);
}
LPDISPATCH CsoGeoCone::GetBottomCenter()
{
LPDISPATCH result;
GetProperty(0x20, VT_DISPATCH, (void*)&result);
return result;
}
void CsoGeoCone::SetBottomCenter(LPDISPATCH propVal)
{
SetProperty(0x20, VT_DISPATCH, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CsoGeoCone operations
/////////////////////////////////////////////////////////////////////////////
// CsoGeoCylinder properties
long CsoGeoCylinder::GetType()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CsoGeoCylinder::SetType(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
double CsoGeoCylinder::GetXAngle()
{
double result;
GetProperty(0x1a, VT_R8, (void*)&result);
return result;
}
void CsoGeoCylinder::SetXAngle(double propVal)
{
SetProperty(0x1a, VT_R8, propVal);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -