NT 0 例将多种形式的可视化组合为一个单一的高级对象.
它们可以手动创建,并添加到
Viewer#entities 或由
data sources, such as CzmlDataSource and GeoJsonDataSource.
| Name | Type | Description |
|---|---|---|
options |
Entity.ConstructorOptions | optional 描述初始化选项的对象 |
See:
Members
availability : TimeIntervalCollection|undefined
与本物体有关的任何可用性.
如果可用性未定义,则假定此对象的
其他属性将返回任何规定时间的有效数据.
如果可用性存在,则其他属性将只包含
如果在指定间隔内询问,则提供有效数据.
billboard : BillboardGraphics|undefined
获得或设置公告牌.
box : BoxGraphics|undefined
得到或设置盒子.
corridor : CorridorGraphics|undefined
进入或设置走廊.
cylinder : CylinderGraphics|undefined
得到或设置气瓶.
readonly definitionChanged : Event
当财产或次级财产被改变或修改时,获取该事件.
description : Property|undefined
获取或设定描述.
ellipse : EllipseGraphics|undefined
获得或设置椭圆.
ellipsoid : EllipsoidGraphics|undefined
获取或设置椭圆形.
entityCollection : EntityCollection
获取或设置该实体所属的实体收藏 .
获取与此对象相关的唯一 ID .
获取是否显示此实体, 同时考虑到
任何祖先实体的可见度.
label : LabelGraphics|undefined
获取或设置标签.
model : ModelGraphics|undefined
获得或设置模型.
获取或设置对象名称。 名字是给最终用户的
消费,不需要独一无二.
orientation : Property|undefined
获得或确定以地球为中心的方向( ECEF ).
在实体位置默认为东-北上 .
parent : Entity|undefined
获取或设置父对象.
path : PathGraphics|undefined
获取或设置路径.
plane : PlaneGraphics|undefined
得到或设置飞机.
point : PointGraphics|undefined
获取或设置点图形.
polygon : PolygonGraphics|undefined
获取或设置多边形.
polyline : PolylineGraphics|undefined
获取或设置多线.
polylineVolume : PolylineVolumeGraphics|undefined
获取或设置多线体积.
position : PositionProperty|undefined
获得或设置位置.
properties : PropertyBag|undefined
获取或设置与该实体相关的任意属性包.
获取此实例上所有属性的名称 .
rectangle : RectangleGraphics|undefined
获得或设置矩形.
获取或设定是否显示此实体 。 当设定为真实时,
只有母实体的显示属性也属实时,该实体才会显示.
tileset : Cesium3DTilesetGraphics|undefined
获得或设置瓷砖.
trackingReferenceFrame : TrackingReferenceFrame
获取或设定实体的跟踪参考框架.
viewFrom : Property|undefined
跟踪此对象时获取或设置建议的初始偏移 .
抵消额一般在东北参照框架内界定,
但根据物体的速度,可能是另一个框架.
wall : WallGraphics|undefined
或设墙.
Methods
检查给定的 NT % 0 是否支持在地形上绘制的实体上的颜色以外的材料或3D 梯度 .
If this feature is not supported, Entities with non-color materials but no `height` will
转而变成高度为0.
| Name | Type | Description |
|---|---|---|
scene |
Scene | 目前的场景. |
Returns:
当前场景是否支持地形上实体的材料.
Checks if the given Scene supports polylines clamped to terrain or 3D Tiles.
如果不支持此特性, 具有多线性图形的实体将在
the provided heights and using the `arcType` parameter instead of clamped to the ground.
| Name | Type | Description |
|---|---|---|
scene |
Scene | 目前的场景. |
Returns:
当前场景是否支持地形上的多线或3D TIles.
将属性添加到此对象。 一旦一个财产被添加,它可以是
observed with
Entity#definitionChanged and composited
with CompositeEntityCollection
| Name | Type | Description |
|---|---|---|
propertyName |
string | 拟加财产名称. |
Throws:
-
DeveloperError : "propertyName" is a reserved property name.
-
DeveloperError : "propertyName" is already a registered property.
computeModelMatrix(time, result) → Matrix4
计算实体在特定时间变换的模型矩阵。 未定义位置的返回
| Name | Type | Description |
|---|---|---|
time |
JulianDate | 获取模型矩阵的时间 . |
result |
Matrix4 | optional 存储结果的对象 . |
Returns:
未提供修改的结果参数或新的 NT% 0 实例 。 如果位置未定义则未定义结果 .
如果该对象在这段时间内有数据, 请返回真实值 .
| Name | Type | Description |
|---|---|---|
time |
JulianDate | 检查可用时间的时间. |
Returns:
如果该对象在规定时间内应掌握数据,则真实无误.
指定该对象上每个未指定属性的值
- 提供源对象上的同一财产.
| Name | Type | Description |
|---|---|---|
source |
Entity | 要合并成此天体的对象. |
删除了先前添加的属性 Property .
| Name | Type | Description |
|---|---|---|
propertyName |
string | 要删除的财产名称 . |
Throws:
-
DeveloperError : "propertyName" is a reserved property name.
-
DeveloperError : "propertyName" is not a registered property.
Type Definitions
NT 0 构造器的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id |
string |
<optional> |
此对象的唯一标识符 。 如果没有提供,则生成 GUID . | |
name |
string |
<optional> |
用于向用户显示的人类可读名称. 它不一定是独一无二的. | |
availability |
TimeIntervalCollection |
<optional> |
与本物体有关的任何可用性. | |
show |
boolean |
<optional> |
显示实体及其子女的布尔值 . | |
trackingReferenceFrame |
TrackingReferenceFrame |
<optional> |
TrackingReferenceFrame.AUTODETECT | The reference frame used when this entity is being tracked. If undefined, reference frame is determined based on entity velocity: near-surface slow moving entities are tracked using the local east-north-up reference frame, whereas fast moving entities such as satellites are tracked using VVLH (Vehicle Velocity, Local Horizontal). |
description |
Property | string |
<optional> |
A string Property specifying an HTML description for this entity. | |
position |
PositionProperty | Cartesian3 | CallbackPositionProperty |
<optional> |
指定实体位置的财产. | |
orientation |
Property | Quaternion |
<optional> |
Transforms.eastNorthUpToFixedFrame(position) | A Property specifying the entity orientation in respect to Earth-fixed-Earth-centered (ECEF). If undefined, east-north-up at entity position is used. |
viewFrom |
Property | Cartesian3 |
<optional> |
建议初步冲抵该物体. | |
parent |
Entity |
<optional> |
与该实体有关联的母实体. | |
billboard |
BillboardGraphics | BillboardGraphics.ConstructorOptions |
<optional> |
一个广告牌来配合这个实体. | |
box |
BoxGraphics | BoxGraphics.ConstructorOptions |
<optional> |
与此实体关联的框 . | |
corridor |
CorridorGraphics | CorridorGraphics.ConstructorOptions |
<optional> |
一个与这个实体有联系的走廊. | |
cylinder |
CylinderGraphics | CylinderGraphics.ConstructorOptions |
<optional> |
一个与这个实体关联的圆柱形. | |
ellipse |
EllipseGraphics | EllipseGraphics.ConstructorOptions |
<optional> |
与此实体关联的椭圆 . | |
ellipsoid |
EllipsoidGraphics | EllipsoidGraphics.ConstructorOptions |
<optional> |
与这个实体关联的椭圆形 . | |
label |
LabelGraphics | LabelGraphics.ConstructorOptions |
<optional> |
A options.label to associate with this entity. | |
model |
ModelGraphics | ModelGraphics.ConstructorOptions |
<optional> |
一个与这个实体有联系的模式. | |
tileset |
Cesium3DTilesetGraphics | Cesium3DTilesetGraphics.ConstructorOptions |
<optional> |
用于与此实体关联的 3D 平板. | |
path |
PathGraphics | PathGraphics.ConstructorOptions |
<optional> |
与这个实体关联的路径 . | |
plane |
PlaneGraphics | PlaneGraphics.ConstructorOptions |
<optional> |
和这个实体结盟的飞机. | |
point |
PointGraphics | PointGraphics.ConstructorOptions |
<optional> |
和这个实体联系的一点. | |
polygon |
PolygonGraphics | PolygonGraphics.ConstructorOptions |
<optional> |
与此实体关联的多边形 . | |
polyline |
PolylineGraphics | PolylineGraphics.ConstructorOptions |
<optional> |
与这个实体关联的多线 . | |
properties |
PropertyBag | Object.<string, *> |
<optional> |
与这个实体关联的任意属性. | |
polylineVolume |
PolylineVolumeGraphics | PolylineVolumeGraphics.ConstructorOptions |
<optional> |
与这个实体关联的多线卷 . | |
rectangle |
RectangleGraphics | RectangleGraphics.ConstructorOptions |
<optional> |
与此实体关联的矩形 . | |
wall |
WallGraphics | WallGraphics.ConstructorOptions |
<optional> |
和这个实体联系的墙壁. |