Global

Members

readonly BIMMajor :string

BIM工程专业类型枚举类

Properties:
Name Type Description
ARCH string

土建

STEEL string

钢筋

BENTLY string

Bently

TEKLA string

Tekla

RHINO string

Rhino

REVIT string

Revit

SITE string

场布

MEP string

安装

C3D string

Civil

IFC string

IFC

readonly BingMapStyle :String

Bing地图样式枚举类,参考地图服务

Properties:
Name Type Description
AERIAL String

遥感影像

AERIAL_WITH_LABELS String

路网叠加遥感影像

ROAD String

路网

CANVAS_DARK String

暗色调路网

CANVAS_LIGHT String

亮色调路网

CANVAS_GRAY String

灰度路网

COLLINS_BART String

Collins Bart影像.

Example
包含AERIAL,ROAD,AERIAL_WITH_LABELS等样式

readonly CameraControlType :number

相机控制类型枚举项

Properties:
Name Type Description
ROTATE number

旋转

ZOOM number

缩放

TRANSLATE number

平移

readonly CameraEventType :number

相机事件枚举项

Properties:
Name Type Description
LEFT_DRAG number

左键拖拽

RIGHT_DRAG number

右键拖拽

MIDDLE_DRAG number

中键拖拽

readonly CameraMotionInputs :String

相机运动事件枚举类

Properties:
Name Type Description
rotateLeft String

相机左转

rotateRight String

相机右转

rotateUp String

相机上转

rotateDown String

相机下转

readonly CIMControlMode :number

CIM模式下鼠标控制逻辑枚举类

Properties:
Name Type Description
CLASSIC number

鼠标左键拖拽平移,中键拖拽旋转和倾斜

MOTOR number

鼠标中键拖拽平移,右键键拖拽旋转和倾斜

readonly CommentType :number

批注类型

Properties:
Name Type Description
ARROWLINE number

箭头线

RECT number

方形

ELLIPSE number

椭圆形

TEXT number

文本

readonly EditMode :number

编辑模式枚举类

Properties:
Name Type Description
TRANSLATE number

平移

SCALE number

缩放

ROTATION number

旋转

readonly InfoField :number

构件属性字段枚举类

Properties:
Name Type Description
bimGuid number

BIM Guid

floor number

楼层

main_type number

大类

sub_type number

小类

name number

属性名称

extent number

范围

readonly InfoFieldDir :number

构件属性字段枚举类

Properties:
Name Type Description
bimGuid number

BIM Guid

extent number

范围

readonly KeyboardEventModifier

鼠标事件类型

Properties:
Name Type Description
SHIFT Number

Shift按键

CTRL Number

Ctrl按键

ALT Number

Alt按键

readonly MeasureMode :number

测量模式枚举类

Properties:
Name Type Description
POINTDISTANCE number

两点之间长度

POINTSDISTANCE number

多点之间长度

ANGLE number

角度

MotorConfig :Config

配置项

readonly MouseEventType

鼠标事件类型

Properties:
Name Type Description
LEFT_DOWN Number

左键按下

LEFT_UP Number

左键抬起

LEFT_CLICK Number

左键点击

LEFT_DOUBLE_CLICK Number

左键双击

RIGHT_DOWN Number

右键按下

RIGHT_UP Number

右键抬起

RIGHT_CLICK Number

右键点击

MIDDLE_DOWN Number

中键按下

MIDDLE_UP Number

中键抬起

MIDDLE_CLICK Number

中键点击

MOUSE_MOVE Number

鼠标移动

WHEEL Number

滚轮滚动

PINCH_START Number

两指触摸开始

PINCH_END Number

两指触摸结束

PINCH_MOVE Number

两指触摸变化

导航模式枚举类

Properties:
Name Type Description
NAV_FREE_MOUSE number

鼠标控制模式

NAV_FREE_KEY number

第一人称键盘模式

NAV_WALK number

第一人称人物模式

readonly ProjType :number

工程类型枚举类

Properties:
Name Type Description
TYPE_CIM number

CIM工程

TYPE_BIM number

BIM工程

snapDistanceFactor :Number

可以捕捉的最远距离因子,默认为1

Default Value:
  • 1

readonly TiandituMapStyle :String

天地图样式枚举类,参考地图服务

Properties:
Name Type Description
IMAGE String

遥感影像

VECTOR String

矢量地图

TERRAIN String

地形图

LABELS String

注记

Example
包含IMAGE, VECTOR, TERRAIN, IMAGE_WITH_LABELS, VECTOR_WITH_LABELS, TERRAIN_WITH_LABELS

readonly TilingScheme :number

地图切片方案枚举类,参考地图服务

Properties:
Name Type Description
GeographicTilingScheme number

GeographicTilingScheme

WebMercatorTilingScheme number

WebMercatorTilingScheme

readonly ViewerMode :number

视窗模式枚举类

Properties:
Name Type Description
CIM number

CIM模式

