Members
-
readonly BIMMajor :string
-
BIM工程专业类型枚举类
Properties:
Name Type Description ARCHstring 土建
STEELstring 钢筋
BENTLYstring Bently
TEKLAstring Tekla
RHINOstring Rhino
REVITstring Revit
SITEstring 场布
MEPstring 安装
C3Dstring Civil
IFCstring IFC
-
readonly BingMapStyle :String
-
Bing地图样式枚举类,参考地图服务
Properties:
Name Type Description AERIALString 遥感影像
AERIAL_WITH_LABELSString 路网叠加遥感影像
ROADString 路网
CANVAS_DARKString 暗色调路网
CANVAS_LIGHTString 亮色调路网
CANVAS_GRAYString 灰度路网
COLLINS_BARTString Collins Bart影像.
Example
包含AERIAL,ROAD,AERIAL_WITH_LABELS等样式 -
readonly CameraControlType :number
-
相机控制类型枚举项
Properties:
Name Type Description ROTATEnumber 旋转
ZOOMnumber 缩放
TRANSLATEnumber 平移
-
readonly CameraEventType :number
-
相机事件枚举项
Properties:
Name Type Description LEFT_DRAGnumber 左键拖拽
RIGHT_DRAGnumber 右键拖拽
MIDDLE_DRAGnumber 中键拖拽
-
readonly CameraMotionInputs :String
-
相机运动事件枚举类
Properties:
Name Type Description rotateLeftString 相机左转
rotateRightString 相机右转
rotateUpString 相机上转
rotateDownString 相机下转
-
readonly CIMControlMode :number
-
CIM模式下鼠标控制逻辑枚举类
Properties:
Name Type Description CLASSICnumber 鼠标左键拖拽平移,中键拖拽旋转和倾斜
MOTORnumber 鼠标中键拖拽平移,右键键拖拽旋转和倾斜
-
readonly CommentType :number
-
批注类型
Properties:
Name Type Description ARROWLINEnumber 箭头线
RECTnumber 方形
ELLIPSEnumber 椭圆形
TEXTnumber 文本
-
readonly EditMode :number
-
编辑模式枚举类
Properties:
Name Type Description TRANSLATEnumber 平移
SCALEnumber 缩放
ROTATIONnumber 旋转
-
readonly InfoField :number
-
构件属性字段枚举类
Properties:
Name Type Description bimGuidnumber BIM Guid
floornumber 楼层
main_typenumber 大类
sub_typenumber 小类
namenumber 属性名称
extentnumber 范围
-
readonly InfoFieldDir :number
-
构件属性字段枚举类
Properties:
Name Type Description bimGuidnumber BIM Guid
extentnumber 范围
-
readonly KeyboardEventModifier
-
鼠标事件类型
Properties:
Name Type Description SHIFTNumber Shift按键
CTRLNumber Ctrl按键
ALTNumber Alt按键
-
readonly MeasureMode :number
-
测量模式枚举类
Properties:
Name Type Description POINTDISTANCEnumber 两点之间长度
POINTSDISTANCEnumber 多点之间长度
ANGLEnumber 角度
-
MotorConfig :Config
-
配置项
-
readonly MouseEventType
-
鼠标事件类型
Properties:
Name Type Description LEFT_DOWNNumber 左键按下
LEFT_UPNumber 左键抬起
LEFT_CLICKNumber 左键点击
LEFT_DOUBLE_CLICKNumber 左键双击
RIGHT_DOWNNumber 右键按下
RIGHT_UPNumber 右键抬起
RIGHT_CLICKNumber 右键点击
MIDDLE_DOWNNumber 中键按下
MIDDLE_UPNumber 中键抬起
MIDDLE_CLICKNumber 中键点击
MOUSE_MOVENumber 鼠标移动
WHEELNumber 滚轮滚动
PINCH_STARTNumber 两指触摸开始
PINCH_ENDNumber 两指触摸结束
PINCH_MOVENumber 两指触摸变化
-
readonly NavigationMode :number
-
导航模式枚举类
Properties:
Name Type Description NAV_FREE_MOUSEnumber 鼠标控制模式
NAV_FREE_KEYnumber 第一人称键盘模式
NAV_WALKnumber 第一人称人物模式
-
readonly ProjType :number
-
工程类型枚举类
Properties:
Name Type Description TYPE_CIMnumber CIM工程
TYPE_BIMnumber BIM工程
-
snapDistanceFactor :Number
-
可以捕捉的最远距离因子,默认为1
- Default Value:
- 1
-
readonly TiandituMapStyle :String
-
天地图样式枚举类,参考地图服务
Properties:
Name Type Description IMAGEString 遥感影像
VECTORString 矢量地图
TERRAINString 地形图
LABELSString 注记
Example
包含IMAGE, VECTOR, TERRAIN, IMAGE_WITH_LABELS, VECTOR_WITH_LABELS, TERRAIN_WITH_LABELS -
readonly TilingScheme :number
-
地图切片方案枚举类,参考地图服务
Properties:
Name Type Description GeographicTilingSchemenumber GeographicTilingScheme
WebMercatorTilingSchemenumber WebMercatorTilingScheme
-
readonly ViewerMode :number
-
视窗模式枚举类
Properties:
Name Type Description CIMnumber CIM模式
BIMnumber BIM模式
PLANEnumber 平面模式
Methods
-
add(videoProjection) → {VideoProjection2}
-
Parameters:
Name Type Description videoProjectionVideoProjection2 Returns:
VideoProjection2 -
moveCamera(position)
-
Parameters:
Name Type Description positionCartesian3 -
remove(videoProjection) → {Boolean}
-
Parameters:
Name Type Description videoProjectionVideoProjection2 Returns:
Boolean -
rotateCamera(options)
-
Parameters:
Name Type Description optionsObject Properties
Name Type Attributes Description headingNumber <optional>
Radius
pitchNumber <optional>
Radius
rollNumber <optional>
Radius
Type Definitions
-
AmbientOcclusion
-
Properties:
Name Type Attributes Description uniformsObject <optional>
参数,包含intensity
Properties
Name Type Attributes Description intensityNumber <optional>
环境光遮蔽强度
-
BIMGuidFloorPair
-
Properties:
Name Type Description bimGuidString floorString -
BIMProperty
-
Properties:
Name Type Description guidString 构件guid
projGuidString 工程guid
bimGuidString 构件BIM guid
mainCompGuidString 主构件guid
majorBIMMajor 专业
floorString 楼层
bimFloorString bim楼层
main_typeString 大类名称
sub_typeString 小类名称
nameString 构件名称
propsArray.<CompProperty> 构件属性
-
BoundingBox
-
Properties:
Name Type Description centerCartesian3 中心点
maximumCartesian3 最大点
minimumCartesian3 最小点
-
BoundingRegion
-
Properties:
Name Type Description rectangleRectangle 矩形范围
bottomNumber 底面高度
topNumber 顶面高度
-
BoundingSphere
-
Properties:
Name Type Description centerCartesian3 中心点
radiusNumber 半径
-
CIMProperty
-
Properties:
Name Type Description guidString 构件guid
projGuidString 工程guid
nameString 构件名称
propsArray.<CompProperty> 构件属性
-
CompProperty
-
Properties:
Name Type Description nameString 字段名称
valueString 字段值
unitString 单位
groupString 所在组
-
Config
-
Properties:
Name Type Attributes Default Description serverUrlString <optional>
https://open.lubansoft.com/api 服务器地址
MOTOR_BASE_URLString <optional>
Motor静态资源地址
-
EventHandler(mouse)
-
Parameters:
Name Type Description mouseMouse 鼠标事件对象
-
FlyOption
-
Properties:
Name Type Attributes Description centerCartesian3 <optional>
相机观察中心
positionCartesian3 <optional>
相机位置
headingNumber <optional>
相机朝向,正北方向为0度
pitchNumber <optional>
相机俯仰角,向下为正
rangeNumber <optional>
相机与中心点距离
rollNumber <optional>
相机的旋转角,相机方向顺时针旋转为正
durationNumber <optional>
飞行时间,单位秒
maximumHeightNumber <optional>
飞行过程中的制高点的高度
-
MeasureResult
-
Properties:
Name Type Attributes Description angleNumber <optional>
角度值
distanceNumber <optional>
长度值
-
MeasureResultCallback(result)
-
Parameters:
Name Type Description resultMeasureResult 鼠标事件对象
-
Mouse
-
Properties:
Name Type Attributes Description positionCartesian2 <optional>
鼠标点击处屏幕坐标,只在点击事件中返回值
endPositionCartesian2 <optional>
鼠标当前悬停处屏幕坐标,只在鼠标移动事件中返回值
-
ProjectFilter
-
Properties:
Name Type Attributes Description nameString <optional>
工程名称
guidString <optional>
工程guid
-
QueryBIMCompOption
-
Properties:
Name Type Attributes Description bimGuidString <optional>
bim构件id
floorString <optional>
楼层
majorBIMMajor <optional>
专业
main_typeString <optional>
大类
sub_typeString <optional>
小类
nameString <optional>
属性名称
dirArray.<String> <optional>
部位树数组
- Deprecated:
- 2.5.0版本以后不推荐使用
-
QueryCIMCompOption
-
Properties:
Name Type Attributes Description sysNameString <optional>
属性名
sysNamesArray.<String> <optional>
属性名
- Deprecated:
- 2.5.0版本以后不推荐使用
-
ShadowMap
-
Properties:
Name Type Attributes Description uniformsObject <optional>
参数,包含darkness
Properties
Name Type Attributes Description darknessNumber <optional>
阴影暗度,值越大越暗淡
sizeNumber <optional>
阴影贴图分辨率,值越大,阴影越精细,但是渲染性能越差
-
TemplateProps
-
Properties:
Name Type Description nameString 属性名
sysNameString 属性标识符
childrenArray.<TemplateProps> 子属性列表
-
TreeStructureJSON
-
Properties:
Name Type Attributes Description nameString 节点名称
isParentBoolean 是否父节点
getMotorTreeNodefunction 获取motor树节点的方法
childrenArray.<TreeStructureJSON> <optional>
子节点树结构,叶子结点没有children属性
-
ViewCubeConfig
-
Properties:
Name Type Attributes Default Description widthNumber <optional>
200 画布宽度
heightNumber <optional>
200 画布高度
containerStyleString <optional>
"position:absolute;right:0;bottom:0;" 画布容器CSS Style