Methods
-
-
背景是否以颜色绘制
Returns:
Boolean
-
-
背景颜色
Parameters:
Name |
Type |
Description |
strColor |
String
|
背景颜色 |
Properties:
Name |
Type |
Description |
BackgroundColor |
Color
|
"0xff0000ff" |
-
-
背景图片
Parameters:
Name |
Type |
Description |
strImagePath |
ImageProp
|
背景图片路径 |
Properties:
Name |
Type |
Description |
BackgroundImagePath |
ImageProp
|
"" |
-
-
背景以颜色绘制
Parameters:
Name |
Type |
Description |
bDrawColor |
Boolean
|
|
Properties:
Name |
Type |
Description |
BgDrawColor |
Boolean
|
true |
-
-
摄像机位置
Parameters:
Name |
Type |
Description |
fX |
Float
|
按X轴位移 |
fY |
Float
|
按Y轴位移 |
fZ |
Float
|
按Z轴位移 |
Properties:
Name |
Type |
Description |
CameraPosition |
Collection
|
[100,10,100] |
-
-
坐标系是否显示
Parameters:
Name |
Type |
Description |
bVisible |
Boolean
|
|
Properties:
Name |
Type |
Description |
CoordinateSystemVisible |
Boolean
|
true |
-
-
设置GLTF模型路径
Parameters:
Name |
Type |
Description |
strGltfModelPath |
ImageProp
|
模型路径 |
-
-
模型位置
Parameters:
Name |
Type |
Description |
fX |
Float
|
按X轴位移 |
fY |
Float
|
按Y轴位移 |
fZ |
Float
|
按Z轴位移 |
Properties:
Name |
Type |
Description |
ModelPosition |
Collection
|
[0,0,0] |
-
-
模型旋转角度
Parameters:
Name |
Type |
Description |
fX |
Float
|
按X轴位移 |
fY |
Float
|
按Y轴位移 |
fZ |
Float
|
按Z轴位移 |
Properties:
Name |
Type |
Description |
ModelRotation |
Collection
|
[0,0,0] |
-
SetModelRotationSpeed(nSpeedX, nSpeedY, nSpeedZ)
-
模型旋转速度
Parameters:
Name |
Type |
Description |
nSpeedX |
Number
|
x轴为中心 |
nSpeedY |
Number
|
y轴为中心 |
nSpeedZ |
Number
|
z轴为中心 |
Properties:
Name |
Type |
Description |
ModelRotationSpeed |
Collection
|
[0,0,0] |
-
-
模型大小
Parameters:
Name |
Type |
Description |
nScaleX |
Number
|
x轴方向 |
nScaleY |
Number
|
y轴方向 |
nScaleZ |
Number
|
z轴方向 |
Properties:
Name |
Type |
Description |
ModelScale |
Collection
|
[1,1,1] |