BIM number

BIM模式

PLANE number

平面模式

Methods

add(videoProjection) → {VideoProjection2}

Parameters:
Name Type Description
videoProjection VideoProjection2
Returns:
VideoProjection2

moveCamera(position)

Parameters:
Name Type Description
position Cartesian3

remove(videoProjection) → {Boolean}

Parameters:
Name Type Description
videoProjection VideoProjection2
Returns:
Boolean

rotateCamera(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Description
heading Number <optional>

Radius

pitch Number <optional>

Radius

roll Number <optional>

Radius

Type Definitions

AmbientOcclusion

Properties:
Name Type Attributes Description
uniforms Object <optional>

参数,包含intensity

Properties
Name Type Attributes Description
intensity Number <optional>

环境光遮蔽强度

BIMGuidFloorPair

Properties:
Name Type Description
bimGuid String
floor String

BIMProperty

Properties:
Name Type Description
guid String

构件guid

projGuid String

工程guid

bimGuid String

构件BIM guid

mainCompGuid String

主构件guid

major BIMMajor

专业

floor String

楼层

bimFloor String

bim楼层

main_type String

大类名称

sub_type String

小类名称

name String

构件名称

props Array.<CompProperty>

构件属性

BoundingBox

Properties:
Name Type Description
center Cartesian3

中心点

maximum Cartesian3

最大点

minimum Cartesian3

最小点

BoundingRegion

Properties:
Name Type Description
rectangle Rectangle

矩形范围

bottom Number

底面高度

top Number

顶面高度

BoundingSphere

Properties:
Name Type Description
center Cartesian3

中心点

radius Number

半径

CIMProperty

Properties:
Name Type Description
guid String

构件guid

projGuid String

工程guid

name String

构件名称

props Array.<CompProperty>

构件属性

CompProperty

Properties:
Name Type Description
name String

字段名称

value String

字段值

unit String

单位

group String

所在组

Config

Properties:
Name Type Attributes Default Description
serverUrl String <optional>
https://open.lubansoft.com/api

服务器地址

MOTOR_BASE_URL String <optional>

Motor静态资源地址

EventHandler(mouse)

Parameters:
Name Type Description
mouse Mouse

鼠标事件对象

FlyOption

Properties:
Name Type Attributes Description
center Cartesian3 <optional>

相机观察中心

position Cartesian3 <optional>

相机位置

heading Number <optional>

相机朝向,正北方向为0度

pitch Number <optional>

相机俯仰角,向下为正

range Number <optional>

相机与中心点距离

roll Number <optional>

相机的旋转角,相机方向顺时针旋转为正

duration Number <optional>

飞行时间,单位秒

maximumHeight Number <optional>

飞行过程中的制高点的高度

MeasureResult

Properties:
Name Type Attributes Description
angle Number <optional>

角度值

distance Number <optional>

长度值

MeasureResultCallback(result)

Parameters:
Name Type Description
result MeasureResult

鼠标事件对象

Mouse

Properties:
Name Type Attributes Description
position Cartesian2 <optional>

鼠标点击处屏幕坐标,只在点击事件中返回值

endPosition Cartesian2 <optional>

鼠标当前悬停处屏幕坐标,只在鼠标移动事件中返回值

ProjectFilter

Properties:
Name Type Attributes Description
name String <optional>

工程名称

guid String <optional>

工程guid

QueryBIMCompOption

Properties:
Name Type Attributes Description
bimGuid String <optional>

bim构件id

floor String <optional>

楼层

major BIMMajor <optional>

专业

main_type String <optional>

大类

sub_type String <optional>

小类

name String <optional>

属性名称

dir Array.<String> <optional>

部位树数组

Deprecated:
  • 2.5.0版本以后不推荐使用

QueryCIMCompOption

Properties:
Name Type Attributes Description
sysName String <optional>

属性名

sysNames Array.<String> <optional>

属性名

Deprecated:
  • 2.5.0版本以后不推荐使用

ShadowMap

Properties:
Name Type Attributes Description
uniforms Object <optional>

参数,包含darkness

Properties
Name Type Attributes Description
darkness Number <optional>

阴影暗度,值越大越暗淡

size Number <optional>

阴影贴图分辨率,值越大,阴影越精细,但是渲染性能越差

TemplateProps

Properties:
Name Type Description
name String

属性名

sysName String

属性标识符

children Array.<TemplateProps>

子属性列表

TreeStructureJSON

Properties:
Name Type Attributes Description
name String

节点名称

isParent Boolean

是否父节点

getMotorTreeNode function

获取motor树节点的方法

children Array.<TreeStructureJSON> <optional>

子节点树结构,叶子结点没有children属性

ViewCubeConfig

Properties:
Name Type Attributes Default Description
width Number <optional>
200

画布宽度

height Number <optional>
200

画布高度

containerStyle String <optional>
"position:absolute;right:0;bottom:0;"

画布容器CSS Style