Video3D

Video3D

视频融合(投射3D,贴物体表面)

Constructor

new Video3D(viewer, optionsopt)

video3d构建函数

Parameters:
Name Type Attributes Default Description
viewer Viewer

场景对象

options Object <optional>
{}

带有以下属性的对象:

Properties
Name Type Attributes Default Description
cameraPosition Cartesian3 <optional>

相机位置

position Cartesian3 <optional>

视点位置

type Number <optional>

投影类型 枚举如下: Color: 1, Image: 2, Video: 3, Text: 4

alpha Number <optional>

透明度

color Color <optional>

投影的颜色

debugFrustum Boolean <optional>
true

是否显示视椎体

aspectRatio Number <optional>

视椎体宽高比

fov Number <optional>

相机水平张角

texture Texture <optional>

默认材质

videoPlay Boolean <optional>
true

播放视频

url String <optional>

视频地址

show Boolean <optional>
true

控制显示隐藏

clearBlack Boolean <optional>
false

消除鱼眼视频的黑色

text String <optional>

显示的文本

textStyles Object <optional>

文字样式 示例如下 eg:
font: '50px 楷体',
fill: true,
fillColor: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
stroke: true,
strokeWidth: 2,
strokeColor: new Cesium.Color(1.0, 1.0, 1.0, 0.8),
backgroundColor: new Cesium.Color(1.0, 1.0, 1.0, 0.1),
textBaseline: 'top',
padding: 40,

Classes

Video3D

Members

alpha :Number

透明度 范围0~1

Type:
  • Number

aspectRatio :Number

相机宽高比例

Type:
  • Number

cameraPosition :Cartesian3

相机位置

Type:
  • Cartesian3

debugFrustum :Boolean

视椎体显隐

Type:
  • Boolean

fov :Number

相机水平张角

Type:
  • Number

params :Object

所有相机的参数

Type:
  • Object

position :Cartesian3

视点位置

Type:
  • Cartesian3

show :Boolean

显示和隐藏

Type:
  • Boolean

videoPlay :Boolean

切换视频 播放/暂停

Type:
  • Boolean

Methods

activeColor(color)

激活或重置颜色

Parameters:
Name Type Description
color Color

颜色值

activePicture(picSrc)

激活或重置图片URL

Parameters:
Name Type Description
picSrc String

图片URL

activeText(text, styles)

激活或重置文本

Parameters:
Name Type Description
text String

文本

styles Object

文本样式 eg:
font: '50px 楷体',
fill: true,
fillColor: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
stroke: true,
strokeWidth: 2,
strokeColor: new Cesium.Color(1.0, 1.0, 1.0, 0.8),
backgroundColor: new Cesium.Color(1.0, 1.0, 1.0, 0.1),
textBaseline: 'top',
padding: 40,

activeVideo(videoSrc)

激活或重置视频URL

Parameters:
Name Type Description
videoSrc String

视频URL

destroy()

销毁对象

locate()

呈现投影相机的第一视角